fn build_external_function(cx: &mut DocContext<'_>, did: DefId) -> Function