diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-07-29 18:38:22 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-07-29 18:48:15 -0700 |
| commit | 0c9b749d208ccc75f03ab9f7fce1322aa5dbbfd3 (patch) | |
| tree | 9b61946d3cacaa67e89fb948af5f11e723e1dc30 /src/comp/syntax | |
| parent | 6ba4e349598aa736449a985d38348f083efdfb9d (diff) | |
Enable kind checking on typarams, fix kind constraints in library and comp.
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/util/interner.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/util/interner.rs b/src/comp/syntax/util/interner.rs index ec484356089..9474ddd16d2 100644 --- a/src/comp/syntax/util/interner.rs +++ b/src/comp/syntax/util/interner.rs @@ -16,11 +16,11 @@ type interner[T] = hasher: hashfn[T], eqer: eqfn[T]}; -fn mk[T](hasher: hashfn[T], eqer: eqfn[T]) -> interner[T] { +fn mk[@T](hasher: hashfn[T], eqer: eqfn[T]) -> interner[T] { let m = map::mk_hashmap[T, uint](hasher, eqer); ret {map: m, mutable vect: ~[], hasher: hasher, eqer: eqer}; } -fn intern[T](itr: &interner[T], val: &T) -> uint { +fn intern[@T](itr: &interner[T], val: &T) -> uint { alt itr.map.find(val) { some(idx) { ret idx; } none. { |
