From 02fffc1556e01c64d84d07d0a3ab059a9c7505f8 Mon Sep 17 00:00:00 2001 From: Ben Lewis Date: Sat, 11 Jan 2020 20:57:38 +1300 Subject: Code review changes and fix rustdoc test. --- src/libsyntax/ast.rs | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index ace12a7ffd2..331eb109ec0 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1441,17 +1441,8 @@ pub struct MacroDef { pub legacy: bool, } -#[derive( - Clone, - RustcEncodable, - RustcDecodable, - Debug, - Copy, - Hash, - Eq, - PartialEq, - HashStable_Generic -)] +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, Eq, PartialEq)] +#[derive(HashStable_Generic)] pub enum StrStyle { /// A regular string, like `"foo"`. Cooked, @@ -1501,17 +1492,8 @@ impl StrLit { } /// Type of the integer literal based on provided suffix. -#[derive( - Clone, - Copy, - RustcEncodable, - RustcDecodable, - Debug, - Hash, - Eq, - PartialEq, - HashStable_Generic -)] +#[derive(Clone, Copy, RustcEncodable, RustcDecodable, Debug, Hash, Eq, PartialEq)] +#[derive(HashStable_Generic)] pub enum LitIntType { /// e.g. `42_i32`. Signed(IntTy), @@ -1522,17 +1504,8 @@ pub enum LitIntType { } /// Type of the float literal based on provided suffix. -#[derive( - Clone, - Copy, - RustcEncodable, - RustcDecodable, - Debug, - Hash, - Eq, - PartialEq, - HashStable_Generic -)] +#[derive(Clone, Copy, RustcEncodable, RustcDecodable, Debug, Hash, Eq, PartialEq)] +#[derive(HashStable_Generic)] pub enum LitFloatType { /// A float literal with a suffix (`1f32` or `1E10f32`). Suffixed(FloatTy), -- cgit 1.4.1-3-g733a5