Allow hashmaps to infer their types

This commit is contained in:
Erick Tryzelaar
2012-09-19 09:41:06 -07:00
committed by Graydon Hoare
parent 24153eb30f
commit dd502fc6e4
10 changed files with 23 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ fn syntax_expander_table() -> HashMap<~str, syntax_extension> {
fn builtin_item_tt(f: syntax_expander_tt_item_) -> syntax_extension {
item_tt({expander: f, span: None})
}
let syntax_expanders = HashMap::<~str,syntax_extension>();
let syntax_expanders = HashMap();
syntax_expanders.insert(~"macro",
macro_defining(ext::simplext::add_new_extension));
syntax_expanders.insert(~"macro_rules",