-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid the -Z compiler flags from being used in beta and stable releases #24971
Comments
cc @aturon |
I would prefer we remove |
Don't we deliberately have a |
@nrc the proposal of this issue, as I interpreted it, was that all (I guess we could do something funky like require that you pass |
The intention was to allow |
triage decision: Not going to block 1.0 release on doing this. And maybe we will not do it at all -- we are a little worried about de-facto stabilization of |
triage: P-medium |
I just read a blog post today where somebody is building Rust on ARM with |
@bstrie do you think it would make any difference if use of any |
@pnkfelix I'm unsure of how to proceed at this point, given that 1.0 has shipped. I think at some point we need to sit down and have a good look at all the flags that the compiler accepts and decide the fate of each, because that wasn't something we got around to before 1.0. Basically do what aturon and acrichto did for all the stdlib APIs in 1.0-beta. |
Closing in favor of #31847 |
#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).
The text was updated successfully, but these errors were encountered: