Don't reduce E0161 to a warning in NLL migrate mode#53575
Merged
bors merged 2 commits intorust-lang:masterfrom Sep 6, 2018
Merged
Don't reduce E0161 to a warning in NLL migrate mode#53575bors merged 2 commits intorust-lang:masterfrom
bors merged 2 commits intorust-lang:masterfrom
Conversation
Contributor
|
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
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
ec4ec3b to
cd92da8
Compare
Member
|
Ping from triage @pnkfelix! This PR needs your review. |
Contributor
|
Ping from triage @pnkfelix / @rust-lang/compiler: This PR requires your review. |
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit cd92da8 has been approved by |
Collaborator
|
⌛ Testing commit cd92da8 with merge dd89cb727553577e9917c27788ce8d907c49be40... |
Collaborator
|
💔 Test failed - status-appveyor |
Contributor
Author
|
@bors: r=estebank |
Collaborator
|
@matthewjasper: 🔑 Insufficient privileges: Not in reviewers |
Contributor
|
@bors retry |
Collaborator
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
Collaborator
|
☀️ Test successful - status-appveyor, status-travis |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 EXPRwith 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