Skip to content

lower move_val_init during MIR construction#41361

Merged
bors merged 2 commits into
rust-lang:masterfrom
arielb1:move-mir-init
Apr 18, 2017
Merged

lower move_val_init during MIR construction#41361
bors merged 2 commits into
rust-lang:masterfrom
arielb1:move-mir-init

Conversation

@arielb1

@arielb1 arielb1 commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

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

eddyb commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

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

@pnkfelix

pnkfelix commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@bors r+

@bors

bors commented Apr 18, 2017

Copy link
Copy Markdown
Collaborator

📌 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants