pub(crate) fn parse_external_mod(
    sess: &Session,
    ident: Ident,
    span: Span,
    module: &ModuleData,
    dir_ownership: DirOwnership,
    attrs: &mut Vec<Attribute>
) -> ParsedExternalMod