We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538f118 commit bf14e31Copy full SHA for bf14e31
compiler/rustc_const_eval/src/interpret/terminator.rs
@@ -35,7 +35,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
35
assert_eq!(discr.layout.ty, switch_ty);
36
37
// Branch to the `otherwise` case by default, if no match is found.
38
- assert!(!targets.iter().is_empty());
39
let mut target_block = targets.otherwise();
40
41
for (const_int, target) in targets.iter() {
0 commit comments