diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-02-01 20:30:32 +0800 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-04-19 22:49:27 +0300 |
| commit | f5ca02c334b2eaa6817c15d6e2c88ab98d2a2054 (patch) | |
| tree | 4e32c7aad35cee9c351915be6161a96891330bc1 | |
| parent | 4ca19e09d302a4cbde14f9cb1bc109179dc824cd (diff) | |
| download | rust-f5ca02c334b2eaa6817c15d6e2c88ab98d2a2054.tar.gz rust-f5ca02c334b2eaa6817c15d6e2c88ab98d2a2054.zip | |
proc_macro: Add a workaround for rustdoc
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | library/proc_macro/Cargo.toml | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index e3a9eb34936..fbc9ca7051f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2894,6 +2894,7 @@ dependencies = [ name = "proc_macro" version = "0.0.0" dependencies = [ + "core", "std", ] diff --git a/library/proc_macro/Cargo.toml b/library/proc_macro/Cargo.toml index db5e2e4e245..e54a50aa15c 100644 --- a/library/proc_macro/Cargo.toml +++ b/library/proc_macro/Cargo.toml @@ -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" } |
