diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-05 20:17:44 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-05 20:19:43 +0200 |
| commit | 1f45dda9d2944a90e1dfa9599d030cbfb4f927b7 (patch) | |
| tree | 1a1d7c3e15af362539d6788af29ab27d751c6416 /src/comp/middle/ty.rs | |
| parent | Return a fresh, unreachable context after ret, break, and cont (diff) | |
| download | rust-1f45dda9d2944a90e1dfa9599d030cbfb4f927b7.tar.xz rust-1f45dda9d2944a90e1dfa9599d030cbfb4f927b7.zip | |
Remove 'deprecated mutable...' from our code
This should make compilation a bit less noisy.
Diffstat (limited to 'src/comp/middle/ty.rs')
| -rw-r--r-- | src/comp/middle/ty.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index c5e5ffa3..9e6b4489 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -2281,7 +2281,7 @@ mod Unify { case (_) { // Just bind the type variable to the expected type. - auto vlen = _vec.len[mutable vec[t]](cx.types); + auto vlen = _vec.len[vec[t]](cx.types); if (actual_n < vlen) { cx.types.(actual_n) += vec(expected); } else { @@ -2649,7 +2649,7 @@ mod Unify { case (ty.ty_var(?expected_id)) { // Add a binding. auto expected_n = get_or_create_set(cx, expected_id); - auto vlen = _vec.len[mutable vec[t]](cx.types); + auto vlen = _vec.len[vec[t]](cx.types); if (expected_n < vlen) { cx.types.(expected_n) += vec(actual); } else { @@ -2713,7 +2713,7 @@ mod Unify { fn unify_sets(@ctxt cx) -> vec[t] { let vec[t] throwaway = vec(); let vec[mutable vec[t]] set_types = vec(mutable throwaway); - _vec.pop[mutable vec[t]](set_types); // FIXME: botch + _vec.pop[vec[t]](set_types); // FIXME: botch for (UFind.node node in cx.sets.nodes) { let vec[t] v = vec(); @@ -2721,7 +2721,7 @@ mod Unify { } auto i = 0u; - while (i < _vec.len[mutable vec[t]](set_types)) { + while (i < _vec.len[vec[t]](set_types)) { auto root = UFind.find(cx.sets, i); set_types.(root) += cx.types.(i); i += 1u; @@ -2746,7 +2746,7 @@ mod Unify { ty_ctxt tcx) -> result { let vec[t] throwaway = vec(); let vec[mutable vec[t]] types = vec(mutable throwaway); - _vec.pop[mutable vec[t]](types); // FIXME: botch + _vec.pop[vec[t]](types); // FIXME: botch auto cx = @rec(sets=UFind.make(), var_ids=common.new_int_hash[uint](), @@ -2759,7 +2759,7 @@ mod Unify { case (ures_ok(?typ)) { // Fast path: if there are no local variables, don't perform // substitutions. - if (_vec.len[mutable UFind.node](cx.sets.nodes) == 0u) { + if (_vec.len(cx.sets.nodes) == 0u) { ret ures_ok(typ); } |