rust/compiler/rustc_parse_format/src
Nilstrieb 427aceb9d4 Improve heuristics for format_args literal being suggestable
Sometimes, we want to create subspans and point at code in the literal
if possible. But this doesn't always make sense, sometimes the literal
may come from macro expanded code and isn't actually there in the
source. Then, we can't really make these suggestions.

This now makes sure that the literal is actually there as we see it so
that we will not run into ICEs on weird literal transformations.
2023-03-14 13:20:39 +00:00
..
lib.rs Improve heuristics for format_args literal being suggestable 2023-03-14 13:20:39 +00:00
tests.rs