Allow reusing the code in collect_trait_impls

This commit is contained in:
Joshua Nelson
2020-08-17 18:45:18 -04:00
parent 06d6d3dff5
commit 9cf2fa84e8
4 changed files with 81 additions and 88 deletions

View File

@@ -369,7 +369,7 @@ pub fn build_deref_target_impls(cx: &DocContext<'_>, items: &[Item], ret: &mut V
None => continue,
},
};
for did in primitive.impls(tcx) {
for &did in primitive.impls(tcx) {
if !did.is_local() {
inline::build_impl(cx, did, None, ret);
}