Skip to content
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

mir: drop temps outside-in by scheduling the drops inside-out. #33239

Merged
merged 1 commit into from
May 11, 2016

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Apr 27, 2016

It was backwards all along, but only noticeable with multiple drops in one rvalue scope. Fixes #32433.

@rust-highfive
Copy link
Contributor

r? @arielb1

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

@arielb1
Copy link
Contributor

arielb1 commented Apr 27, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 27, 2016

📌 Commit d569228 has been approved by arielb1

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 27, 2016
mir: drop temps outside-in by scheduling the drops inside-out.

It was backwards all along, but only noticeable with multiple drops in one rvalue scope. Fixes rust-lang#32433.
@eddyb
Copy link
Member Author

eddyb commented Apr 29, 2016

Ahh right, I forgot to check it locally as I had two other PRs to work on. And Travis doesn't help with MIR.

@eddyb
Copy link
Member Author

eddyb commented Apr 29, 2016

@bors r-

bors added a commit that referenced this pull request Apr 29, 2016
Rollup of 4 pull requests

- Successful merges: #33239, #33248, #33253, #33258
- Failed merges:
@eddyb
Copy link
Member Author

eddyb commented May 7, 2016

I went back and checked my testcases from #32433. They're fixed, but the issue-23338-ensure-param-drop-order test still has a different case which MIR gets wrong, 6 needs to be dropped earlier, just after Make D(de_6, 7).

@bors
Copy link
Collaborator

bors commented May 8, 2016

☔ The latest upstream changes (presumably #33130) made this pull request unmergeable. Please resolve the merge conflicts.

@eddyb eddyb force-pushed the mir-temp-drops branch from 6974d30 to e940de6 Compare May 11, 2016 07:46
@eddyb
Copy link
Member Author

eddyb commented May 11, 2016

@bors r=arielb1

@bors
Copy link
Collaborator

bors commented May 11, 2016

📌 Commit e940de6 has been approved by arielb1

@bors
Copy link
Collaborator

bors commented May 11, 2016

⌛ Testing commit e940de6 with merge c049541...

bors added a commit that referenced this pull request May 11, 2016
mir: drop temps outside-in by scheduling the drops inside-out.

It was backwards all along, but only noticeable with multiple drops in one rvalue scope. Fixes #32433.
@bors bors merged commit e940de6 into rust-lang:master May 11, 2016
@eddyb eddyb deleted the mir-temp-drops branch May 11, 2016 15:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants