Skip to content

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
Contributor

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
Contributor

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants