Skip to content

Commit 26fb16e

Browse files
committed
auto merge of #6776 : graydon/rust/node-type-table-hashmap, r=thestinger
Smallintmap was being populated with sparse keys during ast deserialization.
2 parents 6d7d759 + 3c4ce79 commit 26fb16e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ type type_cache = @mut HashMap<ast::def_id, ty_param_bounds_and_ty>;
907907

908908
type constness_cache = @mut HashMap<ast::def_id, const_eval::constness>;
909909

910-
pub type node_type_table = @mut SmallIntMap<t>;
910+
pub type node_type_table = @mut HashMap<uint,t>;
911911

912912
fn mk_rcache() -> creader_cache {
913913
return @mut HashMap::new();
@@ -934,7 +934,7 @@ pub fn mk_ctxt(s: session::Session,
934934
def_map: dm,
935935
region_maps: region_maps,
936936
region_paramd_items: region_paramd_items,
937-
node_types: @mut SmallIntMap::new(),
937+
node_types: @mut HashMap::new(),
938938
node_type_substs: @mut HashMap::new(),
939939
trait_refs: @mut HashMap::new(),
940940
trait_defs: @mut HashMap::new(),

0 commit comments

Comments
 (0)