diff --git a/collector/src/bin/rustc-fake.rs b/collector/src/bin/rustc-fake.rs index aa15a78ed..273f12847 100644 --- a/collector/src/bin/rustc-fake.rs +++ b/collector/src/bin/rustc-fake.rs @@ -80,7 +80,7 @@ fn main() { .ok() .and_then(|v| v.parse::().ok()) { - args.push(OsString::from(format!("-Zthreads={count}"))); + args.push(OsString::from(format!("--jobs-frontend={count}"))); } args.push(OsString::from("-Adeprecated")); diff --git a/collector/src/compile/execute/mod.rs b/collector/src/compile/execute/mod.rs index 078fc9618..a424631b6 100644 --- a/collector/src/compile/execute/mod.rs +++ b/collector/src/compile/execute/mod.rs @@ -423,8 +423,11 @@ impl<'a> CargoProcess<'a> { cmd.arg("-p").arg(self.get_pkgid(self.cwd)?); assert!( - !self.rustc_args.iter().any(|arg| arg.contains("-Zthreads")), - "rustc_args should not contain -Zthreads, set frontend_threads in perf-config.json instead" + !self + .rustc_args + .iter() + .any(|arg| arg.contains("--jobs-frontend")), + "rustc_args should not contain --jobs-frontend, set frontend_threads in perf-config.json instead" ); cmd.env( "RUSTC_THREAD_COUNT",