Skip to content

Commit

Permalink
Only add proc_macro to prelude in proc-macro crates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Oct 4, 2021
1 parent 5bdae82 commit 0cd24c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/project_model/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}

Expand Down

0 comments on commit 0cd24c1

Please sign in to comment.