proc_macro: Add a workaround for rustdoc
This commit is contained in:
parent
4ca19e09d3
commit
f5ca02c334
2 changed files with 5 additions and 0 deletions
|
@ -2894,6 +2894,7 @@ dependencies = [
|
|||
name = "proc_macro"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"core",
|
||||
"std",
|
||||
]
|
||||
|
||||
|
|
|
@ -5,3 +5,7 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
std = { path = "../std" }
|
||||
# Workaround: when documenting this crate rustdoc will try to load crate named
|
||||
# `core` when resolving doc links. Without this line a different `core` will be
|
||||
# loaded from sysroot causing duplicate lang items and other similar errors.
|
||||
core = { path = "../core" }
|
||||
|
|
Loading…
Add table
Reference in a new issue