Resolve documentation links in rustc and store the results in metadata
This commit implements MCP https://github.com/rust-lang/compiler-team/issues/584 It also removes code that is no longer used, and that includes code cloning resolver, so issue #83761 is fixed.
This commit is contained in:
parent
a12d31d5a6
commit
b62b82aef4
28 changed files with 653 additions and 853 deletions
|
@ -2156,4 +2156,16 @@ rustc_queries! {
|
|||
desc { |tcx| "deducing parameter attributes for {}", tcx.def_path_str(def_id) }
|
||||
separate_provide_extern
|
||||
}
|
||||
|
||||
query doc_link_resolutions(def_id: DefId) -> &'tcx DocLinkResMap {
|
||||
eval_always
|
||||
desc { "resolutions for documentation links for a module" }
|
||||
separate_provide_extern
|
||||
}
|
||||
|
||||
query doc_link_traits_in_scope(def_id: DefId) -> &'tcx [DefId] {
|
||||
eval_always
|
||||
desc { "traits in scope for documentation links for a module" }
|
||||
separate_provide_extern
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue