fn check_invalid_crate_level_attr(tcx: TyCtxt<'_>, attrs: &[Attribute])