From 85acc8ecbcfe006dadf312d22084d4006ca47589 Mon Sep 17 00:00:00 2001 From: Yoshiki Matsuda Date: Sun, 5 Jun 2022 01:43:41 +0900 Subject: [PATCH] remove unnecessary derives --- compiler/rustc_resolve/src/diagnostics.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 7d923b12226a7..e6513525dcf0b 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -48,7 +48,6 @@ pub(crate) type Suggestion = (Vec<(Span, String)>, String, Applicability); /// similarly named label and whether or not it is reachable. pub(crate) type LabelSuggestion = (Ident, bool); -#[derive(Clone, PartialEq, Eq)] pub(crate) enum SuggestionTarget { /// The target has a similar name as the name used by the programmer (probably a typo) SimilarlyNamed, @@ -56,7 +55,6 @@ pub(crate) enum SuggestionTarget { SingleItem, } -#[derive(Clone, PartialEq, Eq)] pub(crate) struct TypoSuggestion { pub candidate: Symbol, pub res: Res,