Open
Description
Code
// In hexagon assembly syntax, register pairs are delimited with colons like `r17:16`.
pub unsafe fn hexagon_regpair_example() {
asm!(
// this instruction performs a double-word load to r1 and r0
"r1:0 = memd(r29+#0)",
lateout("r0") _, lateout("r1") _
);
}
Current output
error: avoid using named labels in inline assembly
--> src/lib.rs:23:10
|
23 | "r1:0 = memd(r29+#0)",
| ^^
|
Desired output
<not an error - no diagnostic emitted>
Rationale and extra context
No response
Other cases
Rust Version
$ rustc --version
rustc 1.89.0-nightly (49a8ba068 2025-06-14)
Anything else?
If you have a pointer to other similar "narrowing the pattern matched for this diag" commit(s) I can make the change.