Remove many unnecessary trait derivations.

This commit is contained in:
Nicholas Nethercote 2019-10-20 15:54:53 +11:00
parent c3b3a86124
commit ac6daed384
49 changed files with 89 additions and 103 deletions

View file

@ -1305,7 +1305,7 @@ impl MacroDef {
}
}
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
pub enum StrStyle {
/// A regular string, like `"foo"`.
Cooked,
@ -1327,7 +1327,7 @@ pub struct Lit {
pub span: Span,
}
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
pub enum LitIntType {
Signed(IntTy),
Unsigned(UintTy),
@ -1337,7 +1337,7 @@ pub enum LitIntType {
/// Literal kind.
///
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
pub enum LitKind {
/// A string literal (`"foo"`).
Str(Symbol, StrStyle),