diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-21 18:27:24 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-22 16:09:16 -0800 |
| commit | a07192fadd794b1eaaec85541886e07578002b74 (patch) | |
| tree | 24e178f84f1543d1902abd15c7740edba2f78a26 /src/libsyntax/util | |
| parent | 934c938f90662522c4a8a86bd58d7618207f5c2a (diff) | |
| download | rust-a07192fadd794b1eaaec85541886e07578002b74.tar.gz rust-a07192fadd794b1eaaec85541886e07578002b74.zip | |
libsyntax: Remove all mutable fields from libsyntax. rs=demuting
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 4b13818974c..41500d6a409 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -18,7 +18,7 @@ use hashmap::linear::LinearMap; use dvec::DVec; pub struct Interner<T> { - priv mut map: LinearMap<T, uint>, + priv map: @mut LinearMap<T, uint>, priv vect: DVec<T>, } @@ -26,7 +26,7 @@ pub struct Interner<T> { pub impl<T:Eq + IterBytes + Hash + Const + Copy> Interner<T> { static fn new() -> Interner<T> { Interner { - map: LinearMap::new(), + map: @mut LinearMap::new(), vect: DVec(), } } |
