@@ -758,7 +758,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
758758struct DebuggerCommands {
759759 commands : Vec < String > ,
760760 check_lines : Vec < String > ,
761- breakpoint_lines : Vec < uint > ,
761+ breakpoint_lines : Vec < usize > ,
762762}
763763
764764fn parse_debugger_commands ( file_path : & Path , debugger_prefix : & str )
@@ -1036,7 +1036,7 @@ fn is_compiler_error_or_warning(line: &str) -> bool {
10361036 scan_string ( line, "warning" , & mut i) ) ;
10371037}
10381038
1039- fn scan_until_char ( haystack : & str , needle : char , idx : & mut uint ) -> bool {
1039+ fn scan_until_char ( haystack : & str , needle : char , idx : & mut usize ) -> bool {
10401040 if * idx >= haystack. len ( ) {
10411041 return false ;
10421042 }
@@ -1048,7 +1048,7 @@ fn scan_until_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
10481048 return true ;
10491049}
10501050
1051- fn scan_char ( haystack : & str , needle : char , idx : & mut uint ) -> bool {
1051+ fn scan_char ( haystack : & str , needle : char , idx : & mut usize ) -> bool {
10521052 if * idx >= haystack. len ( ) {
10531053 return false ;
10541054 }
@@ -1060,7 +1060,7 @@ fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
10601060 return true ;
10611061}
10621062
1063- fn scan_integer ( haystack : & str , idx : & mut uint ) -> bool {
1063+ fn scan_integer ( haystack : & str , idx : & mut usize ) -> bool {
10641064 let mut i = * idx;
10651065 while i < haystack. len ( ) {
10661066 let ch = haystack. char_at ( i) ;
@@ -1076,7 +1076,7 @@ fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
10761076 return true ;
10771077}
10781078
1079- fn scan_string ( haystack : & str , needle : & str , idx : & mut uint ) -> bool {
1079+ fn scan_string ( haystack : & str , needle : & str , idx : & mut usize ) -> bool {
10801080 let mut haystack_i = * idx;
10811081 let mut needle_i = 0 ;
10821082 while needle_i < needle. len ( ) {
@@ -1725,7 +1725,7 @@ fn disassemble_extract(config: &Config, _props: &TestProps,
17251725}
17261726
17271727
1728- fn count_extracted_lines ( p : & Path ) -> uint {
1728+ fn count_extracted_lines ( p : & Path ) -> usize {
17291729 let mut x = Vec :: new ( ) ;
17301730 File :: open ( & p. with_extension ( "ll" ) ) . unwrap ( ) . read_to_end ( & mut x) . unwrap ( ) ;
17311731 let x = str:: from_utf8 ( & x) . unwrap ( ) ;
0 commit comments