diff options
Diffstat (limited to 'compiler/rustc_builtin_macros')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/asm.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs index 35dcd08951b..a1119916dc1 100644 --- a/compiler/rustc_builtin_macros/src/asm.rs +++ b/compiler/rustc_builtin_macros/src/asm.rs @@ -530,17 +530,17 @@ fn expand_preparsed_asm( span, ecx.current_expansion.lint_node_id, "do not use named labels in inline assembly", - BuiltinLintDiagnostics::NamedAsmLabel("Only GAS local labels of the form `N:` where N is a number may be used in inline asm".to_string()), + BuiltinLintDiagnostics::NamedAsmLabel("only GAS local labels of the form `N:` where N is a number may be used in inline asm".to_string()), ); } } else { // If there were labels but we couldn't find a span, combine the warnings and use the template span ecx.parse_sess().buffer_lint_with_diagnostic( lint::builtin::NAMED_ASM_LABELS, - template_span, + template_sp, ecx.current_expansion.lint_node_id, "do not use named labels in inline assembly", - BuiltinLintDiagnostics::NamedAsmLabel("Only GAS local labels of the form `N:` where N is a number may be used in inline asm".to_string()), + BuiltinLintDiagnostics::NamedAsmLabel("only GAS local labels of the form `N:` where N is a number may be used in inline asm".to_string()), ); } } |
