@@ -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 ! [ ] ,
@@ -201,7 +201,6 @@ fn run_ui() {
201
201
202
202
compiletest:: run_tests_generic (
203
203
vec ! [ config] ,
204
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
205
204
args,
206
205
move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
207
206
compiletest:: default_per_file_config,
@@ -228,7 +227,6 @@ fn run_internal_tests() {
228
227
229
228
compiletest:: run_tests_generic (
230
229
vec ! [ config] ,
231
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
232
230
args,
233
231
move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
234
232
compiletest:: default_per_file_config,
@@ -261,7 +259,6 @@ fn run_ui_toml() {
261
259
262
260
ui_test:: run_tests_generic (
263
261
vec ! [ config] ,
264
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
265
262
args,
266
263
|path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
267
264
|config, path, _file_contents| {
@@ -319,7 +316,6 @@ fn run_ui_cargo() {
319
316
320
317
ui_test:: run_tests_generic (
321
318
vec ! [ config] ,
322
- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
323
319
args,
324
320
|path, _args, _config| test_filter ( path) && path. ends_with ( "Cargo.toml" ) ,
325
321
|config, path, _file_contents| {
0 commit comments