cx.tcx.lookup_deprecation(def_id).clean(cx)
}
-pub fn external_generic_args(
+fn external_generic_args(
cx: &DocContext<'_>,
trait_did: Option<DefId>,
has_self: bool,
// trait_did should be set to a trait's DefId if called on a TraitRef, in order to sugar
// from Fn<(A, B,), C> to Fn(A, B) -> C
-pub fn external_path(
+pub(super) fn external_path(
cx: &DocContext<'_>,
name: Symbol,
trait_did: Option<DefId>,
let primitive = match *target {
ResolvedPath { did, .. } if did.is_local() => continue,
ResolvedPath { did, .. } => {
- ret.extend(inline::build_impls(cx, did, None));
+ ret.extend(inline::build_impls(cx, None, did, None));
continue;
}
_ => match target.primitive_type() {
};
for &did in primitive.impls(tcx) {
if !did.is_local() {
- inline::build_impl(cx, did, None, ret);
+ inline::build_impl(cx, None, did, None, ret);
}
}
}