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.
rustc --print sysroot
1 parent 5b703bd commit 5a71eb8Copy full SHA for 5a71eb8
crates/ra_project_model/src/sysroot.rs
@@ -99,7 +99,8 @@ fn try_find_src_path(cargo_toml: &Path) -> Result<PathBuf> {
99
let rustc_output = Command::new("rustc")
100
.current_dir(cargo_toml.parent().unwrap())
101
.args(&["--print", "sysroot"])
102
- .output()?;
+ .output()
103
+ .map_err(|e| format!("rustc --print sysroot failed: {}", e))?;
104
if !rustc_output.status.success() {
105
Err("failed to locate sysroot")?;
106
}
0 commit comments