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