Open saethlin opened 1 month ago
Seems like this leads to a TooGeneric
?
error: internal compiler error: src/tools/miri/src/diagnostics.rs:324:17: This error should be impossible in Miri: encountered overly generic constant
Miri bails out on TooGeneric since it knows everything is monomorphized. (codegen does the same.) Does the type length limit cause TooGeneric errors? That would IMO be a wrong use of that error code, precisely because we have users that know that things are not generic any more so we should be able to distinguish errors they can see (like this type length limit) and errors they cannot see (like failing to compute the layout of a type due to generics).
The following program ICEs Miri:
Miri reports:
I'm filing this here because I'm pretty sure the problem is that the core interpreter logic does not handle the new failure path out of
Instance::try_resolve
correctly.