diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-13 21:08:15 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-27 19:25:16 +0000 |
| commit | dd582bd7db1645b643133ff5e3133e55de15d841 (patch) | |
| tree | 516292e2dedd19a5ffac425bdd2b221bead3c3dd /compiler/rustc_const_eval/src | |
| parent | 43ee4d15bf201f72c36abd7f02961df87dead441 (diff) | |
| download | rust-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.rs | 9 |
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)), } } |
