Readd some PartialEq and Hash derives used by Clippy
This commit is contained in:
parent
57bfb80962
commit
76f9b3b4c9
1 changed files with 6 additions and 3 deletions
|
@ -1305,7 +1305,8 @@ impl MacroDef {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
|
// Clippy uses Hash and PartialEq
|
||||||
|
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
|
||||||
pub enum StrStyle {
|
pub enum StrStyle {
|
||||||
/// A regular string, like `"foo"`.
|
/// A regular string, like `"foo"`.
|
||||||
Cooked,
|
Cooked,
|
||||||
|
@ -1327,7 +1328,8 @@ pub struct Lit {
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
|
// Clippy uses Hash and PartialEq
|
||||||
|
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
|
||||||
pub enum LitIntType {
|
pub enum LitIntType {
|
||||||
Signed(IntTy),
|
Signed(IntTy),
|
||||||
Unsigned(UintTy),
|
Unsigned(UintTy),
|
||||||
|
@ -1337,7 +1339,8 @@ pub enum LitIntType {
|
||||||
/// Literal kind.
|
/// Literal kind.
|
||||||
///
|
///
|
||||||
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
|
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
|
||||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
// Clippy uses Hash and PartialEq
|
||||||
|
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)]
|
||||||
pub enum LitKind {
|
pub enum LitKind {
|
||||||
/// A string literal (`"foo"`).
|
/// A string literal (`"foo"`).
|
||||||
Str(Symbol, StrStyle),
|
Str(Symbol, StrStyle),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue