aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-21 16:22:32 -0700
committerGraydon Hoare <[email protected]>2010-09-21 16:22:32 -0700
commit1f0621d04ee9d938ba7d07df76837b86f43c6158 (patch)
tree85c1a6034f9858156d6188d1690abb68cb128d36 /src/comp/util
parentAdd insn-selection fixup-name logging. (diff)
downloadrust-1f0621d04ee9d938ba7d07df76837b86f43c6158.tar.xz
rust-1f0621d04ee9d938ba7d07df76837b86f43c6158.zip
Begin teaching rustc to parse literals, atoms, stmts, blocks, items, modules, crates.
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 086a1e54..9952c89b 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -35,6 +35,12 @@ fn ty_mach_to_str(ty_mach tm) -> str {
}
}
+fn new_str_hash[V]() -> std.map.hashmap[str,V] {
+ let std.map.hashfn[str] hasher = std._str.hash;
+ let std.map.eqfn[str] eqer = std._str.eq;
+ ret std.map.mk_hashmap[str,V](hasher, eqer);
+}
+
//
// Local Variables:
// mode: rust