Skip to content

Work around a resolve bug in const prop - #67631

Merged
bors merged 4 commits into
rust-lang:masterfrom
oli-obk:polymorphic_promotion
Dec 30, 2019
Merged

Work around a resolve bug in const prop#67631
bors merged 4 commits into
rust-lang:masterfrom
oli-obk:polymorphic_promotion

Conversation

@oli-obk

@oli-obkoli-obk commented Dec 26, 2019

Copy link
Copy Markdown
Contributor

r? @wesleywiser@anp

This isn't exposed right now, but further changes to rustc may start causing bugs without this.

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 26, 2019
@wesleywiser

Copy link
Copy Markdown
Member

@bors r+

Thanks!

@bors

bors commented Dec 26, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 652cec1 has been approved by wesleywiser

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 26, 2019
@wesleywiser

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Dec 26, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 3ab0663 has been approved by wesleywiser

@anp

anp commented Dec 26, 2019

Copy link
Copy Markdown
Contributor

Confirmed that this will unblock #67137. Thank you!!!

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 26, 2019
…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.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Dec 27, 2019
…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.
@JohnTitorJohnTitor mentioned this pull request Dec 27, 2019
@wesleywiser

Copy link
Copy Markdown
Member

@bors r-

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 27, 2019
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

Let's not do the hack, since @wesleywiser has a real fix

@oli-obkoli-obk closed this Dec 27, 2019
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.
Fixesrust-lang#66901
@anp

anp commented Dec 27, 2019

Copy link
Copy Markdown
Contributor

Ping on #67662 (comment):

I guess we still need my PR for backwards compatibility of @anp's PR. I'll reopen

@oli-obkoli-obk reopened this Dec 27, 2019
@wesleywiser

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Dec 27, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 3ab0663 has been approved by wesleywiser

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 27, 2019
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r-

I still want to do the warning thing

@borsbors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Dec 27, 2019
@oli-obk
oli-obkforce-pushed the polymorphic_promotion branch from 3ab0663 to 5fd8abdCompareDecember 28, 2019 23:26
@oli-obk

oli-obk commented Dec 28, 2019

Copy link
Copy Markdown
ContributorAuthor

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 const_err lints for them.

@anp

anp commented Dec 29, 2019

Copy link
Copy Markdown
Contributor

Confirmed that this gets my test passing!

@wesleywiser

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Dec 29, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 5fd8abd has been approved by wesleywiser

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 29, 2019
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Dec 29, 2019
…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

bors commented Dec 30, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 5fd8abd with merge 214548b...

bors added a commit that referenced this pull request Dec 30, 2019
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

bors commented Dec 30, 2019

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-azure
Approved by: wesleywiser
Pushing 214548b to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Dec 30, 2019
@bors
bors merged commit 5fd8abd into rust-lang:masterDec 30, 2019
@mati865

Copy link
Copy Markdown
Member

@wesleywiser

Copy link
Copy Markdown
Member

@oli-obk

Copy link
Copy Markdown
ContributorAuthor

But only in the base incremental runs. everything else is unaffected.

@mati865

mati865 commented Dec 30, 2019

Copy link
Copy Markdown
Member

patched incremental has also regressed.

@oli-obk
oli-obk deleted the polymorphic_promotion branch January 1, 2020 19:47
@JohnTitorJohnTitor mentioned this pull request Jan 14, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jan 15, 2020
Add some regression tests
Closesrust-lang#64848 (fixed by rust-lang#67631)
Closesrust-lang#65918 (ICE is hidden by rust-lang#67000, no longer ICE)
Closesrust-lang#66473 (fixed by rust-lang#68084)
Closesrust-lang#67550 (set mir-opt-level to 3)
r? @Centril
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@oli-obk@wesleywiser@bors@anp@mati865@rust-highfive