diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs index ec7fc431ab70..10c6ac64f653 100644 --- a/src/libstd/bitv.rs +++ b/src/libstd/bitv.rs @@ -106,7 +106,7 @@ impl SmallBitv { struct BigBitv { // only mut b/c of clone and lack of other constructor - mut storage: ~[mut uint] + mut storage: ~[uint] } fn BigBitv(storage: ~[mut uint]) -> BigBitv { diff --git a/src/libstd/map.rs b/src/libstd/map.rs index 2fa2825eb4cd..7545a6e0bef3 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -144,7 +144,7 @@ pub mod chained { struct HashMap_ { mut count: uint, - mut chains: ~[mut Option<@Entry>] + mut chains: ~[Option<@Entry>] } pub type T = @HashMap_; diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index 249dfa8bede3..8174240f68a4 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -264,7 +264,7 @@ pub type printer_ = { // BEGIN (if there is any) on top of it. Stuff is flushed off the // bottom as it becomes irrelevant due to the primary ring-buffer // advancing. - mut scan_stack: ~[mut uint], + mut scan_stack: ~[uint], mut scan_stack_empty: bool, // top==bottom disambiguator mut top: uint, // index of top of scan_stack mut bottom: uint, // index of bottom of scan_stack diff --git a/src/test/compile-fail/mutable-huh-variance-vec2.rs b/src/test/compile-fail/mutable-huh-variance-vec2.rs index be3f28a440f9..e205bb6b0a2f 100644 --- a/src/test/compile-fail/mutable-huh-variance-vec2.rs +++ b/src/test/compile-fail/mutable-huh-variance-vec2.rs @@ -12,7 +12,7 @@ fn main() { // Note: explicit type annot is required here // because otherwise the inference gets smart // and assigns a type of ~[mut ~[const int]]. - let mut v: ~[mut ~[mut int]] = ~[~[0]]; + let mut v: ~[~[mut int]] = ~[~[0]]; fn f(&&v: ~[mut ~[const int]]) { v[0] = ~[3] diff --git a/src/test/compile-fail/mutable-huh-variance-vec3.rs b/src/test/compile-fail/mutable-huh-variance-vec3.rs index eaf10e314ae8..8046db3cd98f 100644 --- a/src/test/compile-fail/mutable-huh-variance-vec3.rs +++ b/src/test/compile-fail/mutable-huh-variance-vec3.rs @@ -12,7 +12,7 @@ fn main() { // Note: explicit type annot is required here // because otherwise the inference gets smart // and assigns a type of ~[mut ~[const int]]. - let mut v: ~[mut ~[mut ~[int]]] = ~[~[~[0]]]; + let mut v: ~[~[mut ~[int]]] = ~[~[~[0]]]; fn f(&&v: ~[mut ~[mut ~[const int]]]) { v[0][1] = ~[mut 3]