From 6a8bd56d71cb83cca9e3cff78db4388e500477be Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Thu, 21 Nov 2024 16:00:51 +0100 Subject: [PATCH] Pass correct argument to rustc -Z ls Behavior was changed back in rustc 1.74. Fixes #2290 --- src/compiler/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/rust.rs b/src/compiler/rust.rs index 05206f01a4..4e5742505a 100644 --- a/src/compiler/rust.rs +++ b/src/compiler/rust.rs @@ -2372,7 +2372,7 @@ impl RlibDepReader { trace!("Discovering dependencies of {}", rlib.display()); let mut cmd = process::Command::new(&self.executable); - cmd.args(["-Z", "ls"]) + cmd.args(["-Z", "ls=root"]) .arg(rlib) .env_clear() .envs(env_vars.to_vec())