We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CARGO
PATH
1 parent 36b6f9b commit 0150ec7Copy full SHA for 0150ec7
src/bootstrap/src/core/builder.rs
@@ -1196,11 +1196,10 @@ impl<'a> Builder<'a> {
1196
pub fn cargo_clippy_cmd(&self, run_compiler: Compiler) -> Command {
1197
let initial_sysroot_bin = self.initial_rustc.parent().unwrap();
1198
// Set PATH to include the sysroot bin dir so clippy can find cargo.
1199
- // FIXME: once rust-clippy#11944 lands on beta, set `CARGO` directly instead.
1200
let path = t!(env::join_paths(
1201
// The sysroot comes first in PATH to avoid using rustup's cargo.
1202
std::iter::once(PathBuf::from(initial_sysroot_bin))
1203
- .chain(env::split_paths(&t!(env::var("PATH"))))
+ .chain(env::split_paths(&t!(env::var("CARGO"))))
1204
));
1205
1206
if run_compiler.stage == 0 {
0 commit comments