diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-15 00:01:24 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-15 02:04:44 +0200 |
| commit | 0ad54535b1bb24d45ab9bbd3137143a016711d39 (patch) | |
| tree | 7e74d0714b89085f12b3ed5d4e6e1fa370ad4ff7 /src/libsyntax | |
| parent | 0db03e635a5e38ebc7635637b870b8fbcc8a7e46 (diff) | |
| download | rust-0ad54535b1bb24d45ab9bbd3137143a016711d39.tar.gz rust-0ad54535b1bb24d45ab9bbd3137143a016711d39.zip | |
Update clippy and rls
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 209e0b6d787..bcdad92bc32 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1248,7 +1248,7 @@ impl MacroDef { } } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum StrStyle { /// A regular string, like `"foo"` Cooked, @@ -1261,7 +1261,7 @@ pub enum StrStyle { /// A literal pub type Lit = Spanned<LitKind>; -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum LitIntType { Signed(IntTy), Unsigned(UintTy), @@ -1271,7 +1271,7 @@ pub enum LitIntType { /// Literal kind. /// /// E.g. `"foo"`, `42`, `12.34` or `bool` -#[derive(Clone, RustcEncodable, RustcDecodable, Debug)] +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)] pub enum LitKind { /// A string literal (`"foo"`) Str(Symbol, StrStyle), |
