Skip to content

Commit f7ea54a

Browse files
committed
Invoke clippy-driver instead of cargo-clippy
1 parent 8c8b53c commit f7ea54a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

collector/src/bin/collector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ struct CompileTimeOptions {
382382
#[arg(long)]
383383
rustdoc: Option<PathBuf>,
384384

385-
/// The path to the local clippy to measure
385+
/// The path to the local clippy to measure.
386+
/// It should be a path to the `clippy-driver` binary.
386387
#[arg(long)]
387388
clippy: Option<PathBuf>,
388389
}

collector/src/toolchain.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl SysrootDownload {
128128
let components = ToolchainComponents::from_binaries_and_libdir(
129129
sysroot_bin("rustc")?,
130130
Some(sysroot_bin("rustdoc")?),
131-
sysroot_bin("cargo-clippy").ok(),
131+
sysroot_bin("clippy-driver").ok(),
132132
sysroot_bin("cargo")?,
133133
&self.directory.join(&self.rust_sha).join("lib"),
134134
)?;
@@ -484,12 +484,12 @@ pub fn get_local_toolchain(
484484
)
485485
} else if profiles.contains(&Profile::Clippy) {
486486
// We need a `clippy`. Look for one next to `rustc`.
487-
if let Ok(clippy) = rustc.with_file_name("cargo-clippy").canonicalize() {
487+
if let Ok(clippy) = rustc.with_file_name("clippy-driver").canonicalize() {
488488
debug!("found clippy: {:?}", &clippy);
489489
Some(clippy)
490490
} else {
491491
anyhow::bail!(
492-
"'Clippy' build specified but '--cargo-clippy' not specified and no 'cargo-clippy' found \
492+
"'Clippy' build specified but '--clippy' not specified and no 'clippy-driver' found \
493493
next to 'rustc'"
494494
);
495495
}

0 commit comments

Comments
 (0)