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

mir: don't attempt to promote Unpromotable constant temps. #33541

Merged
merged 1 commit into from
May 13, 2016

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented May 10, 2016

Fixes #33537. This was a non-problem in regular functions, but we also promote in const fns.
There we always qualify temps so you can't depend on Unpromotable temps being NOT_CONST.

@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb eddyb force-pushed the promote-only-temps branch from b8239d6 to e5a91b7 Compare May 10, 2016 18:26
@arielb1
Copy link
Contributor

arielb1 commented May 10, 2016

@bors r+

@bors
Copy link
Contributor

bors commented May 10, 2016

📌 Commit e5a91b7 has been approved by arielb1

Manishearth added a commit to Manishearth/rust that referenced this pull request May 12, 2016
mir: don't attempt to promote Unpromotable constant temps.

Fixes rust-lang#33537. This was a non-problem in regular functions, but we also promote in `const fn`s.
There we always qualify temps so you can't depend on `Unpromotable` temps being `NOT_CONST`.
eddyb added a commit to eddyb/rust that referenced this pull request May 12, 2016
mir: don't attempt to promote Unpromotable constant temps.

Fixes rust-lang#33537. This was a non-problem in regular functions, but we also promote in `const fn`s.
There we always qualify temps so you can't depend on `Unpromotable` temps being `NOT_CONST`.
bors added a commit that referenced this pull request May 12, 2016
@eddyb
Copy link
Member Author

eddyb commented May 13, 2016

@bors p=1 (unbreaks Servo)

eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
mir: don't attempt to promote Unpromotable constant temps.

Fixes rust-lang#33537. This was a non-problem in regular functions, but we also promote in `const fn`s.
There we always qualify temps so you can't depend on `Unpromotable` temps being `NOT_CONST`.
@bors
Copy link
Contributor

bors commented May 13, 2016

⌛ Testing commit e5a91b7 with merge a581c82...

bors added a commit that referenced this pull request May 13, 2016
mir: don't attempt to promote Unpromotable constant temps.

Fixes #33537. This was a non-problem in regular functions, but we also promote in `const fn`s.
There we always qualify temps so you can't depend on `Unpromotable` temps being `NOT_CONST`.
@bors bors merged commit e5a91b7 into rust-lang:master May 13, 2016
@eddyb eddyb deleted the promote-only-temps branch May 13, 2016 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants