-
Notifications
You must be signed in to change notification settings - Fork 349
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
Teach miri about unsized locals #449
Comments
Basically I think all we have to do is remove a bunch of asserts, and teach ... famous last words... |
Isn't this a duplicate of #438? |
Likely also relevant (at least for tests): rust-lang/rust#54183 |
For the record, here's the main implementation PR for the LLVM backend: rust-lang/rust#51131 |
Looking at the MIR, I cannot see this at all. What makes you say that? My current impression is that the best way to support this is to actually have proper unsized locals, with the fat-ptr-meta stored in the |
Miri: unsized locals and by-value dyn traits r? @oli-obk Cc @eddyb Fixes rust-lang/miri#449
Miri: unsized locals and by-value dyn traits r? @oli-obk Cc @eddyb Fixes rust-lang/miri#449
Has been fixed by rust-lang/rust#59780. |
These are just unsized in the typesystem. They are actually just fat pointers
https://play.rust-lang.org/?gist=43d2f8256e22ed27e79b5e58082b3357&version=nightly&mode=debug&edition=2015 is a small example that should work
The text was updated successfully, but these errors were encountered: