Skip to content

Don't reduce E0161 to a warning in NLL migrate mode#53575

Merged
bors merged 2 commits into
rust-lang:masterfrom
matthewjasper:unsized-is-an-error
Sep 6, 2018
Merged

Don't reduce E0161 to a warning in NLL migrate mode#53575
bors merged 2 commits into
rust-lang:masterfrom
matthewjasper:unsized-is-an-error

Conversation

@matthewjasper

Copy link
Copy Markdown
Contributor

This error has been on stable for a while, and allowing such code cause the compile to later ICE (since we can't codegen it). Errors box UNSIZED EXPR with unsized locals because it's not compatible with the current evaluation order (create the box before evaluating the expressions).

cc #53469 (fixes the ICE in this case)
cc @qnighy

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @pnkfelix

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 21, 2018
@bors

bors commented Aug 22, 2018

Copy link
Copy Markdown
Collaborator

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

* Sized checking in MIR should be a hard error in all borrowck modes
* box operands should be an error even with unsized locals
Update another test that broke due to E0161 no longer being buffered
@emilyalbini

Copy link
Copy Markdown
Member

Ping from triage @pnkfelix! This PR needs your review.

@memoryruins memoryruins added the A-NLL Area: Non-lexical lifetimes (NLL) label Aug 28, 2018
@TimNN

TimNN commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

Ping from triage @pnkfelix / @rust-lang/compiler: This PR requires your review.

@estebank

estebank commented Sep 5, 2018

Copy link
Copy Markdown
Contributor

@bors r+
cc @nikomatsakis

@bors

bors commented Sep 5, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit cd92da8 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 5, 2018
@bors

bors commented Sep 5, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cd92da8 with merge dd89cb727553577e9917c27788ce8d907c49be40...

@bors

bors commented Sep 5, 2018

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 5, 2018
@matthewjasper

Copy link
Copy Markdown
Contributor Author

@bors: r=estebank

@bors

bors commented Sep 6, 2018

Copy link
Copy Markdown
Collaborator

@matthewjasper: 🔑 Insufficient privileges: Not in reviewers

@estebank

estebank commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 6, 2018
@bors

bors commented Sep 6, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cd92da8 with merge a8c11d2...

bors added a commit that referenced this pull request Sep 6, 2018
Don't reduce E0161 to a warning in NLL migrate mode

This error has been on stable for a while, and allowing such code cause the compile to later ICE (since we can't codegen it). Errors `box UNSIZED EXPR` with unsized locals because it's not compatible with the current evaluation order (create the box before evaluating the expressions).

cc #53469 (fixes the ICE in this case)
cc @qnighy
@bors

bors commented Sep 6, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: estebank
Pushing a8c11d2 to master...

@bors bors merged commit cd92da8 into rust-lang:master Sep 6, 2018
@bors bors mentioned this pull request Sep 6, 2018
3 tasks
@matthewjasper matthewjasper deleted the unsized-is-an-error branch September 8, 2018 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-NLL Area: Non-lexical lifetimes (NLL) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants