about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-27 19:08:01 +0200
committerGitHub <noreply@github.com>2024-09-27 19:08:01 +0200
commit01fecf60efcb9c92c8243812e827e09ac965fba4 (patch)
treeadce6c9be8c80ec1f75ab08e31b6fafc4bf2d6b2 /compiler/rustc_codegen_llvm/src
parenta37f7f457faf81ae5e2edc8e18b1720ddb0b9ec2 (diff)
parent3dd583d5407c1d459c6539a4673e6d329903da66 (diff)
downloadrust-01fecf60efcb9c92c8243812e827e09ac965fba4.tar.gz
rust-01fecf60efcb9c92c8243812e827e09ac965fba4.zip
Rollup merge of #130917 - gurry:129503-ice-wrong-span-in-macros, r=chenyukang
Fix error span if arg to `asm!()` is a macro call

Fixes #129503

When the argument to `asm!()` is a macro call, e.g. `asm!(concat!("abc", "{} pqr"))`, and there's an error in the resulting template string, we do not take into account the presence of this macro call while computing the error span. This PR fixes that. Now we will use the entire thing between the parenthesis of `asm!()` as the error span in this situation e.g. for `asm!(concat!("abc", "{} pqr"))` the error span will be `concat!("abc", "{} pqr")`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions