We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4862a57 + e8f0374 commit 877e9ebCopy full SHA for 877e9eb
src/helpers.rs
@@ -602,6 +602,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
602
// We want to not actually read from memory for this visit. So, before
603
// walking this value, we have to make sure it is not a
604
// `Variants::Multiple`.
605
+ // FIXME: the current logic here is layout-dependent, so enums with
606
+ // multiple variants where all but 1 are uninhabited will be recursed into.
607
+ // Is that truly what we want?
608
match v.layout.variants {
609
Variants::Multiple { .. } => {
610
// A multi-variant enum, or coroutine, or so.
0 commit comments