Skip to content

Commit 81bb914

Browse files
ericktgraydon
authored andcommitted
---
yaml --- r: 30775 b: refs/heads/incoming c: dd502fc h: refs/heads/master i: 30773: d7eb6c7 30771: 26c17a6 30767: 5e9c872 v: v3
1 parent b9c7a9c commit 81bb914

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 24153eb30f7f4384f6aebf6fef9e4aea35fdf416
9+
refs/heads/incoming: dd502fc6e4039e269a78be5d5cfe5b0d8899d30c
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libsyntax/ext/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn syntax_expander_table() -> HashMap<~str, syntax_extension> {
7373
fn builtin_item_tt(f: syntax_expander_tt_item_) -> syntax_extension {
7474
item_tt({expander: f, span: None})
7575
}
76-
let syntax_expanders = HashMap::<~str,syntax_extension>();
76+
let syntax_expanders = HashMap();
7777
syntax_expanders.insert(~"macro",
7878
macro_defining(ext::simplext::add_new_extension));
7979
syntax_expanders.insert(~"macro_rules",

branches/incoming/src/libsyntax/ext/simplext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn follow_for_trans(cx: ext_ctxt, mmaybe: Option<arb_depth<matchable>>,
237237

238238
/* helper for transcribe_exprs: what vars from `b` occur in `e`? */
239239
fn free_vars(b: bindings, e: @expr, it: fn(ident)) {
240-
let idents: HashMap<ident, ()> = HashMap();
240+
let idents = HashMap();
241241
fn mark_ident(&&i: ident, _fld: ast_fold, b: bindings,
242242
idents: HashMap<ident, ()>) -> ident {
243243
if b.contains_key(i) { idents.insert(i, ()); }

branches/incoming/src/libsyntax/ext/tt/macro_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn nameize(p_s: parse_sess, ms: ~[matcher], res: ~[@named_match])
185185
}
186186
}
187187
}
188-
let ret_val = HashMap::<uint,@named_match>();
188+
let ret_val = HashMap();
189189
for ms.each() |m| { n_rec(p_s, *m, res, ret_val) }
190190
return ret_val;
191191
}

branches/incoming/src/libsyntax/ext/tt/transcribe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn new_tt_reader(sp_diag: span_handler, itr: ident_interner,
4747
mut cur: @{readme: src, mut idx: 0u, dotdotdoted: false,
4848
sep: None, up: tt_frame_up(option::None)},
4949
interpolations: match interp { /* just a convienience */
50-
None => std::map::HashMap::<uint,@named_match>(),
50+
None => std::map::HashMap(),
5151
Some(x) => x
5252
},
5353
mut repeat_idx: ~[],

branches/incoming/src/libsyntax/util/interner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ impl <T:Eq IterBytes Hash Const Copy> hash_interner<T>: interner<T> {
5959
pure fn get(idx: uint) -> T { self.vect.get_elt(idx) }
6060

6161
fn len() -> uint { return self.vect.len(); }
62-
}
62+
}

branches/incoming/src/rustc/metadata/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ fn resolve_crate_deps(e: env, cdata: @~[u8]) -> cstore::cnum_map {
248248
debug!("resolving deps of external crate");
249249
// The map from crate numbers in the crate we're resolving to local crate
250250
// numbers
251-
let cnum_map = HashMap::<int,ast::crate_num>();
251+
let cnum_map = HashMap();
252252
for decoder::get_crate_deps(e.intr, cdata).each |dep| {
253253
let extrn_cnum = dep.cnum;
254254
let cname = dep.name;

branches/incoming/src/rustc/metadata/cstore.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ pure fn p(cstore: cstore) -> cstore_private {
6969
}
7070

7171
fn mk_cstore(intr: ident_interner) -> cstore {
72-
let meta_cache = map::HashMap::<int,crate_metadata>();
73-
let crate_map = map::HashMap::<int,ast::crate_num>();
72+
let meta_cache = map::HashMap();
73+
let crate_map = map::HashMap();
7474
let mod_path_map = HashMap();
7575
return private(@{metas: meta_cache,
7676
use_crate_map: crate_map,

branches/incoming/src/rustc/metadata/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ fn get_crate_module_paths(intr: ident_interner, cdata: cmd)
967967
// find all module (path, def_ids), which are not
968968
// fowarded path due to renamed import or reexport
969969
let mut res = ~[];
970-
let mods = map::HashMap::<~str,bool>();
970+
let mods = map::HashMap();
971971
do iter_crate_items(intr, cdata) |path, did| {
972972
let m = mod_of_path(path);
973973
if str::is_not_empty(m) {

branches/incoming/src/rustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn Atom(n: uint) -> Atom {
314314

315315
/// Creates a hash table of atoms.
316316
fn atom_hashmap<V:Copy>() -> HashMap<Atom,V> {
317-
HashMap::<Atom,V>()
317+
HashMap()
318318
}
319319

320320
/// One local scope.

branches/incoming/src/rustc/middle/trans/base.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,9 +1406,9 @@ fn new_fn_ctxt_w_id(ccx: @crate_ctxt, path: path,
14061406
mut llself: None,
14071407
mut personality: None,
14081408
mut loop_ret: None,
1409-
llargs: HashMap::<int,local_val>(),
1410-
lllocals: HashMap::<int,local_val>(),
1411-
llupvars: HashMap::<int,ValueRef>(),
1409+
llargs: HashMap(),
1410+
lllocals: HashMap(),
1411+
llupvars: HashMap(),
14121412
id: id,
14131413
param_substs: param_substs,
14141414
span: sp,
@@ -2315,7 +2315,7 @@ fn declare_intrinsics(llmod: ModuleRef) -> HashMap<~str, ValueRef> {
23152315
let frameaddress = decl_cdecl_fn(llmod, ~"llvm.frameaddress",
23162316
T_fn(T_frameaddress_args,
23172317
T_ptr(T_i8())));
2318-
let intrinsics = HashMap::<~str,ValueRef>();
2318+
let intrinsics = HashMap();
23192319
intrinsics.insert(~"llvm.gcroot", gcroot);
23202320
intrinsics.insert(~"llvm.gcread", gcread);
23212321
intrinsics.insert(~"llvm.memmove.p0i8.p0i8.i32", memmove32);
@@ -2627,17 +2627,17 @@ fn trans_crate(sess: session::session,
26272627
llmod: llmod,
26282628
td: td,
26292629
tn: tn,
2630-
externs: HashMap::<~str,ValueRef>(),
2630+
externs: HashMap(),
26312631
intrinsics: intrinsics,
2632-
item_vals: HashMap::<int,ValueRef>(),
2632+
item_vals: HashMap(),
26332633
exp_map2: emap2,
26342634
reachable: reachable,
2635-
item_symbols: HashMap::<int,~str>(),
2635+
item_symbols: HashMap(),
26362636
mut main_fn: None::<ValueRef>,
26372637
link_meta: link_meta,
26382638
enum_sizes: ty::new_ty_hash(),
26392639
discrims: HashMap(),
2640-
discrim_symbols: HashMap::<int,~str>(),
2640+
discrim_symbols: HashMap(),
26412641
tydescs: ty::new_ty_hash(),
26422642
mut finished_tydescs: false,
26432643
external: HashMap(),
@@ -2646,15 +2646,15 @@ fn trans_crate(sess: session::session,
26462646
type_use_cache: HashMap(),
26472647
vtables: map::HashMap(),
26482648
const_cstr_cache: HashMap(),
2649-
const_globals: HashMap::<int,ValueRef>(),
2650-
module_data: HashMap::<~str,ValueRef>(),
2649+
const_globals: HashMap(),
2650+
module_data: HashMap(),
26512651
lltypes: ty::new_ty_hash(),
26522652
names: new_namegen(sess.parse_sess.interner),
26532653
next_addrspace: new_addrspace_gen(),
26542654
symbol_hasher: symbol_hasher,
26552655
type_hashcodes: ty::new_ty_hash(),
26562656
type_short_names: ty::new_ty_hash(),
2657-
all_llvm_symbols: HashMap::<~str,()>(),
2657+
all_llvm_symbols: HashMap(),
26582658
tcx: tcx,
26592659
maps: maps,
26602660
stats:
@@ -2672,7 +2672,7 @@ fn trans_crate(sess: session::session,
26722672
upcalls:
26732673
upcall::declare_upcalls(targ_cfg, tn, tydesc_type,
26742674
llmod),
2675-
rtcalls: HashMap::<~str,ast::def_id>(),
2675+
rtcalls: HashMap(),
26762676
tydesc_type: tydesc_type,
26772677
int_type: int_type,
26782678
float_type: float_type,
@@ -2683,7 +2683,7 @@ fn trans_crate(sess: session::session,
26832683
crate_map: crate_map,
26842684
mut uses_gc: false,
26852685
dbg_cx: dbg_cx,
2686-
class_ctors: HashMap::<int,ast::def_id>(),
2686+
class_ctors: HashMap(),
26872687
mut do_not_commit_warning_issued: false};
26882688

26892689

0 commit comments

Comments
 (0)