File tree 2 files changed +3
-3
lines changed
rustc_error_messages/locales/en-US
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
396
396
397
397
lint-builtin-deref-nullptr = dereferencing a null pointer
398
398
.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 {
3182
3182
NAMED_ASM_LABELS ,
3183
3183
Some ( target_spans) ,
3184
3184
|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 ( ) ;
3188
3186
} ,
3189
3187
BuiltinLintDiagnostics :: NamedAsmLabel (
3190
3188
"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