librustc: Stop looking in metadata in type contents.

4x improvement in pre-trans compile time for rustc.
This commit is contained in:
Patrick Walton
2014-09-29 21:52:06 -07:00
parent d2f8d4c505
commit 78e2503db3
7 changed files with 61 additions and 9 deletions

View File

@@ -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)