@@ -390,7 +390,7 @@ fn std_tests(env: &Env, args: &TestArg) -> Result<(), String> {
390
390
& args. config_info . target_triple ,
391
391
] ) ;
392
392
if !args. no_default_features {
393
- command. push ( & "--cfg feature=\" master\" " ) ;
393
+ command. extend_from_slice ( & [ & "--cfg" , & " feature=\" master\" "] ) ;
394
394
}
395
395
run_command_with_env ( & command, None , Some ( env) ) ?;
396
396
@@ -454,7 +454,7 @@ fn std_tests(env: &Env, args: &TestArg) -> Result<(), String> {
454
454
& args. config_info . target_triple ,
455
455
] ) ;
456
456
if !args. no_default_features {
457
- command. push ( & "--cfg feature=\" master\" " ) ;
457
+ command. extend_from_slice ( & [ & "--cfg" , & " feature=\" master\" "] ) ;
458
458
}
459
459
run_command_with_env ( & command, None , Some ( env) ) ?;
460
460
run_command_in_vm (
@@ -1085,8 +1085,9 @@ fn test_successful_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
1085
1085
. filter ( |line| !line. is_empty ( ) )
1086
1086
{
1087
1087
let path = Path :: new ( "rust" ) . join ( file) ;
1088
- std:: fs:: remove_file ( & path)
1089
- . map_err ( |error| format ! ( "failed to remove `{}`: {:?}" , path. display( ) , error) ) ?;
1088
+ std:: fs:: remove_file ( & path) . map_err ( |error| {
1089
+ format ! ( "failed to remove `{}`: {:?}" , path. display( ) , error)
1090
+ } ) ?;
1090
1091
}
1091
1092
} else {
1092
1093
println ! (
0 commit comments