rust/compiler/rustc_parse_format
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
..
src Improve heuristics for format_args literal being suggestable 2023-03-14 13:20:39 +00:00
Cargo.toml