@@ -29,8 +29,8 @@ fn have_fullmir() -> bool {
29
29
std:: env:: var ( "MIRI_SYSROOT" ) . is_ok ( ) || rustc_test_suite ( ) . is_some ( )
30
30
}
31
31
32
- fn mk_config ( mode : & str ) -> compiletest:: Config {
33
- let mut config = compiletest:: Config :: default ( ) ;
32
+ fn mk_config ( mode : & str ) -> compiletest:: common :: ConfigWithTemp {
33
+ let mut config = compiletest:: Config :: default ( ) . tempdir ( ) ;
34
34
config. mode = mode. parse ( ) . expect ( "Invalid mode" ) ;
35
35
config. rustc_path = miri_path ( ) ;
36
36
if rustc_test_suite ( ) . is_some ( ) {
@@ -74,7 +74,7 @@ fn compile_fail(sysroot: &Path, path: &str, target: &str, host: &str, need_fullm
74
74
config. target = target. to_owned ( ) ;
75
75
config. host = host. to_owned ( ) ;
76
76
config. target_rustcflags = Some ( flags. join ( " " ) ) ;
77
- compiletest:: run_tests ( & config. tempdir ( ) ) ; // FIXME: `tempdir` can be done by `mk_config` once `ConfigWithTemp` is exposed as type from compiletest
77
+ compiletest:: run_tests ( & config) ;
78
78
}
79
79
80
80
fn miri_pass ( sysroot : & Path , path : & str , target : & str , host : & str , need_fullmir : bool , opt : bool ) {
@@ -107,7 +107,7 @@ fn miri_pass(sysroot: &Path, path: &str, target: &str, host: &str, need_fullmir:
107
107
config. target = target. to_owned ( ) ;
108
108
config. host = host. to_owned ( ) ;
109
109
config. target_rustcflags = Some ( flags. join ( " " ) ) ;
110
- compiletest:: run_tests ( & config. tempdir ( ) ) ; // FIXME: `tempdir` can be done by `mk_config` once `ConfigWithTemp` is exposed as type from compiletest
110
+ compiletest:: run_tests ( & config) ;
111
111
}
112
112
113
113
fn is_target_dir < P : Into < PathBuf > > ( path : P ) -> bool {
0 commit comments