diff options
| author | Xiretza <xiretza@xiretza.xyz> | 2024-04-16 16:23:47 +0000 |
|---|---|---|
| committer | Xiretza <xiretza@xiretza.xyz> | 2024-05-21 20:11:42 +0000 |
| commit | bac6b6248b63d2cd39b8d010e8b23308a4800508 (patch) | |
| tree | e6c90e50d3bba6c16ad85de882dfea81b5b7837b /compiler/rustc_lint/src/lints.rs | |
| parent | 36902fbcf6d3ae211141b393b93ceef632d0db57 (diff) | |
| download | rust-bac6b6248b63d2cd39b8d010e8b23308a4800508.tar.gz rust-bac6b6248b63d2cd39b8d010e8b23308a4800508.zip | |
Convert NAMED_ASM_LABELS lint to diag struct
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index bc0c8cf85d8..42a177157bc 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -1947,3 +1947,9 @@ pub struct UnitBindingsDiag { #[label] pub label: Span, } + +#[derive(LintDiagnostic)] +#[diag(lint_builtin_asm_labels)] +#[help] +#[note] +pub struct BuiltinNamedAsmLabel; |
