-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't reduce E0161 to a warning in NLL migrate mode #53575
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
☔ 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
Ping from triage @pnkfelix! This PR needs your review. |
Ping from triage @pnkfelix / @rust-lang/compiler: This PR requires your review. |
@bors r+ |
📌 Commit cd92da8 has been approved by |
⌛ Testing commit cd92da8 with merge dd89cb727553577e9917c27788ce8d907c49be40... |
💔 Test failed - status-appveyor |
@bors: r=estebank |
@matthewjasper: 🔑 Insufficient privileges: Not in reviewers |
@bors retry |
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
☀️ Test successful - status-appveyor, status-travis |
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