]> git.lizzy.rs Git - rust.git/commit
Store links in Cache instead of on items directly
authorJoshua Nelson <jyn514@gmail.com>
Sun, 4 Apr 2021 02:15:24 +0000 (22:15 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Tue, 6 Apr 2021 18:26:57 +0000 (14:26 -0400)
commit9e11902eff3b5bde80c4ac8e8d970f5f89ad818f
treecf23637951cb55fd9960c186d93facdb2cec0833
parent16143d10679537d3fde4247e15334e78ad9d55b9
Store links in Cache instead of on items directly

Items are first built after rustdoc creates the TyCtxt. To allow
resolving the links before the TyCtxt is built, the links can't be
stored on `clean::Item` directly.
src/librustdoc/clean/types.rs
src/librustdoc/formats/cache.rs
src/librustdoc/json/conversions.rs
src/librustdoc/passes/collect_intra_doc_links.rs