Skip to content

Commit 379ef49

Browse files
committed
Auto merge of rust-lang#96135 - petrochenkov:doclink6, r=GuillaumeGomez
rustdoc: Optimize and refactor doc link resolution One more subset of rust-lang#94857 that should bring perf improvements rather than regressions + a couple more optimizations on top of it. It's better to read individual commits and their descriptions to understand the changes. The `may_have_doc_links` optimization is not *very* useful here, but it's much more important for rust-lang#94857. Closes rust-lang#96079
2 parents d658c53 + 5a4df4b commit 379ef49

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)