Skip to content

Commit

Permalink
Auto merge of #96135 - petrochenkov:doclink6, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
rustdoc: Optimize and refactor doc link resolution

One more subset of rust-lang/rust#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/rust#94857.

Closes rust-lang/rust#96079
  • Loading branch information
bors committed Apr 20, 2022
2 parents 962e013 + cdaf9fb commit ef85c26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proc_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

0 comments on commit ef85c26

Please sign in to comment.