Skip to content

Commit 85acc8e

Browse files
committed
remove unnecessary derives
1 parent 63c4d1e commit 85acc8e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_resolve/src/diagnostics.rs

-2
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ pub(crate) type Suggestion = (Vec<(Span, String)>, String, Applicability);
4848
/// similarly named label and whether or not it is reachable.
4949
pub(crate) type LabelSuggestion = (Ident, bool);
5050

51-
#[derive(Clone, PartialEq, Eq)]
5251
pub(crate) enum SuggestionTarget {
5352
/// The target has a similar name as the name used by the programmer (probably a typo)
5453
SimilarlyNamed,
5554
/// The target is the only valid item that can be used in the corresponding context
5655
SingleItem,
5756
}
5857

59-
#[derive(Clone, PartialEq, Eq)]
6058
pub(crate) struct TypoSuggestion {
6159
pub candidate: Symbol,
6260
pub res: Res,

0 commit comments

Comments
 (0)