diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-28 15:16:49 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:22 +0100 |
| commit | fedd4c63f8d49699b7844490503a63c9207d851a (patch) | |
| tree | 8d5e280b5a49a827dda76523ae1531766186030f /compiler/rustc_lint/src | |
| parent | 5524ca1a1d5784911753ea07f716af6710d87b38 (diff) | |
| download | rust-fedd4c63f8d49699b7844490503a63c9207d851a.tar.gz rust-fedd4c63f8d49699b7844490503a63c9207d851a.zip | |
lint: port asm labels diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 6197c240f54..428af513498 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -3182,9 +3182,7 @@ impl<'tcx> LateLintPass<'tcx> for NamedAsmLabels { NAMED_ASM_LABELS, Some(target_spans), |diag| { - let mut err = - diag.build("avoid using named labels in inline assembly"); - err.emit(); + diag.build(fluent::lint::builtin_asm_labels).emit(); }, BuiltinLintDiagnostics::NamedAsmLabel( "only local labels of the form `<number>:` should be used in inline asm" |
