@@ -378,7 +378,7 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
378
378
was_expected = true ;
379
379
}
380
380
381
- if !was_expected && is_compiler_error_or_warning ( str :: to_owned ( line) ) {
381
+ if !was_expected && is_compiler_error_or_warning ( line) {
382
382
fatal_ProcRes ( fmt ! ( "unexpected compiler error or warning: '%s'" ,
383
383
line) ,
384
384
ProcRes ) ;
@@ -596,8 +596,7 @@ fn make_lib_name(config: &config, auxfile: &Path, testfile: &Path) -> Path {
596
596
}
597
597
598
598
fn make_exe_name ( config : & config , testfile : & Path ) -> Path {
599
- Path ( output_base_name ( config, testfile) . to_str ( ) +
600
- str:: to_owned ( os:: EXE_SUFFIX ) )
599
+ Path ( output_base_name ( config, testfile) . to_str ( ) + os:: EXE_SUFFIX )
601
600
}
602
601
603
602
fn make_run_args ( config : & config , _props : & TestProps , testfile : & Path ) ->
@@ -606,7 +605,7 @@ fn make_run_args(config: &config, _props: &TestProps, testfile: &Path) ->
606
605
// then split apart its command
607
606
let toolargs = split_maybe_args ( & config. runtool ) ;
608
607
609
- let mut args = toolargs + ~ [ make_exe_name ( config, testfile) . to_str ( ) ] ;
608
+ let mut args = toolargs + [ make_exe_name ( config, testfile) . to_str ( ) ] ;
610
609
let prog = args. shift ( ) ;
611
610
return ProcArgs { prog : prog, args : args} ;
612
611
}
@@ -655,7 +654,7 @@ fn make_cmdline(_libpath: &str, prog: &str, args: &[~str]) -> ~str {
655
654
#[ cfg( target_os = "win32" ) ]
656
655
fn make_cmdline ( libpath : & str , prog : & str , args : & [ ~str ] ) -> ~str {
657
656
fmt ! ( "%s %s %s" , lib_path_cmd_prefix( libpath) , prog,
658
- str :: connect( args, ~ " "))
657
+ str :: connect( args, " " ) )
659
658
}
660
659
661
660
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line
@@ -776,8 +775,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
776
775
for args. args. each |tv| {
777
776
newcmd_out. push_str ( " " ) ;
778
777
newcmd_err. push_str ( " " ) ;
779
- newcmd_out.push_str(tv.to_owned() );
780
- newcmd_err.push_str(tv.to_owned() );
778
+ newcmd_out. push_str ( * tv ) ;
779
+ newcmd_err. push_str ( * tv ) ;
781
780
}
782
781
783
782
newcmd_out. push_str ( " 2>/dev/null" ) ;
0 commit comments