Make -Z allow-features
work for stdlib features
#60289
Merged
-Z allow-features
work for stdlib features
#60289