From 78e2503db31d7d07af98055ca284b0fb14752bf9 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 29 Sep 2014 21:52:06 -0700 Subject: librustc: Stop looking in metadata in type contents. 4x improvement in pre-trans compile time for rustc. --- src/libsyntax/attr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') 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 { } } -#[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) -- cgit 1.4.1-3-g733a5