diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-08-22 02:14:21 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-08-22 02:14:21 -0700 |
| commit | 863387ca6aa03a79361558f5c58dc7c5675ed599 (patch) | |
| tree | 60cb687b41fd428325e8fc1225f5e7d5a883a0d3 /compiler/rustc_lint/src | |
| parent | 690a5782f802bc5df3fffa3ce0728c77ee4fb1c2 (diff) | |
| download | rust-863387ca6aa03a79361558f5c58dc7c5675ed599.tar.gz rust-863387ca6aa03a79361558f5c58dc7c5675ed599.zip | |
Remove unused `BuiltinLintDiag` variant `InnerAttributeUnstable`
This variant doesn't appear to have ever been used. There's a matching message in `rustc_resolve`, that used to have a FIXME for porting it to the new diagnostic infrastructure, but that message is using `feature_err`, which doesn't use buffered lints. Thus, even when that does get ported, it won't use `BuiltinLintDiag`.
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/early/diagnostics.rs | 6 | ||||
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 8 |
2 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_lint/src/early/diagnostics.rs b/compiler/rustc_lint/src/early/diagnostics.rs index 5f5e1b322bc..09e474963ff 100644 --- a/compiler/rustc_lint/src/early/diagnostics.rs +++ b/compiler/rustc_lint/src/early/diagnostics.rs @@ -463,12 +463,6 @@ pub fn decorate_builtin_lint( } .decorate_lint(diag) } - BuiltinLintDiag::InnerAttributeUnstable { is_macro } => if is_macro { - lints::InnerAttributeUnstable::InnerMacroAttribute - } else { - lints::InnerAttributeUnstable::CustomInnerAttribute - } - .decorate_lint(diag), BuiltinLintDiag::OutOfScopeMacroCalls { span, path, location } => { lints::OutOfScopeMacroCalls { span, path, location }.decorate_lint(diag) } diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index 408774468b4..32bd7e263b0 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -2679,14 +2679,6 @@ pub(crate) struct IllFormedAttributeInput { } #[derive(LintDiagnostic)] -pub(crate) enum InnerAttributeUnstable { - #[diag(lint_inner_macro_attribute_unstable)] - InnerMacroAttribute, - #[diag(lint_custom_inner_attribute_unstable)] - CustomInnerAttribute, -} - -#[derive(LintDiagnostic)] #[diag(lint_unknown_diagnostic_attribute)] pub(crate) struct UnknownDiagnosticAttribute { #[subdiagnostic] |
