diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-09-29 21:52:06 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-09-30 05:52:08 -0700 |
| commit | 78e2503db31d7d07af98055ca284b0fb14752bf9 (patch) | |
| tree | 7410fd6858c677cc96bc9e98bc3d13017ca9d439 /src/libsyntax | |
| parent | d2f8d4c5050be01923f28308b71ad14a2776b30e (diff) | |
| download | rust-78e2503db31d7d07af98055ca284b0fb14752bf9.tar.gz rust-78e2503db31d7d07af98055ca284b0fb14752bf9.zip | |
librustc: Stop looking in metadata in type contents.
4x improvement in pre-trans compile time for rustc.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index efc75de7142..8963185192a 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -508,7 +508,7 @@ fn int_type_of_word(s: &str) -> Option<IntType> { } } -#[deriving(PartialEq, Show)] +#[deriving(PartialEq, Show, Encodable, Decodable)] pub enum ReprAttr { ReprAny, ReprInt(Span, IntType), @@ -527,7 +527,7 @@ impl ReprAttr { } } -#[deriving(Eq, Hash, PartialEq, Show)] +#[deriving(Eq, Hash, PartialEq, Show, Encodable, Decodable)] pub enum IntType { SignedInt(ast::IntTy), UnsignedInt(ast::UintTy) |
