@@ -117,7 +117,7 @@ fn canonicalize(path: impl AsRef<Path>) -> PathBuf {
117117}
118118
119119fn base_config ( test_dir : & str ) -> ( compiletest:: Config , Args ) {
120- let args = Args :: test ( ) ;
120+ let args = Args :: test ( ) . unwrap ( ) ;
121121 let mut config = compiletest:: Config {
122122 mode : TestMode :: Yolo { rustfix : true } ,
123123 stderr_filters : vec ! [ ] ,
@@ -201,7 +201,6 @@ fn run_ui() {
201201
202202 compiletest:: run_tests_generic (
203203 vec ! [ config] ,
204- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
205204 args,
206205 move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
207206 compiletest:: default_per_file_config,
@@ -228,7 +227,6 @@ fn run_internal_tests() {
228227
229228 compiletest:: run_tests_generic (
230229 vec ! [ config] ,
231- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
232230 args,
233231 move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
234232 compiletest:: default_per_file_config,
@@ -261,7 +259,6 @@ fn run_ui_toml() {
261259
262260 ui_test:: run_tests_generic (
263261 vec ! [ config] ,
264- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
265262 args,
266263 |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
267264 |config, path, _file_contents| {
@@ -319,7 +316,6 @@ fn run_ui_cargo() {
319316
320317 ui_test:: run_tests_generic (
321318 vec ! [ config] ,
322- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
323319 args,
324320 |path, _args, _config| test_filter ( path) && path. ends_with ( "Cargo.toml" ) ,
325321 |config, path, _file_contents| {
0 commit comments