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

@ -179,6 +179,7 @@ crate fn build_deref_target_impls(cx: &mut DocContext<'_>, items: &[Item], ret:
};
if let Some(prim) = target.primitive_type() {
let _prof_timer = cx.tcx.sess.prof.generic_activity("build_primitive_inherent_impls");
for &did in prim.impls(tcx).iter().filter(|did| !did.is_local()) {
inline::build_impl(cx, None, did, None, ret);
}