summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-02-13 21:08:15 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-02-27 19:25:16 +0000
commitdd582bd7db1645b643133ff5e3133e55de15d841 (patch)
tree516292e2dedd19a5ffac425bdd2b221bead3c3dd /compiler/rustc_const_eval/src
parent43ee4d15bf201f72c36abd7f02961df87dead441 (diff)
downloadrust-dd582bd7db1645b643133ff5e3133e55de15d841.tar.gz
rust-dd582bd7db1645b643133ff5e3133e55de15d841.zip
Implement checked Shl/Shr at MIR building.
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 068491646f4..785dde93e31 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -553,15 +553,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
                             );
                         }
                     }
-                    Shl | Shr => {
-                        for x in [a, b] {
-                            check_kinds!(
-                                x,
-                                "Cannot perform checked shift on non-integer type {:?}",
-                                ty::Uint(..) | ty::Int(..)
-                            )
-                        }
-                    }
                     _ => self.fail(location, format!("There is no checked version of {:?}", op)),
                 }
             }