about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-09 22:37:34 +0000
committerbors <bors@rust-lang.org>2021-10-09 22:37:34 +0000
commitf086f4707757c679813a3e6cd44e7c502a668394 (patch)
treec2d13609a04bd9f75380735b9c94ccbb70cec97e
parenta8f2463c68a6532d74a13ec402ec5b513e4e2726 (diff)
parent848d627edc32bfed58de2052e0be7a2c0e80f628 (diff)
downloadrust-f086f4707757c679813a3e6cd44e7c502a668394.tar.gz
rust-f086f4707757c679813a3e6cd44e7c502a668394.zip
Auto merge of #89631 - camsteffen:clippy-boot-env, r=Mark-Simulacrum
Remove unused clippy bootstrap env vars

Continues rust-lang/rust-clippy#7646
-rw-r--r--src/bootstrap/test.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 272b7153111..68fbbb22c08 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -653,7 +653,7 @@ impl Step for Clippy {
         let host = self.host;
         let compiler = builder.compiler(stage, host);
 
-        let clippy = builder
+        builder
             .ensure(tool::Clippy { compiler, target: self.host, extra_features: Vec::new() })
             .expect("in-tree tool");
         let mut cargo = tool::prepare_tool_cargo(
@@ -672,14 +672,7 @@ impl Step for Clippy {
         cargo.env("RUSTC_TEST_SUITE", builder.rustc(compiler));
         cargo.env("RUSTC_LIB_PATH", builder.rustc_libdir(compiler));
         let host_libs = builder.stage_out(compiler, Mode::ToolRustc).join(builder.cargo_dir());
-        let target_libs = builder
-            .stage_out(compiler, Mode::ToolRustc)
-            .join(&self.host.triple)
-            .join(builder.cargo_dir());
         cargo.env("HOST_LIBS", host_libs);
-        cargo.env("TARGET_LIBS", target_libs);
-        // clippy tests need to find the driver
-        cargo.env("CLIPPY_DRIVER_PATH", clippy);
 
         cargo.arg("--").args(builder.config.cmd.test_args());