]> git.lizzy.rs Git - rust.git/blobdiff - src/comp/middle/trans.rs
Statically allocate static dicts
[rust.git] / src / comp / middle / trans.rs
index 388268953a17b1b62b64e67ca1f3cf4c3d23e4f3..2dd553a80d5bf1acc43074057aff18960f3699dc 100644 (file)
@@ -5689,6 +5689,7 @@ fn trans_crate(sess: session::session, crate: @ast::crate, tcx: ty::ctxt,
           discrim_symbols: new_int_hash::<str>(),
           consts: new_int_hash::<ValueRef>(),
           tydescs: ty::new_ty_hash(),
+          dicts: map::mk_hashmap(hash_dict_id, {|a, b| a == b}),
           module_data: new_str_hash::<ValueRef>(),
           lltypes: ty::new_ty_hash(),
           names: namegen(0),