]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/mir/type_foldable.rs
Refactor how SwitchInt stores jump targets
[rust.git] / compiler / rustc_middle / src / mir / type_foldable.rs
index ad2eae0298cec751cef75ca12f6f8c6e858e0795..9297aed66a459e3c1248bf64c650b2b91c180749 100644 (file)
@@ -21,10 +21,9 @@ fn super_fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Self {
 
         let kind = match self.kind {
             Goto { target } => Goto { target },
-            SwitchInt { ref discr, switch_ty, ref values, ref targets } => SwitchInt {
+            SwitchInt { ref discr, switch_ty, ref targets } => SwitchInt {
                 discr: discr.fold_with(folder),
                 switch_ty: switch_ty.fold_with(folder),
-                values: values.clone(),
                 targets: targets.clone(),
             },
             Drop { ref place, target, unwind } => {