rustdoc: Introduce a resolver cache for sharing data between early doc link resolution and later passes
This commit is contained in:
parent
e012a191d7
commit
5acd1f91a0
10 changed files with 297 additions and 266 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue