Skip to content

Commit

Permalink
Merge #10460
Browse files Browse the repository at this point in the history
10460: fix: Only add `proc_macro` to prelude in proc-macro crates r=jonas-schievink a=jonas-schievink

Fixes #10455

bors r+

Co-authored-by: Jonas Schievink <[email protected]>
  • Loading branch information
bors[bot] and jonas-schievink authored Oct 4, 2021
2 parents 5bdae82 + 0cd24c1 commit bf81723
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 bf81723

Please sign in to comment.