]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/lib.rs
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / compiler / rustc_borrowck / src / lib.rs
index 74b4e4a0cabdd6826807ba410ff4af8884fb2c4d..5289de9b0abf2ffa3d0d2d142904b392070dc2d9 100644 (file)
@@ -644,7 +644,7 @@ fn visit_terminator_before_primary_effect(
         self.check_activations(loc, span, flow_state);
 
         match &term.kind {
-            TerminatorKind::SwitchInt { discr, switch_ty: _, targets: _ } => {
+            TerminatorKind::SwitchInt { discr, targets: _ } => {
                 self.consume_operand(loc, (discr, span), flow_state);
             }
             TerminatorKind::Drop { place, target: _, unwind: _ } => {