-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Description
#19051 is the metabug for compiler flag stability, but that bug does not put forward a policy for the inclusion of compiler flags that are explicitly unstable. As per our policy for feature gates, we should prevent the unstable flags behind -Z from being used in beta and stable releases. The rationale is the same: given an interface, users will end up relying on it (especially with such an innocuous name as "-Z" to provide no warning as to its instability), and they will be peeved when it breaks.
I see no downside to removing these flags from the beta and stable releases. If this causes a groundswell of demand for a certain flag in the stable release, then that is an argument to stabilize it (and by failing to remove it from the stable releases, we are denying ourselves the feedback of which flags are useful).