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 function arguments in constant promotion #38989

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Jan 11, 2017

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

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 rust-lang#38985.
@arielb1 arielb1 added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 11, 2017
@eddyb
Copy link
Member

eddyb commented Jan 11, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Jan 11, 2017

📌 Commit 61b0b21 has been approved by eddyb

@bors
Copy link
Contributor

bors commented Jan 11, 2017

⌛ Testing commit 61b0b21 with merge 513d942...

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
@bors
Copy link
Contributor

bors commented Jan 11, 2017

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

@bors bors merged commit 61b0b21 into rust-lang:master Jan 11, 2017
@brson
Copy link
Contributor

brson commented Jan 17, 2017

Thanks @arielb1 !

@brson brson added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jan 17, 2017
@brson
Copy link
Contributor

brson commented Jan 17, 2017

Accepted stable bug fix low impact.

@brson brson mentioned this pull request Jan 17, 2017
@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 17, 2017
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants