@@ -758,7 +758,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
758
758
struct DebuggerCommands {
759
759
commands : Vec < String > ,
760
760
check_lines : Vec < String > ,
761
- breakpoint_lines : Vec < uint > ,
761
+ breakpoint_lines : Vec < usize > ,
762
762
}
763
763
764
764
fn parse_debugger_commands ( file_path : & Path , debugger_prefix : & str )
@@ -1036,7 +1036,7 @@ fn is_compiler_error_or_warning(line: &str) -> bool {
1036
1036
scan_string ( line, "warning" , & mut i) ) ;
1037
1037
}
1038
1038
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 {
1040
1040
if * idx >= haystack. len ( ) {
1041
1041
return false ;
1042
1042
}
@@ -1048,7 +1048,7 @@ fn scan_until_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
1048
1048
return true ;
1049
1049
}
1050
1050
1051
- fn scan_char ( haystack : & str , needle : char , idx : & mut uint ) -> bool {
1051
+ fn scan_char ( haystack : & str , needle : char , idx : & mut usize ) -> bool {
1052
1052
if * idx >= haystack. len ( ) {
1053
1053
return false ;
1054
1054
}
@@ -1060,7 +1060,7 @@ fn scan_char(haystack: &str, needle: char, idx: &mut uint) -> bool {
1060
1060
return true ;
1061
1061
}
1062
1062
1063
- fn scan_integer ( haystack : & str , idx : & mut uint ) -> bool {
1063
+ fn scan_integer ( haystack : & str , idx : & mut usize ) -> bool {
1064
1064
let mut i = * idx;
1065
1065
while i < haystack. len ( ) {
1066
1066
let ch = haystack. char_at ( i) ;
@@ -1076,7 +1076,7 @@ fn scan_integer(haystack: &str, idx: &mut uint) -> bool {
1076
1076
return true ;
1077
1077
}
1078
1078
1079
- fn scan_string ( haystack : & str , needle : & str , idx : & mut uint ) -> bool {
1079
+ fn scan_string ( haystack : & str , needle : & str , idx : & mut usize ) -> bool {
1080
1080
let mut haystack_i = * idx;
1081
1081
let mut needle_i = 0 ;
1082
1082
while needle_i < needle. len ( ) {
@@ -1725,7 +1725,7 @@ fn disassemble_extract(config: &Config, _props: &TestProps,
1725
1725
}
1726
1726
1727
1727
1728
- fn count_extracted_lines ( p : & Path ) -> uint {
1728
+ fn count_extracted_lines ( p : & Path ) -> usize {
1729
1729
let mut x = Vec :: new ( ) ;
1730
1730
File :: open ( & p. with_extension ( "ll" ) ) . unwrap ( ) . read_to_end ( & mut x) . unwrap ( ) ;
1731
1731
let x = str:: from_utf8 ( & x) . unwrap ( ) ;
0 commit comments