Skip to content

Commit ab8962f

Browse files
committed
don't use label starting with 1
Starting with the latest nightly, this results in an error: error: avoid using labels containing only the digits `0` and `1` in inline assembly --> src/instructions/segmentation.rs:81:18 | 81 | "1:", | ^ use a different label that doesn't start with `0` or `1` | = note: an LLVM bug makes these labels ambiguous with a binary literal number = note: `#[deny(binary_asm_labels)]` on by default
1 parent 0ee8fef commit ab8962f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instructions/segmentation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ impl Segment for CS {
7575
unsafe {
7676
asm!(
7777
"push {sel}",
78-
"lea {tmp}, [1f + rip]",
78+
"lea {tmp}, [55f + rip]",
7979
"push {tmp}",
8080
"retfq",
81-
"1:",
81+
"55:",
8282
sel = in(reg) u64::from(sel.0),
8383
tmp = lateout(reg) _,
8484
options(preserves_flags),

0 commit comments

Comments
 (0)