Skip to content

Commit 7c3764e

Browse files
committed
Don't lint against named labels in naked_asm!
Naked functions are allowed to define global labels, just like `global_asm!`.
1 parent dcecb99 commit 7c3764e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2909,7 +2909,7 @@ impl<'tcx> LateLintPass<'tcx> for AsmLabels {
29092909
if let hir::Expr {
29102910
kind:
29112911
hir::ExprKind::InlineAsm(hir::InlineAsm {
2912-
asm_macro: AsmMacro::Asm | AsmMacro::NakedAsm,
2912+
asm_macro: AsmMacro::Asm,
29132913
template_strs,
29142914
options,
29152915
..

0 commit comments

Comments
 (0)