Internal Compiler Error on test program with unstable unsize
feature
#1664
Labels
A-validation
Area: This affects enforcing the validity invariant, and related UB checking
C-bug
Category: This is a bug.
I-ICE
Impact: makes Miri crash with some ICE
I was experimenting with
feature(unsize)
andmin_const_generics
on the playground, and managed to crash Miri; the error message says to report to the rust repository, but the code builds and runs just fine, only attempting to run it with Miri leads to an ICE. In fact, the crash definitely happens during interpretation, as my original program managed to output some text before the error occured.Playground Link
Some observations:
_ptr
field (and replacing it withPhantomData
to make the change minimal and still compile) causes Miri to (presumably) correctly detect undefined behavior and terminate normally.ptr.write
statement in line 29 causes Miri to terminate without any error.Given that, I don't know how to minimize the example any further, so I'm not sure how strongly this is actually related to my use of the nightly-only features. I left the comments in there to leave you a bit of context on what I was actually trying to do, in case that's helpful somehow.
The error message:
The text was updated successfully, but these errors were encountered: