Skip to content

Commit 35395af

Browse files
committed
make no-variant types a dedicated Variants variant
1 parent 3f89158 commit 35395af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
605605
// `UnsafeCell` action.
606606
(self.unsafe_cell_action)(v)
607607
}
608-
Variants::Single { .. } => {
608+
Variants::Single { .. } | Variants::Empty => {
609609
// Proceed further, try to find where exactly that `UnsafeCell`
610610
// is hiding.
611611
self.walk_value(v)

0 commit comments

Comments
 (0)