Skip to content

Commit a4e8640

Browse files
committed
Delete unused AttributeLintKind variant
1 parent 536bf4f commit a4e8640

3 files changed

Lines changed: 0 additions & 13 deletions

File tree

compiler/rustc_lint/src/early/diagnostics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ impl<'a> Diagnostic<'a, ()> for DecorateAttrLint<'_, '_, '_> {
201201
&AttributeLintKind::MissingOptionsForDiagnosticAttribute { attribute } => {
202202
lints::MissingOptionsForDiagnosticAttribute { attribute }.into_diag(dcx, level)
203203
}
204-
&AttributeLintKind::OnMoveMalformedFormatLiterals { name } => {
205-
lints::OnMoveMalformedFormatLiterals { name }.into_diag(dcx, level)
206-
}
207204
&AttributeLintKind::NonMetaItemDiagnosticAttribute => {
208205
lints::NonMetaItemDiagnosticAttribute.into_diag(dcx, level)
209206
}

compiler/rustc_lint/src/lints.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,13 +3595,6 @@ pub(crate) struct MissingOptionsForDiagnosticAttribute {
35953595
#[note("this method was used to add checks to the `Eq` derive macro")]
35963596
pub(crate) struct EqInternalMethodImplemented;
35973597

3598-
#[derive(Diagnostic)]
3599-
#[diag("unknown parameter `{$name}`")]
3600-
#[help("expect `Self` as format argument")]
3601-
pub(crate) struct OnMoveMalformedFormatLiterals {
3602-
pub name: Symbol,
3603-
}
3604-
36053598
#[derive(Diagnostic)]
36063599
#[diag("expected a literal or missing delimiter")]
36073600
#[help(

compiler/rustc_lint_defs/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,6 @@ pub enum AttributeLintKind {
753753
MissingOptionsForDiagnosticAttribute {
754754
attribute: &'static str,
755755
},
756-
OnMoveMalformedFormatLiterals {
757-
name: Symbol,
758-
},
759756
NonMetaItemDiagnosticAttribute,
760757
}
761758

0 commit comments

Comments
 (0)