]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_codegen_cranelift/crate_patches/0001-compiler-builtins-Remove-rotate_left-from-Int.patch
Auto merge of #84230 - cuviper:llvm-12, r=nikic
[rust.git] / compiler / rustc_codegen_cranelift / crate_patches / 0001-compiler-builtins-Remove-rotate_left-from-Int.patch
1 From 7078cca3cb614e1e82da428380b4e16fc3afef46 Mon Sep 17 00:00:00 2001
2 From: bjorn3 <bjorn3@users.noreply.github.com>
3 Date: Thu, 21 Jan 2021 14:46:36 +0100
4 Subject: [PATCH] Remove rotate_left from Int
5
6 ---
7  src/int/mod.rs | 5 -----
8  1 file changed, 5 deletions(-)
9
10 diff --git a/src/int/mod.rs b/src/int/mod.rs
11 index 06054c8..3bea17b 100644
12 --- a/src/int/mod.rs
13 +++ b/src/int/mod.rs
14 @@ -85,7 +85,6 @@ pub trait Int:
15      fn wrapping_sub(self, other: Self) -> Self;
16      fn wrapping_shl(self, other: u32) -> Self;
17      fn wrapping_shr(self, other: u32) -> Self;
18 -    fn rotate_left(self, other: u32) -> Self;
19      fn overflowing_add(self, other: Self) -> (Self, bool);
20      fn aborting_div(self, other: Self) -> Self;
21      fn aborting_rem(self, other: Self) -> Self;
22 @@ -209,10 +208,6 @@ macro_rules! int_impl_common {
23              <Self>::wrapping_shr(self, other)
24          }
25  
26 -        fn rotate_left(self, other: u32) -> Self {
27 -            <Self>::rotate_left(self, other)
28 -        }
29 -
30          fn overflowing_add(self, other: Self) -> (Self, bool) {
31              <Self>::overflowing_add(self, other)
32          }
33 -- 
34 2.26.2.7.g19db9cfb68
35