Skip to content

Commit 5a4df4b

Browse files
committed
proc_macro: Add a workaround for rustdoc
1 parent 23de295 commit 5a4df4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proc_macro/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
std = { path = "../std" }
8+
# Workaround: when documenting this crate rustdoc will try to load crate named
9+
# `core` when resolving doc links. Without this line a different `core` will be
10+
# loaded from sysroot causing duplicate lang items and other similar errors.
11+
core = { path = "../core" }

0 commit comments

Comments
 (0)