3dd583d540
When the template string passed to asm!() is produced by a macro call like concat!() we were producing wrong error spans. Now in the case of a macro call we just use the entire arg to asm!(), macro call and all, as the error span.
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
error: invalid asm template string: unmatched `}` found
|
||
--> $DIR/ice-bad-err-span-in-template-129503.rs:12:10
|
||
|
|
||
LL | asm!(concat!(r#"lJÆ<F0908FBF>.<>"#, "r} {}"));
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unmatched `}` in asm template string
|
||
|
|
||
= note: if you intended to print `}`, you can escape it using `}}`
|
||
= note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||
|
||
error: invalid asm template string: unmatched `}` found
|
||
--> $DIR/ice-bad-err-span-in-template-129503.rs:18:10
|
||
|
|
||
LL | asm!(concat!("abc", "r} {}"));
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^ unmatched `}` in asm template string
|
||
|
|
||
= note: if you intended to print `}`, you can escape it using `}}`
|
||
= note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||
|
||
error: invalid asm template string: unmatched `}` found
|
||
--> $DIR/ice-bad-err-span-in-template-129503.rs:24:19
|
||
|
|
||
LL | asm!("abc", "r} {}");
|
||
| ^ unmatched `}` in asm template string
|
||
|
|
||
= note: if you intended to print `}`, you can escape it using `}}`
|
||
|
||
error: aborting due to 3 previous errors
|
||
|