Skip to content

Commit 95ee919

Browse files
committed
Fix bug in proc-macro dependencies.
1 parent bfa709a commit 95ee919

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_metadata/creader.rs

+3
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ impl<'a> CrateLoader<'a> {
366366
match result {
367367
LoadResult::Previous(cnum) => {
368368
let data = self.cstore.get_crate_data(cnum);
369+
if data.root.macro_derive_registrar.is_some() {
370+
dep_kind = DepKind::MacrosOnly;
371+
}
369372
data.dep_kind.set(cmp::max(data.dep_kind.get(), dep_kind));
370373
(cnum, data)
371374
}

0 commit comments

Comments
 (0)