Skip to content

Commit

Permalink
remove unnecessary derives
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ysk committed Jul 16, 2022
1 parent 63c4d1e commit 85acc8e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_resolve/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,13 @@ 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,
/// The target is the only valid item that can be used in the corresponding context
SingleItem,
}

#[derive(Clone, PartialEq, Eq)]
pub(crate) struct TypoSuggestion {
pub candidate: Symbol,
pub res: Res,
Expand Down

0 comments on commit 85acc8e

Please sign in to comment.