Skip to content
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 promotion of MIR terminators #38833

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Jan 4, 2017

promotion of MIR terminators used to try to promote the destination it
is trying to promote, leading to stack overflow.

Also clean up the code in promote_temp a bit to make it more understandable.

Fixes #37991.

cc @nikomatsakis
r? @eddyb

promotion of MIR terminators used to try to promote the destination it
is trying to promote, leading to stack overflow.

Fixes rust-lang#37991.
@arielb1 arielb1 added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 4, 2017
@eddyb
Copy link
Member

eddyb commented Jan 4, 2017

Hah, I'm glad I checked first, I finally had some time to spend on this (I'll go do #38074 instead).

@eddyb
Copy link
Member

eddyb commented Jan 4, 2017

@bors r+ Nice rewrite!

@bors
Copy link
Contributor

bors commented Jan 4, 2017

📌 Commit 99aa48d has been approved by eddyb

@eddyb eddyb added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jan 4, 2017
@nikomatsakis
Copy link
Contributor

After discussing in @rust-lang/compiler meeting, decided to approve for backport. Fixes a regression, minimal risk.

@nikomatsakis nikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jan 5, 2017
@alexcrichton
Copy link
Member

@bors: p=1

This is a backport

@bors
Copy link
Contributor

bors commented Jan 6, 2017

⌛ Testing commit 99aa48d with merge aa0c250...

@bors
Copy link
Contributor

bors commented Jan 6, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

alexcrichton commented Jan 6, 2017 via email

@bors
Copy link
Contributor

bors commented Jan 6, 2017

⌛ Testing commit 99aa48d with merge 0728b71...

bors added a commit that referenced this pull request Jan 6, 2017
fix promotion of MIR terminators

promotion of MIR terminators used to try to promote the destination it
is trying to promote, leading to stack overflow.

Also clean up the code in `promote_temp` a bit to make it more understandable.

Fixes #37991.

cc @nikomatsakis
r? @eddyb
@bors
Copy link
Contributor

bors commented Jan 6, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing 0728b71 to master...

@bors bors merged commit 99aa48d into rust-lang:master Jan 6, 2017
@nikomatsakis
Copy link
Contributor

@bors r-

@nikomatsakis
Copy link
Contributor

oh, never mind :)

@nikomatsakis nikomatsakis mentioned this pull request Jan 6, 2017
17 tasks
@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 6, 2017
bors added a commit that referenced this pull request Jan 11, 2017
fix function arguments in constant promotion

we can't create the target block until *after* we promote the arguments - otherwise the arguments will be promoted into the target block. oops.

Fixes #38985.

This is a regression introduced in the beta-nominated #38833, so beta-nominating this one too (sorry @brson).

r? @eddyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants