diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-03-21 01:58:25 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-07-14 14:56:57 +0300 |
| commit | 4d1a30c92b50c5965ed26449758fca81bee15747 (patch) | |
| tree | ad1638de488e3f30ce91f7e7443b0b7891003a0b /src/libsyntax/ext | |
| parent | 0a8275f8b677304458c6161e26436dfe67ab766b (diff) | |
| download | rust-4d1a30c92b50c5965ed26449758fca81bee15747.tar.gz rust-4d1a30c92b50c5965ed26449758fca81bee15747.zip | |
Remove most of `PartialEq` impls from AST and HIR structures
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/tt/quoted.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index e49a521040f..38ddb501085 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -725,7 +725,7 @@ pub trait Resolver { fn check_unused_macros(&self); } -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, PartialEq, Debug)] pub enum Determinacy { Determined, Undetermined, diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs index 82b0fae3e9c..2f6bf5b821a 100644 --- a/src/libsyntax/ext/tt/quoted.rs +++ b/src/libsyntax/ext/tt/quoted.rs @@ -22,7 +22,7 @@ use rustc_data_structures::sync::Lrc; /// Contains the sub-token-trees of a "delimited" token tree, such as the contents of `(`. Note /// that the delimiter itself might be `NoDelim`. -#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] +#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Hash, Debug)] pub struct Delimited { pub delim: token::DelimToken, pub tts: Vec<TokenTree>, @@ -60,7 +60,7 @@ impl Delimited { } } -#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] +#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Hash, Debug)] pub struct SequenceRepetition { /// The sequence of token trees pub tts: Vec<TokenTree>, @@ -74,7 +74,7 @@ pub struct SequenceRepetition { /// A Kleene-style [repetition operator](http://en.wikipedia.org/wiki/Kleene_star) /// for token sequences. -#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] +#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] pub enum KleeneOp { /// Kleene star (`*`) for zero or more repetitions ZeroOrMore, @@ -85,7 +85,7 @@ pub enum KleeneOp { /// Similar to `tokenstream::TokenTree`, except that `$i`, `$i:ident`, and `$(...)` /// are "first-class" token trees. Useful for parsing macros. -#[derive(Debug, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash)] +#[derive(Debug, Clone, PartialEq, RustcEncodable, RustcDecodable, Hash)] pub enum TokenTree { Token(Span, token::Token), Delimited(Span, Lrc<Delimited>), |
