Skip to content

Commit f5ca02c

Browse files
committed
proc_macro: Add a workaround for rustdoc
1 parent 4ca19e0 commit f5ca02c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -2894,6 +2894,7 @@ dependencies = [
28942894
name = "proc_macro"
28952895
version = "0.0.0"
28962896
dependencies = [
2897+
"core",
28972898
"std",
28982899
]
28992900

library/proc_macro/Cargo.toml

+4
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)