@@ -230,9 +230,9 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
230230 let s = File :: open ( & filepath) . read_to_end ( ) . unwrap ( ) ;
231231 String :: from_utf8 ( s) . unwrap ( )
232232 }
233- None => { srcs[ srcs. len ( ) - 2 u ] . clone ( ) }
233+ None => { srcs[ srcs. len ( ) - 2 ] . clone ( ) }
234234 } ;
235- let mut actual = srcs[ srcs. len ( ) - 1 u ] . clone ( ) ;
235+ let mut actual = srcs[ srcs. len ( ) - 1 ] . clone ( ) ;
236236
237237 if props. pp_exact . is_some ( ) {
238238 // Now we have to care about line endings
@@ -842,7 +842,7 @@ fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String])
842842 } ) . collect ( ) ;
843843 // check if each line in props.check_lines appears in the
844844 // output (in order)
845- let mut i = 0 u ;
845+ let mut i = 0 ;
846846 for line in debugger_run_result. stdout . lines ( ) {
847847 let mut rest = line. trim ( ) ;
848848 let mut first = true ;
@@ -869,7 +869,7 @@ fn check_debugger_output(debugger_run_result: &ProcRes, check_lines: &[String])
869869 first = false ;
870870 }
871871 if !failed && rest. len ( ) == 0 {
872- i += 1 u ;
872+ i += 1 ;
873873 }
874874 if i == num_check_lines {
875875 // all lines checked
@@ -892,13 +892,13 @@ fn check_error_patterns(props: &TestProps,
892892 fatal ( format ! ( "no error pattern specified in {:?}" ,
893893 testfile. display( ) ) . as_slice ( ) ) ;
894894 }
895- let mut next_err_idx = 0 u ;
895+ let mut next_err_idx = 0 ;
896896 let mut next_err_pat = & props. error_patterns [ next_err_idx] ;
897897 let mut done = false ;
898898 for line in output_to_check. lines ( ) {
899899 if line. contains ( next_err_pat. as_slice ( ) ) {
900900 debug ! ( "found error pattern {}" , next_err_pat) ;
901- next_err_idx += 1 u ;
901+ next_err_idx += 1 ;
902902 if next_err_idx == props. error_patterns . len ( ) {
903903 debug ! ( "found all error patterns" ) ;
904904 done = true ;
@@ -910,7 +910,7 @@ fn check_error_patterns(props: &TestProps,
910910 if done { return ; }
911911
912912 let missing_patterns = & props. error_patterns [ next_err_idx..] ;
913- if missing_patterns. len ( ) == 1 u {
913+ if missing_patterns. len ( ) == 1 {
914914 fatal_proc_rec ( format ! ( "error pattern '{}' not found!" ,
915915 missing_patterns[ 0 ] ) . as_slice ( ) ,
916916 proc_res) ;
@@ -1025,7 +1025,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
10251025}
10261026
10271027fn is_compiler_error_or_warning ( line : & str ) -> bool {
1028- let mut i = 0 u ;
1028+ let mut i = 0 ;
10291029 return
10301030 scan_until_char ( line, ':' , & mut i) &&
10311031 scan_char ( line, ':' , & mut i) &&
@@ -1084,7 +1084,7 @@ fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
10841084
10851085fn scan_string ( haystack : & str , needle : & str , idx : & mut uint ) -> bool {
10861086 let mut haystack_i = * idx;
1087- let mut needle_i = 0 u ;
1087+ let mut needle_i = 0 ;
10881088 while needle_i < needle. len ( ) {
10891089 if haystack_i >= haystack. len ( ) {
10901090 return false ;
0 commit comments