File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -396,3 +396,5 @@ lint-builtin-clashing-extern-diff-name = `{$this_fi}` redeclares `{$orig}` with
396396
397397lint-builtin-deref-nullptr = dereferencing a null pointer
398398 .label = this code causes undefined behavior when executed
399+
400+ lint-builtin-asm-labels = avoid using named labels in inline assembly
Original file line number Diff line number Diff line change @@ -3182,9 +3182,7 @@ impl<'tcx> LateLintPass<'tcx> for NamedAsmLabels {
31823182 NAMED_ASM_LABELS ,
31833183 Some ( target_spans) ,
31843184 |diag| {
3185- let mut err =
3186- diag. build ( "avoid using named labels in inline assembly" ) ;
3187- err. emit ( ) ;
3185+ diag. build ( fluent:: lint:: builtin_asm_labels) . emit ( ) ;
31883186 } ,
31893187 BuiltinLintDiagnostics :: NamedAsmLabel (
31903188 "only local labels of the form `<number>:` should be used in inline asm"
You can’t perform that action at this time.
0 commit comments