@@ -117,7 +117,7 @@ fn canonicalize(path: impl AsRef<Path>) -> PathBuf {
117
117
}
118
118
119
119
fn base_config ( test_dir : & str ) -> ( compiletest:: Config , Args ) {
120
- let args = Args :: test ( ) ;
120
+ let args = Args :: test ( ) . unwrap ( ) ;
121
121
let mut config = compiletest:: Config {
122
122
mode : TestMode :: Yolo { rustfix : true } ,
123
123
stderr_filters : vec ! [ ] ,
@@ -202,7 +202,6 @@ fn run_ui() {
202
202
203
203
compiletest:: run_tests_generic (
204
204
vec ! [ config] ,
205
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
206
205
args,
207
206
move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
208
207
compiletest:: default_per_file_config,
@@ -229,7 +228,6 @@ fn run_internal_tests() {
229
228
230
229
compiletest:: run_tests_generic (
231
230
vec ! [ config] ,
232
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
233
231
args,
234
232
move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
235
233
compiletest:: default_per_file_config,
@@ -262,7 +260,6 @@ fn run_ui_toml() {
262
260
263
261
ui_test:: run_tests_generic (
264
262
vec ! [ config] ,
265
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
266
263
args,
267
264
|path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
268
265
|config, path, _file_contents| {
@@ -320,7 +317,6 @@ fn run_ui_cargo() {
320
317
321
318
ui_test:: run_tests_generic (
322
319
vec ! [ config] ,
323
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
324
320
args,
325
321
|path, _args, _config| test_filter ( path) && path. ends_with ( "Cargo.toml" ) ,
326
322
|config, path, _file_contents| {
0 commit comments