1
Fork 0

rustdoc: Introduce a resolver cache for sharing data between early doc link resolution and later passes

This commit is contained in:
Vadim Petrochenkov 2021-08-29 21:41:46 +03:00
parent e012a191d7
commit 5acd1f91a0
10 changed files with 297 additions and 266 deletions

View file

@ -1416,13 +1416,6 @@ rustc_queries! {
separate_provide_extern
}
/// Given a crate, look up all trait impls in that crate.
/// Return `(impl_id, self_ty)`.
query all_trait_implementations(_: CrateNum) -> &'tcx [(DefId, Option<SimplifiedType>)] {
desc { "looking up all (?) trait implementations" }
separate_provide_extern
}
query is_dllimport_foreign_item(def_id: DefId) -> bool {
desc { |tcx| "is_dllimport_foreign_item({})", tcx.def_path_str(def_id) }
}