We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6938bfb commit 4e0eeeaCopy full SHA for 4e0eeea
compiler/rustc_lint/src/builtin.rs
@@ -2978,11 +2978,16 @@ impl<'tcx> LateLintPass<'tcx> for AsmLabels {
2978
InvalidAsmLabel::FormatArg { missing_precise_span },
2979
);
2980
}
2981
- AsmLabelKind::Binary => cx.emit_span_lint(
2982
- BINARY_ASM_LABELS,
2983
- span,
2984
- InvalidAsmLabel::Binary { missing_precise_span },
2985
- ),
+ AsmLabelKind::Binary => {
+ // the binary asm issue only occurs when using intel syntax
+ if !options.contains(InlineAsmOptions::ATT_SYNTAX) {
+ cx.emit_span_lint(
+ BINARY_ASM_LABELS,
2986
+ span,
2987
+ InvalidAsmLabel::Binary { missing_precise_span },
2988
+ )
2989
+ }
2990
2991
};
2992
2993
0 commit comments