about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-02-17 09:47:49 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-02-18 09:09:12 -0500
commit2b5720a15fd7e8ae3883dcaee556b000e962b052 (patch)
tree967aa12a6089aca54098adf56e97abff223b8798 /src/test
parent700c518f2afd4b759fb54b867aee62660188d870 (diff)
downloadrust-2b5720a15fd7e8ae3883dcaee556b000e962b052.tar.gz
rust-2b5720a15fd7e8ae3883dcaee556b000e962b052.zip
Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/bad-bang-ann-3.rs2
-rw-r--r--src/test/compile-fail/bad-bang-ann.rs2
-rw-r--r--src/test/compile-fail/borrowck-for-loop-head-linkage.rs4
-rw-r--r--src/test/compile-fail/liveness-bad-bang-2.rs2
-rw-r--r--src/test/compile-fail/match-range-fail-dominate.rs18
-rw-r--r--src/test/compile-fail/match-range-fail.rs8
-rw-r--r--src/test/compile-fail/typeck_type_placeholder_item.rs4
-rw-r--r--src/test/compile-fail/typeck_type_placeholder_lifetime_1.rs2
-rw-r--r--src/test/pretty/issue-4264.pp4
-rw-r--r--src/test/pretty/issue-4264.rs12
-rw-r--r--src/test/run-make/save-analysis/SubDir/mod.rs2
-rw-r--r--src/test/run-make/save-analysis/foo.rs2
-rw-r--r--src/test/run-pass/issue-21306.rs2
13 files changed, 32 insertions, 32 deletions
diff --git a/src/test/compile-fail/bad-bang-ann-3.rs b/src/test/compile-fail/bad-bang-ann-3.rs
index e5dbdbd237d..a35e0a13b02 100644
--- a/src/test/compile-fail/bad-bang-ann-3.rs
+++ b/src/test/compile-fail/bad-bang-ann-3.rs
@@ -14,4 +14,4 @@ fn bad_bang(i: usize) -> ! {
     return 7us; //~ ERROR `return` in a function declared as diverging [E0166]
 }
 
-fn main() { bad_bang(5us); }
+fn main() { bad_bang(5); }
diff --git a/src/test/compile-fail/bad-bang-ann.rs b/src/test/compile-fail/bad-bang-ann.rs
index 414421c8b77..aa073d82d30 100644
--- a/src/test/compile-fail/bad-bang-ann.rs
+++ b/src/test/compile-fail/bad-bang-ann.rs
@@ -14,4 +14,4 @@ fn bad_bang(i: usize) -> ! { //~ ERROR computation may converge in a function ma
     if i < 0us { } else { panic!(); }
 }
 
-fn main() { bad_bang(5us); }
+fn main() { bad_bang(5); }
diff --git a/src/test/compile-fail/borrowck-for-loop-head-linkage.rs b/src/test/compile-fail/borrowck-for-loop-head-linkage.rs
index 043ea0bf00e..01a649ae247 100644
--- a/src/test/compile-fail/borrowck-for-loop-head-linkage.rs
+++ b/src/test/compile-fail/borrowck-for-loop-head-linkage.rs
@@ -11,11 +11,11 @@
 use std::iter::repeat;
 
 fn main() {
-    let mut vector = vec![1us, 2];
+    let mut vector = vec![1, 2];
     for &x in &vector {
         let cap = vector.capacity();
         vector.extend(repeat(0));      //~ ERROR cannot borrow
-        vector[1us] = 5us;   //~ ERROR cannot borrow
+        vector[1] = 5;   //~ ERROR cannot borrow
     }
 }
 
diff --git a/src/test/compile-fail/liveness-bad-bang-2.rs b/src/test/compile-fail/liveness-bad-bang-2.rs
index 181ba124fdd..d0bc71edf2c 100644
--- a/src/test/compile-fail/liveness-bad-bang-2.rs
+++ b/src/test/compile-fail/liveness-bad-bang-2.rs
@@ -14,4 +14,4 @@ fn bad_bang(i: usize) -> ! { //~ ERROR computation may converge in a function ma
     println!("{}", 3);
 }
 
-fn main() { bad_bang(5us); }
+fn main() { bad_bang(5); }
diff --git a/src/test/compile-fail/match-range-fail-dominate.rs b/src/test/compile-fail/match-range-fail-dominate.rs
index 7d33963003f..825a485d529 100644
--- a/src/test/compile-fail/match-range-fail-dominate.rs
+++ b/src/test/compile-fail/match-range-fail-dominate.rs
@@ -15,21 +15,21 @@
 //error-pattern: unreachable
 
 fn main() {
-    match 5us {
-      1us ... 10us => { }
-      5us ... 6us => { }
+    match 5 {
+      1 ... 10 => { }
+      5 ... 6 => { }
       _ => {}
     };
 
-    match 5us {
-      3us ... 6us => { }
-      4us ... 6us => { }
+    match 5 {
+      3 ... 6 => { }
+      4 ... 6 => { }
       _ => {}
     };
 
-    match 5us {
-      4us ... 6us => { }
-      4us ... 6us => { }
+    match 5 {
+      4 ... 6 => { }
+      4 ... 6 => { }
       _ => {}
     };
 
diff --git a/src/test/compile-fail/match-range-fail.rs b/src/test/compile-fail/match-range-fail.rs
index 1c804b0552c..c3292adfa34 100644
--- a/src/test/compile-fail/match-range-fail.rs
+++ b/src/test/compile-fail/match-range-fail.rs
@@ -13,8 +13,8 @@
 //error-pattern: mismatched types
 
 fn main() {
-    match 5us {
-      6us ... 1us => { }
+    match 5 {
+      6 ... 1 => { }
       _ => { }
     };
 
@@ -22,8 +22,8 @@ fn main() {
       "bar" ... "foo" => { }
     };
 
-    match 5us {
-      'c' ... 100us => { }
+    match 5 {
+      'c' ... 100 => { }
       _ => { }
     };
 }
diff --git a/src/test/compile-fail/typeck_type_placeholder_item.rs b/src/test/compile-fail/typeck_type_placeholder_item.rs
index d69c0dc5d1f..5bfad94867e 100644
--- a/src/test/compile-fail/typeck_type_placeholder_item.rs
+++ b/src/test/compile-fail/typeck_type_placeholder_item.rs
@@ -14,7 +14,7 @@
 fn test() -> _ { 5 }
 //~^ ERROR the type placeholder `_` is not allowed within types on item signatures
 
-fn test2() -> (_, _) { (5us, 5us) }
+fn test2() -> (_, _) { (5, 5) }
 //~^ ERROR the type placeholder `_` is not allowed within types on item signatures
 //~^^ ERROR the type placeholder `_` is not allowed within types on item signatures
 
@@ -67,7 +67,7 @@ pub fn main() {
     fn fn_test() -> _ { 5 }
     //~^ ERROR the type placeholder `_` is not allowed within types on item signatures
 
-    fn fn_test2() -> (_, _) { (5us, 5us) }
+    fn fn_test2() -> (_, _) { (5, 5) }
     //~^ ERROR the type placeholder `_` is not allowed within types on item signatures
     //~^^ ERROR the type placeholder `_` is not allowed within types on item signatures
 
diff --git a/src/test/compile-fail/typeck_type_placeholder_lifetime_1.rs b/src/test/compile-fail/typeck_type_placeholder_lifetime_1.rs
index e1d17e4fef7..2cb46cc352b 100644
--- a/src/test/compile-fail/typeck_type_placeholder_lifetime_1.rs
+++ b/src/test/compile-fail/typeck_type_placeholder_lifetime_1.rs
@@ -16,6 +16,6 @@ struct Foo<'a, T:'a> {
 }
 
 pub fn main() {
-    let c: Foo<_, _> = Foo { r: &5us };
+    let c: Foo<_, _> = Foo { r: &5 };
     //~^ ERROR wrong number of type arguments: expected 1, found 2
 }
diff --git a/src/test/pretty/issue-4264.pp b/src/test/pretty/issue-4264.pp
index 60660d48274..ffe45c0ac46 100644
--- a/src/test/pretty/issue-4264.pp
+++ b/src/test/pretty/issue-4264.pp
@@ -83,8 +83,8 @@ pub type Foo = [i32; (3us as usize)];
 pub struct Bar {
     pub x: [i32; (3us as usize)],
 }
-pub struct TupleBar([i32; (4us as usize)]);
-pub enum Baz { BazVariant([i32; (5us as usize)]), }
+pub struct TupleBar([i32; (4 as usize)]);
+pub enum Baz { BazVariant([i32; (5 as usize)]), }
 pub fn id<T>(x: T) -> T { (x as T) }
 pub fn use_id() {
     let _ =
diff --git a/src/test/pretty/issue-4264.rs b/src/test/pretty/issue-4264.rs
index ff30bc6c157..8033b3cd1a8 100644
--- a/src/test/pretty/issue-4264.rs
+++ b/src/test/pretty/issue-4264.rs
@@ -17,7 +17,7 @@
 pub fn foo(_: [i32; 3]) {}
 
 pub fn bar() {
-    const FOO: usize = 5us - 4us;
+    const FOO: usize = 5 - 4;
     let _: [(); FOO] = [()];
 
     let _ : [(); 1us] = [()];
@@ -27,22 +27,22 @@ pub fn bar() {
     format!("test");
 }
 
-pub type Foo = [i32; 3us];
+pub type Foo = [i32; 3];
 
 pub struct Bar {
-    pub x: [i32; 3us]
+    pub x: [i32; 3]
 }
 
-pub struct TupleBar([i32; 4us]);
+pub struct TupleBar([i32; 4]);
 
 pub enum Baz {
-    BazVariant([i32; 5us])
+    BazVariant([i32; 5])
 }
 
 pub fn id<T>(x: T) -> T { x }
 
 pub fn use_id() {
-    let _ = id::<[i32; 3us]>([1,2,3]);
+    let _ = id::<[i32; 3]>([1,2,3]);
 }
 
 
diff --git a/src/test/run-make/save-analysis/SubDir/mod.rs b/src/test/run-make/save-analysis/SubDir/mod.rs
index f2879cfc6ba..23b7d8bbf09 100644
--- a/src/test/run-make/save-analysis/SubDir/mod.rs
+++ b/src/test/run-make/save-analysis/SubDir/mod.rs
@@ -14,7 +14,7 @@ use sub::sub2 as msalias;
 use sub::sub2;
 use std::old_io::stdio::println;
 
-static yy: usize = 25us;
+static yy: usize = 25;
 
 mod sub {
     pub mod sub2 {
diff --git a/src/test/run-make/save-analysis/foo.rs b/src/test/run-make/save-analysis/foo.rs
index d90219b4221..9fb2c6aa67a 100644
--- a/src/test/run-make/save-analysis/foo.rs
+++ b/src/test/run-make/save-analysis/foo.rs
@@ -32,7 +32,7 @@ use std::num::{from_int,from_i8,from_i32};
 use std::mem::size_of;
 
 static uni: &'static str = "Les Miséééééééérables";
-static yy: usize = 25us;
+static yy: usize = 25;
 
 static bob: Option<std::vec::CowVec<'static, isize>> = None;
 
diff --git a/src/test/run-pass/issue-21306.rs b/src/test/run-pass/issue-21306.rs
index ca2a4e546b7..235dddefacb 100644
--- a/src/test/run-pass/issue-21306.rs
+++ b/src/test/run-pass/issue-21306.rs
@@ -11,7 +11,7 @@
 use std::sync::Arc;
 
 fn main() {
-    let x = 5us;
+    let x = 5;
     let command = Arc::new(Box::new(|| { x*2 }));
     assert_eq!(command(), 10);
 }