]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/compile-test.rs
Rollup merge of #84461 - jyn514:remove-strip-item, r=GuillaumeGomez
[rust.git] / src / tools / clippy / tests / compile-test.rs
index f4d354f0bf94240a97ab9753c61d82a0614be0b2..e1110721f6ece396b3eef67475f6598b84c13a58 100644 (file)
@@ -83,14 +83,7 @@ fn default_config() -> compiletest::Config {
         third_party_crates(),
     ));
 
-    config.build_base = if cargo::is_rustc_test_suite() {
-        // This make the stderr files go to clippy OUT_DIR on rustc repo build dir
-        let mut path = PathBuf::from(env!("OUT_DIR"));
-        path.push("test_build_base");
-        path
-    } else {
-        host_lib().join("test_build_base")
-    };
+    config.build_base = host_lib().join("test_build_base");
     config.rustc_path = clippy_driver_path();
     config
 }