mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Only add proc_macro
to prelude in proc-macro crates
This commit is contained in:
parent
5bdae82947
commit
0cd24c14c5
1 changed files with 2 additions and 1 deletions
|
@ -563,11 +563,12 @@ fn cargo_to_crate_graph(
|
|||
pkg_to_lib_crate.insert(pkg, crate_id);
|
||||
}
|
||||
if let Some(proc_macro) = libproc_macro {
|
||||
add_dep(
|
||||
add_dep_with_prelude(
|
||||
&mut crate_graph,
|
||||
crate_id,
|
||||
CrateName::new("proc_macro").unwrap(),
|
||||
proc_macro,
|
||||
cargo[tgt].is_proc_macro,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue