mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
01fecf60ef
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")`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |