From 7693c0a3d1710cb299fb925e47b79ecfb41a4d17 Mon Sep 17 00:00:00 2001 From: Jonathan Brouwer Date: Tue, 25 Nov 2025 21:16:31 +0100 Subject: [PATCH] Remove unused `Clone` derive on `DelayedLint` --- compiler/rustc_hir/src/lints.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_hir/src/lints.rs b/compiler/rustc_hir/src/lints.rs index c9de6f6b5d526..8563937f70d3c 100644 --- a/compiler/rustc_hir/src/lints.rs +++ b/compiler/rustc_hir/src/lints.rs @@ -17,19 +17,19 @@ pub struct DelayedLints { /// and then there's a gap where no lints can be emitted until HIR is done. /// The variants in this enum represent lints that are temporarily stashed during /// AST lowering to be emitted once HIR is built. -#[derive(Clone, Debug, HashStable_Generic)] +#[derive(Debug, HashStable_Generic)] pub enum DelayedLint { AttributeParsing(AttributeLint), } -#[derive(Clone, Debug, HashStable_Generic)] +#[derive(Debug, HashStable_Generic)] pub struct AttributeLint { pub id: Id, pub span: Span, pub kind: AttributeLintKind, } -#[derive(Clone, Debug, HashStable_Generic)] +#[derive(Debug, HashStable_Generic)] pub enum AttributeLintKind { /// Copy of `IllFormedAttributeInput` /// specifically for the `invalid_macro_export_arguments` lint until that is removed,