-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Work around a resolve bug in const prop #67631
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@bors r+ Thanks! |
📌 Commit 652cec1 has been approved by |
@bors r+ |
📌 Commit 3ab0663 has been approved by |
Confirmed that this will unblock #67137. Thank you!!! |
…sleywiser Work around a resolve bug in const prop r? @wesleywiser @anp This isn't exposed right now, but further changes to rustc may start causing bugs without this.
…sleywiser Work around a resolve bug in const prop r? @wesleywiser @anp This isn't exposed right now, but further changes to rustc may start causing bugs without this.
@bors r- |
Let's not do the hack, since @wesleywiser has a real fix |
We only want to return specializations when `Reveal::All` is passed, not when `Reveal::UserFacing` is. Resolving this fixes several issues with the `ConstProp`, `SimplifyBranches`, and `Inline` MIR optimization passes. Fixes rust-lang#66901
Ping on #67662 (comment):
|
@bors r+ |
📌 Commit 3ab0663 has been approved by |
@bors r- I still want to do the warning thing |
3ab0663
to
5fd8abd
Compare
I added one more commit @wesleywiser It should permit #67137 to not cause a breaking change related to diverging constants, and additionally give us new |
Confirmed that this gets my test passing! |
@bors r+ |
📌 Commit 5fd8abd has been approved by |
…sleywiser Work around a resolve bug in const prop r? @wesleywiser @anp This isn't exposed right now, but further changes to rustc may start causing bugs without this.
Work around a resolve bug in const prop r? @wesleywiser @anp This isn't exposed right now, but further changes to rustc may start causing bugs without this.
☀️ Test successful - checks-azure |
Is this 1% regression (5% on ctfe) expected? |
Looks like we're potentially calling |
But only in the |
|
Add some regression tests Closes rust-lang#64848 (fixed by rust-lang#67631) Closes rust-lang#65918 (ICE is hidden by rust-lang#67000, no longer ICE) Closes rust-lang#66473 (fixed by rust-lang#68084) Closes rust-lang#67550 (set mir-opt-level to 3) r? @Centril
r? @wesleywiser @anp
This isn't exposed right now, but further changes to rustc may start causing bugs without this.