diff options
| author | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-07-22 19:26:16 -0400 |
|---|---|---|
| committer | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-08-04 13:38:17 -0400 |
| commit | 1ae19b69e820a4497a15a8c70a2e57bea3785405 (patch) | |
| tree | 4ed49b170cf3a944df0d3134ad3d7e34e6d0175a /compiler/rustc_builtin_macros/src/asm.rs | |
| parent | 8e7bbc9e9da091f4e7d9f846f0f264420b8a6f0e (diff) | |
| download | rust-1ae19b69e820a4497a15a8c70a2e57bea3785405.tar.gz rust-1ae19b69e820a4497a15a8c70a2e57bea3785405.zip | |
Fix lint capitalization and ignoring, test with include_str
Diffstat (limited to 'compiler/rustc_builtin_macros/src/asm.rs')
| -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()), ); } } |
