Fix rebase fallout
This commit is contained in:
parent
5fd5d524b7
commit
32d8d24159
@ -448,7 +448,11 @@ pub mod reimpls {
|
||||
low += (t & lower_mask) << half_bits;
|
||||
high += t >> half_bits;
|
||||
high += (a.low() >> half_bits) * (b.low() >> half_bits);
|
||||
high = high.wrapping_add(a.high().wrapping_mul(b.low()).wrapping_add(a.low().wrapping_mul(b.high())));
|
||||
high = high
|
||||
.wrapping_add(a.high()
|
||||
.wrapping_mul(b.low())
|
||||
.wrapping_add(a.low()
|
||||
.wrapping_mul(b.high())));
|
||||
<$ty>::from_parts(low, high)
|
||||
}}
|
||||
}
|
||||
|
@ -2614,6 +2614,27 @@ macro_rules! same_sign_try_from_int_impl {
|
||||
)*}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(u64, u8, u8, u16, u32, u64, usize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(i64, i8, i8, i16, i32, i64, isize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(u64, u16, u8, u16, u32, u64, usize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(i64, i16, i8, i16, i32, i64, isize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(u64, u32, u8, u16, u32, u64, usize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(i64, i32, i8, i16, i32, i64, isize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(u64, u64, u8, u16, u32, u64, usize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(i64, i64, i8, i16, i32, i64, isize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(u64, usize, u8, u16, u32, u64, usize);
|
||||
#[cfg(stage0)]
|
||||
same_sign_try_from_int_impl!(i64, isize, i8, i16, i32, i64, isize);
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
same_sign_try_from_int_impl!(u128, u8, u8, u16, u32, u64, u128, usize);
|
||||
#[cfg(not(stage0))]
|
||||
|
@ -1198,7 +1198,9 @@ impl<'a, 'gcx, 'tcx> Layout {
|
||||
|
||||
if def.is_enum() && def.variants.iter().all(|v| v.fields.is_empty()) {
|
||||
// All bodies empty -> intlike
|
||||
let (mut min, mut max, mut non_zero) = (i128::max_value(), i128::min_value(), true);
|
||||
let (mut min, mut max, mut non_zero) = (i128::max_value(),
|
||||
i128::min_value(),
|
||||
true);
|
||||
for v in &def.variants {
|
||||
let x = v.disr_val.to_u128_unchecked() as i128;
|
||||
if x == 0 { non_zero = false; }
|
||||
|
Loading…
Reference in New Issue
Block a user