@@ -447,7 +447,7 @@ impl Step for Rustfmt {
447447 & [ ] ,
448448 ) ;
449449
450- let dir = testdir ( builder, compiler. host ) ;
450+ let dir = builder. test_out ( compiler. host ) ;
451451 t ! ( fs:: create_dir_all( & dir) ) ;
452452 cargo. env ( "RUSTFMT_TEST_DIR" , dir) ;
453453
@@ -1038,10 +1038,6 @@ impl Step for RustdocGUI {
10381038 }
10391039}
10401040
1041- fn testdir ( builder : & Builder < ' _ > , host : TargetSelection ) -> PathBuf {
1042- builder. out . join ( host) . join ( "test" )
1043- }
1044-
10451041/// Declares a test step that invokes compiletest on a particular test suite.
10461042macro_rules! test {
10471043 (
@@ -1665,7 +1661,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
16651661 }
16661662
16671663 cmd. arg ( "--src-base" ) . arg ( builder. src . join ( "tests" ) . join ( suite) ) ;
1668- cmd. arg ( "--build-base" ) . arg ( testdir ( builder, compiler. host ) . join ( suite) ) ;
1664+ cmd. arg ( "--build-base" ) . arg ( builder. test_out ( compiler. host ) . join ( suite) ) ;
16691665
16701666 // When top stage is 0, that means that we're testing an externally provided compiler.
16711667 // In that case we need to use its specific sysroot for tests to pass.
@@ -2348,7 +2344,7 @@ impl Step for ErrorIndex {
23482344 fn run ( self , builder : & Builder < ' _ > ) {
23492345 let compiler = self . compiler ;
23502346
2351- let dir = testdir ( builder, compiler. host ) ;
2347+ let dir = builder. test_out ( compiler. host ) ;
23522348 t ! ( fs:: create_dir_all( & dir) ) ;
23532349 let output = dir. join ( "error-index.md" ) ;
23542350
@@ -3163,7 +3159,7 @@ impl Step for RustInstaller {
31633159 }
31643160
31653161 let mut cmd = command ( builder. src . join ( "src/tools/rust-installer/test.sh" ) ) ;
3166- let tmpdir = testdir ( builder, compiler. host ) . join ( "rust-installer" ) ;
3162+ let tmpdir = builder. test_out ( compiler. host ) . join ( "rust-installer" ) ;
31673163 let _ = std:: fs:: remove_dir_all ( & tmpdir) ;
31683164 let _ = std:: fs:: create_dir_all ( & tmpdir) ;
31693165 cmd. current_dir ( & tmpdir) ;
0 commit comments