]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/borrow_check/mod.rs
Refactor how SwitchInt stores jump targets
[rust.git] / compiler / rustc_mir / src / borrow_check / mod.rs
index 9b34db1de403f51b352d44ca3a77aa61a5d7adf6..4b7af271baef046467f84542839f78ecf5ff71a2 100644 (file)
@@ -671,7 +671,7 @@ fn visit_terminator_before_primary_effect(
         self.check_activations(loc, span, flow_state);
 
         match term.kind {
-            TerminatorKind::SwitchInt { ref discr, switch_ty: _, values: _, targets: _ } => {
+            TerminatorKind::SwitchInt { ref discr, switch_ty: _, targets: _ } => {
                 self.consume_operand(loc, (discr, span), flow_state);
             }
             TerminatorKind::Drop { place: ref drop_place, target: _, unwind: _ } => {