Skip to content

Commit 51c2dc6

Browse files
committed
undo MinInt extensions
1 parent 517e4f5 commit 51c2dc6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libm/src/math/support/int_traits.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ use core::{cmp, fmt, ops};
55
pub trait MinInt:
66
Copy
77
+ fmt::Debug
8-
+ cmp::Ord
98
+ ops::BitOr<Output = Self>
109
+ ops::Not<Output = Self>
11-
+ ops::Shl<u32, Output = Self>
12-
+ ops::Shr<u32, Output = Self>
13-
+ ops::Add<Output = Self>
14-
+ ops::Sub<Output = Self>
1510
{
1611
/// Type with the same width but other signedness
1712
type OtherSign: MinInt;
@@ -38,6 +33,7 @@ pub type OtherSign<I> = <I as MinInt>::OtherSign;
3833
#[allow(dead_code)]
3934
pub trait Int:
4035
MinInt
36+
+ cmp::Ord
4137
+ fmt::Display
4238
+ fmt::Binary
4339
+ fmt::LowerHex
@@ -53,6 +49,8 @@ pub trait Int:
5349
+ ops::ShlAssign<u32>
5450
+ ops::ShrAssign<u32>
5551
+ ops::ShrAssign<i32>
52+
+ ops::Add<Output = Self>
53+
+ ops::Sub<Output = Self>
5654
+ ops::Mul<Output = Self>
5755
+ ops::Div<Output = Self>
5856
+ ops::Rem<Output = Self>

0 commit comments

Comments
 (0)