Skip to content

lower move_val_init during MIR construction #41361

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

Merged
merged 2 commits into from
Apr 18, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Apr 18, 2017

Because of its "magic" order-of-evaluation semantics, move_val_init must be lowered during MIR construction in order to work without needing a temporary.

r? @eddyb

Because of its "magic" order-of-evaluation semantics, `move_val_init`
must be lowered during MIR construction in order to work.
@eddyb
Copy link
Member

eddyb commented Apr 18, 2017

I thought @pnkfelix was happy with moving the box/<- desugaring to HAIR -> MIR.

@pnkfelix
Copy link
Member

pnkfelix commented Apr 18, 2017

i said this on IRC, but repeating here for the record: I'm not attached to the desugaring approach. It was more attractive before we had MIR. but if this PR improves the current state of move_val_init, maybe we're better off just merging it.

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 18, 2017

📌 Commit ed3810b has been approved by pnkfelix

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
lower `move_val_init` during MIR construction

Because of its "magic" order-of-evaluation semantics, `move_val_init` must be lowered during MIR construction in order to work without needing a temporary.

r? @eddyb
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
lower `move_val_init` during MIR construction

Because of its "magic" order-of-evaluation semantics, `move_val_init` must be lowered during MIR construction in order to work without needing a temporary.

r? @eddyb
This was referenced Apr 18, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 18, 2017
lower `move_val_init` during MIR construction

Because of its "magic" order-of-evaluation semantics, `move_val_init` must be lowered during MIR construction in order to work without needing a temporary.

r? @eddyb
bors added a commit that referenced this pull request Apr 18, 2017
Rollup of 6 pull requests

- Successful merges: #40290, #41353, #41356, #41360, #41361, #41364
- Failed merges:
@bors bors merged commit ed3810b into rust-lang:master Apr 18, 2017
# 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.

4 participants