e2301154e3
`unchecked_{shl|shr}` should use `u32` as the RHS The other shift methods, such as https://doc.rust-lang.org/nightly/std/primitive.u64.html#method.checked_shr and https://doc.rust-lang.org/nightly/std/primitive.i16.html#method.wrapping_shl, use `u32` for the shift amount. That's consistent with other things, like `count_ones`, which also always use `u32` for a bit count, regardless of the size of the type. This PR changes `unchecked_shl` and `unchecked_shr` to also use `u32` for the shift amount (rather than Self). cc #85122, the `unchecked_math` tracking issue |
||
---|---|---|
.. | ||
dec2flt | ||
flt2dec | ||
shells | ||
bignum.rs | ||
diy_float.rs | ||
error.rs | ||
f32.rs | ||
f64.rs | ||
fmt.rs | ||
int_log10.rs | ||
int_macros.rs | ||
mod.rs | ||
nonzero.rs | ||
saturating.rs | ||
uint_macros.rs | ||
wrapping.rs |