diff options
| author | Patrick Walton <[email protected]> | 2011-03-25 10:42:57 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-25 10:44:24 -0700 |
| commit | 77a3373d53e3b0d1b87135b21307f19922398af9 (patch) | |
| tree | 7ab7d8f75daab48a2d94c042aa6f4ad6a0e73297 /src/comp/middle | |
| parent | Auto-reconfigure on Makefile.in or configure change. (diff) | |
| download | rust-77a3373d53e3b0d1b87135b21307f19922398af9.tar.xz rust-77a3373d53e3b0d1b87135b21307f19922398af9.zip | |
rustc: Create a crate metadata cache
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/ty.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index c6394c34..fba9a1fd 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -1530,11 +1530,7 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler) ret ty.fold_ty(folder(bindings), typ); } - fn hash_int(&int x) -> uint { ret x as uint; } - fn eq_int(&int a, &int b) -> bool { ret a == b; } - auto hasher = hash_int; - auto eqer = eq_int; - auto bindings = @map.mk_hashmap[int,@ty.t](hasher, eqer); + auto bindings = @common.new_int_hash[@ty.t](); auto ures = unify_step(bindings, expected, actual, handler); alt (ures) { |