diff options
| author | Ben Lewis <benlewisj@gmail.com> | 2020-01-11 20:57:38 +1300 |
|---|---|---|
| committer | Ben Lewis <benlewisj@gmail.com> | 2020-01-14 07:47:45 +1300 |
| commit | 02fffc1556e01c64d84d07d0a3ab059a9c7505f8 (patch) | |
| tree | 06b7e43f4b24b98b9a0c69e257b8603ede63bd56 /src/libsyntax | |
| parent | a6c4025fac3c3a60581af72998230d46aa6f5ade (diff) | |
| download | rust-02fffc1556e01c64d84d07d0a3ab059a9c7505f8.tar.gz rust-02fffc1556e01c64d84d07d0a3ab059a9c7505f8.zip | |
Code review changes and fix rustdoc test.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 39 |
1 files changed, 6 insertions, 33 deletions
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), |
