-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE: !base.layout().is_sized()
#124436
Comments
This is almost the usual -- code doesn't type check and yet gets fed to the interpreter. Cc @oli-obk @lcnr However, the twist here is that we're calling the interpreter in dump-mir. In the past I think we made some effort to make dump-mir work even on some invalid data. This is fairly easy for data that's "just" UB but still structurally valid; however, the case here is different. Maybe dump-mir (or Or alternatively we'll have to carefully audit everything reachable from |
trait Trait {}
fn fun<T>(t: [dyn Trait; 1]) {} |
This seems to be fixed. Does not ICE with the latest on master. |
I think you forgot the compiler flags. |
Oh I see. Sorry for the confusion 😞 |
#133883 removed polymorphization, all of its tests and crash tests. Closing as not planned. |
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zdump-mir=all -Zpolymorphize=on
Program output
The text was updated successfully, but these errors were encountered: