pub(crate) fn build_external_trait(cx: &mut DocContext<'_>, did: DefId) -> Trait