-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix #54224 (const promotion regression) #54715
Conversation
This comment has been minimized.
This comment has been minimized.
12cee74
to
670d07e
Compare
Ping from triage @eddyb / @rust-lang/compiler: This PR requires your review. |
r? @RalfJung |
I am confused. #54224 says it's not a bug, and it also doesn't mention anything about this being a regression. And then the fix for an issue that something doesn't get promoted is to make more things |
This is a regression introduced in #51990 (comment) We'll want to relax this in the future, but for now we should not change behaviour |
Ah, so right now we accidentally accept some of the code you added in that test case? |
There still is a
Fn but not for the other modes?
Same for
|
Oh I see, the difference is that in the other cases we always emit a feature gate in the @bors r+ |
📌 Commit 76f8a90 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
r? @eddyb