Skip to content

Commit bf14e31

Browse files
committed
interpret: remove an incorrect assertion
1 parent 538f118 commit bf14e31

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_const_eval/src/interpret/terminator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
3535
assert_eq!(discr.layout.ty, switch_ty);
3636

3737
// Branch to the `otherwise` case by default, if no match is found.
38-
assert!(!targets.iter().is_empty());
3938
let mut target_block = targets.otherwise();
4039

4140
for (const_int, target) in targets.iter() {

0 commit comments

Comments
 (0)