@@ -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 ! [ ] ,
@@ -202,7 +202,6 @@ fn run_ui() {
202202
203203 compiletest:: run_tests_generic (
204204 vec ! [ config] ,
205- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
206205 args,
207206 move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
208207 compiletest:: default_per_file_config,
@@ -229,7 +228,6 @@ fn run_internal_tests() {
229228
230229 compiletest:: run_tests_generic (
231230 vec ! [ config] ,
232- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
233231 args,
234232 move |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
235233 compiletest:: default_per_file_config,
@@ -262,7 +260,6 @@ fn run_ui_toml() {
262260
263261 ui_test:: run_tests_generic (
264262 vec ! [ config] ,
265- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
266263 args,
267264 |path, args, config| compiletest:: default_file_filter ( path, args, config) && test_filter ( path) ,
268265 |config, path, _file_contents| {
@@ -320,7 +317,6 @@ fn run_ui_cargo() {
320317
321318 ui_test:: run_tests_generic (
322319 vec ! [ config] ,
323- std:: thread:: available_parallelism ( ) . unwrap ( ) ,
324320 args,
325321 |path, _args, _config| test_filter ( path) && path. ends_with ( "Cargo.toml" ) ,
326322 |config, path, _file_contents| {
0 commit comments