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.
1 parent c1a8c03 commit 7d0772eCopy full SHA for 7d0772e
crates/project_model/src/sysroot.rs
@@ -90,9 +90,15 @@ impl Sysroot {
90
}
91
92
if sysroot.by_name("core").is_none() {
93
+ let var_note = if env::var_os("RUST_SRC_PATH").is_some() {
94
+ " (`RUST_SRC_PATH` might be set incorrectly)"
95
+ } else {
96
+ ""
97
+ };
98
anyhow::bail!(
- "could not find libcore in sysroot path `{}`",
- sysroot_src_dir.as_ref().display()
99
+ "could not find libcore in sysroot path `{}`{}",
100
+ sysroot_src_dir.as_ref().display(),
101
+ var_note,
102
);
103
104
0 commit comments