mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 17:58:16 +00:00
sysroot: add proc_macro -> std dependency edge
This commit is contained in:
parent
cd3d633850
commit
be0f1d5ca6
1 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,12 @@ impl Sysroot {
|
|||
}
|
||||
}
|
||||
|
||||
if let Some(proc_macro) = sysroot.by_name("proc_macro") {
|
||||
if let Some(std) = sysroot.by_name("std") {
|
||||
sysroot.crates[proc_macro].deps.push(std);
|
||||
}
|
||||
}
|
||||
|
||||
if sysroot.by_name("core").is_none() {
|
||||
let var_note = if env::var_os("RUST_SRC_PATH").is_some() {
|
||||
" (`RUST_SRC_PATH` might be incorrect, try unsetting it)"
|
||||
|
|
Loading…
Reference in a new issue