Skip to content

Commit b4f47ec

Browse files
committed
RIMOV, round 7
find ./ -type f -name "*.rs" -exec sed -i "s/ mut \([a-zA-Z_]\+\): ~\[mut / mut \1: ~\[/g" {} \;
1 parent 1c9b5a8 commit b4f47ec

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/libstd/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl SmallBitv {
106106

107107
struct BigBitv {
108108
// only mut b/c of clone and lack of other constructor
109-
mut storage: ~[mut uint]
109+
mut storage: ~[uint]
110110
}
111111

112112
fn BigBitv(storage: ~[mut uint]) -> BigBitv {

src/libstd/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub mod chained {
144144

145145
struct HashMap_<K, V> {
146146
mut count: uint,
147-
mut chains: ~[mut Option<@Entry<K,V>>]
147+
mut chains: ~[Option<@Entry<K,V>>]
148148
}
149149

150150
pub type T<K, V> = @HashMap_<K, V>;

src/libsyntax/print/pp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub type printer_ = {
264264
// BEGIN (if there is any) on top of it. Stuff is flushed off the
265265
// bottom as it becomes irrelevant due to the primary ring-buffer
266266
// advancing.
267-
mut scan_stack: ~[mut uint],
267+
mut scan_stack: ~[uint],
268268
mut scan_stack_empty: bool, // top==bottom disambiguator
269269
mut top: uint, // index of top of scan_stack
270270
mut bottom: uint, // index of bottom of scan_stack

src/test/compile-fail/mutable-huh-variance-vec2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
// Note: explicit type annot is required here
1313
// because otherwise the inference gets smart
1414
// and assigns a type of ~[mut ~[const int]].
15-
let mut v: ~[mut ~[mut int]] = ~[~[0]];
15+
let mut v: ~[~[mut int]] = ~[~[0]];
1616

1717
fn f(&&v: ~[mut ~[const int]]) {
1818
v[0] = ~[3]

src/test/compile-fail/mutable-huh-variance-vec3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
// Note: explicit type annot is required here
1313
// because otherwise the inference gets smart
1414
// and assigns a type of ~[mut ~[const int]].
15-
let mut v: ~[mut ~[mut ~[int]]] = ~[~[~[0]]];
15+
let mut v: ~[~[mut ~[int]]] = ~[~[~[0]]];
1616

1717
fn f(&&v: ~[mut ~[mut ~[const int]]]) {
1818
v[0][1] = ~[mut 3]

0 commit comments

Comments
 (0)