Skip to content

Commit

Permalink
interpret: remove an incorrect assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 20, 2022
1 parent 538f118 commit bf14e31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_const_eval/src/interpret/terminator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
assert_eq!(discr.layout.ty, switch_ty);

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

for (const_int, target) in targets.iter() {
Expand Down

0 comments on commit bf14e31

Please sign in to comment.