-
Notifications
You must be signed in to change notification settings - Fork 353
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
Support for core::mem::forget_unsized
#2872
Comments
We only emit that error here so it very much looks like there is an unsized local in the generated MIR. Strange. |
Yeah, this is the generated MIR (at opt-level 0):
So Miri is right, MIR building is introducing unsized locals here. |
The fact that this code is accepted without the
|
This is a rustc bug: rust-lang/rust#111175. Thanks for reporting! |
Miri fails to run the above program with the following error:
There are no unsized locals in this program, so at the very least, the error message is incorrect.
The text was updated successfully, but these errors were encountered: