proc_macro: Add a workaround for rustdoc

This commit is contained in:
Vadim Petrochenkov 2022-02-01 20:30:32 +08:00
parent 4ca19e09d3
commit f5ca02c334
2 changed files with 5 additions and 0 deletions

View file

@ -2894,6 +2894,7 @@ dependencies = [
name = "proc_macro"
version = "0.0.0"
dependencies = [
"core",
"std",
]

View file

@ -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" }