diff options
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/common.rs | 6 |
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 |