about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/asm.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-13 18:52:41 +0000
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-14 13:20:39 +0000
commit427aceb9d4f022af56ed39163510185d4251dcde (patch)
tree94b9ebdb780de04b194bfb7cd44474b8a343b272 /compiler/rustc_codegen_llvm/src/asm.rs
parent729185338f1726f60ea2dc282fe6bbf0eb84cb17 (diff)
downloadrust-427aceb9d4f022af56ed39163510185d4251dcde.tar.gz
rust-427aceb9d4f022af56ed39163510185d4251dcde.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions