@@ -50,7 +50,7 @@ fn start(argc: int, argv: **u8) -> int {
5050pub  fn  main ( )  { 
5151    let  args = os:: args ( ) ; 
5252    let  config = parse_config ( args. move_iter ( ) 
53-                                   . map ( |x| x. to_strbuf ( ) ) 
53+                                   . map ( |x| x. to_string ( ) ) 
5454                                  . collect ( ) ) ; 
5555    log_config ( & config) ; 
5656    run_tests ( & config) ; 
@@ -134,15 +134,15 @@ pub fn parse_config(args: Vec<String> ) -> Config {
134134    Config  { 
135135        compile_lib_path :  matches. opt_str ( "compile-lib-path" ) 
136136                                 . unwrap ( ) 
137-                                  . to_strbuf ( ) , 
138-         run_lib_path :  matches. opt_str ( "run-lib-path" ) . unwrap ( ) . to_strbuf ( ) , 
137+                                  . to_string ( ) , 
138+         run_lib_path :  matches. opt_str ( "run-lib-path" ) . unwrap ( ) . to_string ( ) , 
139139        rustc_path :  opt_path ( matches,  "rustc-path" ) , 
140140        clang_path :  matches. opt_str ( "clang-path" ) . map ( |s| Path :: new ( s) ) , 
141141        llvm_bin_path :  matches. opt_str ( "llvm-bin-path" ) . map ( |s| Path :: new ( s) ) , 
142142        src_base :  opt_path ( matches,  "src-base" ) , 
143143        build_base :  opt_path ( matches,  "build-base" ) , 
144144        aux_base :  opt_path ( matches,  "aux-base" ) , 
145-         stage_id :  matches. opt_str ( "stage-id" ) . unwrap ( ) . to_strbuf ( ) , 
145+         stage_id :  matches. opt_str ( "stage-id" ) . unwrap ( ) . to_string ( ) , 
146146        mode :  FromStr :: from_str ( matches. opt_str ( "mode" ) 
147147                                       . unwrap ( ) 
148148                                       . as_slice ( ) ) . expect ( "invalid mode" ) , 
@@ -156,32 +156,32 @@ pub fn parse_config(args: Vec<String> ) -> Config {
156156        ratchet_noise_percent : 
157157            matches. opt_str ( "ratchet-noise-percent" ) 
158158                   . and_then ( |s| from_str :: < f64 > ( s. as_slice ( ) ) ) , 
159-         runtool :  matches. opt_str ( "runtool" ) . map ( |x| x. to_strbuf ( ) ) , 
159+         runtool :  matches. opt_str ( "runtool" ) . map ( |x| x. to_string ( ) ) , 
160160        host_rustcflags :  matches. opt_str ( "host-rustcflags" ) 
161-                                 . map ( |x| x. to_strbuf ( ) ) , 
161+                                 . map ( |x| x. to_string ( ) ) , 
162162        target_rustcflags :  matches. opt_str ( "target-rustcflags" ) 
163-                                   . map ( |x| x. to_strbuf ( ) ) , 
163+                                   . map ( |x| x. to_string ( ) ) , 
164164        jit :  matches. opt_present ( "jit" ) , 
165-         target :  opt_str2 ( matches. opt_str ( "target" ) . map ( |x| x. to_strbuf ( ) ) ) , 
166-         host :  opt_str2 ( matches. opt_str ( "host" ) . map ( |x| x. to_strbuf ( ) ) ) , 
165+         target :  opt_str2 ( matches. opt_str ( "target" ) . map ( |x| x. to_string ( ) ) ) , 
166+         host :  opt_str2 ( matches. opt_str ( "host" ) . map ( |x| x. to_string ( ) ) ) , 
167167        android_cross_path :  opt_path ( matches,  "android-cross-path" ) , 
168168        adb_path :  opt_str2 ( matches. opt_str ( "adb-path" ) 
169-                                   . map ( |x| x. to_strbuf ( ) ) ) , 
169+                                   . map ( |x| x. to_string ( ) ) ) , 
170170        adb_test_dir :  opt_str2 ( matches. opt_str ( "adb-test-dir" ) 
171-                                       . map ( |x| x. to_strbuf ( ) ) ) , 
171+                                       . map ( |x| x. to_string ( ) ) ) , 
172172        adb_device_status : 
173173            "arm-linux-androideabi"  ==
174174                opt_str2 ( matches. opt_str ( "target" ) 
175-                                 . map ( |x| x. to_strbuf ( ) ) ) . as_slice ( )  &&
175+                                 . map ( |x| x. to_string ( ) ) ) . as_slice ( )  &&
176176            "(none)"  !=
177177                opt_str2 ( matches. opt_str ( "adb-test-dir" ) 
178-                                 . map ( |x| x. to_strbuf ( ) ) ) . as_slice ( )  &&
178+                                 . map ( |x| x. to_string ( ) ) ) . as_slice ( )  &&
179179            !opt_str2 ( matches. opt_str ( "adb-test-dir" ) 
180-                              . map ( |x| x. to_strbuf ( ) ) ) . is_empty ( ) , 
180+                              . map ( |x| x. to_string ( ) ) ) . is_empty ( ) , 
181181        lldb_python_dir :  matches. opt_str ( "lldb-python-dir" ) 
182-                                 . map ( |x| x. to_strbuf ( ) ) , 
182+                                 . map ( |x| x. to_string ( ) ) , 
183183        test_shard :  test:: opt_shard ( matches. opt_str ( "test-shard" ) 
184-                                            . map ( |x| x. to_strbuf ( ) ) ) , 
184+                                            . map ( |x| x. to_string ( ) ) ) , 
185185        verbose :  matches. opt_present ( "verbose" ) 
186186    } 
187187} 
@@ -201,7 +201,7 @@ pub fn log_config(config: &Config) {
201201                           opt_str( & config. filter
202202                                          . as_ref( ) 
203203                                          . map( |re| { 
204-                                               re. to_str( ) . into_strbuf ( ) 
204+                                               re. to_str( ) . into_string ( ) 
205205                                          } ) ) ) ) ; 
206206    logv ( c,  format_strbuf ! ( "runtool: {}" ,  opt_str( & config. runtool) ) ) ; 
207207    logv ( c,  format_strbuf ! ( "host-rustcflags: {}" , 
@@ -218,7 +218,7 @@ pub fn log_config(config: &Config) {
218218    logv ( c,  format_strbuf ! ( "adb_device_status: {}" , 
219219                           config. adb_device_status) ) ; 
220220    match  config. test_shard  { 
221-         None  => logv ( c,  "test_shard: (all)" . to_strbuf ( ) ) , 
221+         None  => logv ( c,  "test_shard: (all)" . to_string ( ) ) , 
222222        Some ( ( a, b) )  => logv ( c,  format_strbuf ! ( "test_shard: {}.{}" ,  a,  b) ) 
223223    } 
224224    logv ( c,  format_strbuf ! ( "verbose: {}" ,  config. verbose) ) ; 
@@ -234,7 +234,7 @@ pub fn opt_str<'a>(maybestr: &'a Option<String>) -> &'a str {
234234
235235pub  fn  opt_str2 ( maybestr :  Option < String > )  -> String  { 
236236    match  maybestr { 
237-         None  => "(none)" . to_strbuf ( ) , 
237+         None  => "(none)" . to_string ( ) , 
238238        Some ( s)  => s, 
239239    } 
240240} 
@@ -314,10 +314,10 @@ pub fn is_test(config: &Config, testfile: &Path) -> bool {
314314    // Pretty-printer does not work with .rc files yet 
315315    let  valid_extensions =
316316        match  config. mode  { 
317-           Pretty  => vec ! ( ".rs" . to_owned ( ) ) , 
318-           _ => vec ! ( ".rc" . to_owned ( ) ,  ".rs" . to_owned ( ) ) 
317+           Pretty  => vec ! ( ".rs" . to_string ( ) ) , 
318+           _ => vec ! ( ".rc" . to_string ( ) ,  ".rs" . to_string ( ) ) 
319319        } ; 
320-     let  invalid_prefixes = vec ! ( "." . to_owned ( ) ,  "#" . to_owned ( ) ,  "~" . to_owned ( ) ) ; 
320+     let  invalid_prefixes = vec ! ( "." . to_string ( ) ,  "#" . to_string ( ) ,  "~" . to_string ( ) ) ; 
321321    let  name = testfile. filename_str ( ) . unwrap ( ) ; 
322322
323323    let  mut  valid = false ; 
@@ -367,7 +367,7 @@ pub fn make_test_name(config: &Config, testfile: &Path) -> test::TestName {
367367pub  fn  make_test_closure ( config :  & Config ,  testfile :  & Path )  -> test:: TestFn  { 
368368    let  config = ( * config) . clone ( ) ; 
369369    // FIXME (#9639): This needs to handle non-utf8 paths 
370-     let  testfile = testfile. as_str ( ) . unwrap ( ) . to_strbuf ( ) ; 
370+     let  testfile = testfile. as_str ( ) . unwrap ( ) . to_string ( ) ; 
371371    test:: DynTestFn ( proc ( )  { 
372372        runtest:: run ( config,  testfile) 
373373    } ) 
@@ -376,7 +376,7 @@ pub fn make_test_closure(config: &Config, testfile: &Path) -> test::TestFn {
376376pub  fn  make_metrics_test_closure ( config :  & Config ,  testfile :  & Path )  -> test:: TestFn  { 
377377    let  config = ( * config) . clone ( ) ; 
378378    // FIXME (#9639): This needs to handle non-utf8 paths 
379-     let  testfile = testfile. as_str ( ) . unwrap ( ) . to_strbuf ( ) ; 
379+     let  testfile = testfile. as_str ( ) . unwrap ( ) . to_string ( ) ; 
380380    test:: DynMetricFn ( proc ( mm)  { 
381381        runtest:: run_metrics ( config,  testfile,  mm) 
382382    } ) 
0 commit comments