-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
internal compiler error: src/librustc_mir/interpret/place.rs:41: expected wide pointer extra data (e.g. slice length or trait object vtable) #68538
Comments
Triage: This now occurs on |
Also still with #![feature(unsized_locals)]
struct Bug {
V1: [(); {
let f: [u8];
f.len()
}],
}
fn main() {} |
This doesn't ICE anymore |
#![feature(unsized_fn_params)]
pub fn take_unsized_slice(s: [u8]) {
s[0];
} now crashes with
cc @RalfJung I think this is caused by your PR to remove unsized locals support from miri. |
Hm yeah seems related -- but shouldn't that code be rejected? It has an unsized local, not just an unsized argument, so the |
Where is the unsized local? |
Ah you are right. The problem is again ConstProp violating some interpreter invariants. The fix is fairly easy though: add a new
and then throw that instead of a free-form string here
That should entirely get rid of the ICE. |
This now crashes with |
This comment was marked as off-topic.
This comment was marked as off-topic.
interpret: fail more gracefully on uninit unsized locals r? `@oli-obk` Fixes rust-lang/rust#68538
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: