Skip to content

Commit 72eb214

Browse files
committed
Update suffixes en masse in tests using perl -p -i -e
1 parent 8c34b26 commit 72eb214

File tree

266 files changed

+639
-639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+639
-639
lines changed

src/test/auxiliary/cci_class_3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub mod kitties {
1616
}
1717

1818
impl cat {
19-
pub fn speak(&mut self) { self.meows += 1u; }
19+
pub fn speak(&mut self) { self.meows += 1_usize; }
2020
pub fn meow_count(&mut self) -> uint { self.meows }
2121
}
2222

src/test/auxiliary/cci_class_4.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub mod kitties {
3434
impl cat {
3535
pub fn meow(&mut self) {
3636
println!("Meow");
37-
self.meows += 1u;
38-
if self.meows % 5u == 0u {
37+
self.meows += 1_usize;
38+
if self.meows % 5_usize == 0_usize {
3939
self.how_hungry += 1;
4040
}
4141
}

src/test/auxiliary/cci_class_cast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pub mod kitty {
2626
impl cat {
2727
fn meow(&mut self) {
2828
println!("Meow");
29-
self.meows += 1u;
30-
if self.meows % 5u == 0u {
29+
self.meows += 1_usize;
30+
if self.meows % 5_usize == 0_usize {
3131
self.how_hungry += 1;
3232
}
3333
}

src/test/auxiliary/cci_impl_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl uint_helpers for uint {
2020
let mut i = *self;
2121
while i < v {
2222
f(i);
23-
i += 1u;
23+
i += 1_usize;
2424
}
2525
}
2626
}

src/test/auxiliary/cci_iter_lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
#[inline]
1414
pub fn iter<T, F>(v: &[T], mut f: F) where F: FnMut(&T) {
15-
let mut i = 0u;
15+
let mut i = 0_usize;
1616
let n = v.len();
1717
while i < n {
1818
f(&v[i]);
19-
i += 1u;
19+
i += 1_usize;
2020
}
2121
}

src/test/auxiliary/cci_no_inline_lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
// same as cci_iter_lib, more-or-less, but not marked inline
1515
pub fn iter<F>(v: Vec<uint> , mut f: F) where F: FnMut(uint) {
16-
let mut i = 0u;
16+
let mut i = 0_usize;
1717
let n = v.len();
1818
while i < n {
1919
f(v[i]);
20-
i += 1u;
20+
i += 1_usize;
2121
}
2222
}

src/test/auxiliary/macro_reexport_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
#![crate_type = "dylib"]
1212
#[macro_export]
1313
macro_rules! reexported {
14-
() => ( 3u )
14+
() => ( 3_usize )
1515
}

src/test/auxiliary/roman_numerals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
4747
};
4848

4949
let mut text = &*text;
50-
let mut total = 0u;
50+
let mut total = 0_usize;
5151
while !text.is_empty() {
5252
match NUMERALS.iter().find(|&&(rn, _)| text.starts_with(rn)) {
5353
Some(&(rn, val)) => {

src/test/auxiliary/unboxed-closures-cross-crate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ use std::ops::Add;
1414

1515
#[inline]
1616
pub fn has_closures() -> uint {
17-
let x = 1u;
17+
let x = 1_usize;
1818
let mut f = move || x;
19-
let y = 1u;
19+
let y = 1_usize;
2020
let g = || y;
2121
f() + g()
2222
}

src/test/bench/noise.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ fn main() {
104104
let mut pixels = [0f32; 256*256];
105105
let n2d = Noise2DContext::new();
106106

107-
for _ in 0u..100 {
108-
for y in 0u..256 {
109-
for x in 0u..256 {
107+
for _ in 0..100 {
108+
for y in 0..256 {
109+
for x in 0..256 {
110110
let v = n2d.get(x as f32 * 0.1, y as f32 * 0.1);
111111
pixels[y*256+x] = v * 0.5 + 0.5;
112112
}

0 commit comments

Comments
 (0)