We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44cdc07 commit 4b9510fCopy full SHA for 4b9510f
library/core/src/num/uint_macros.rs
@@ -1014,11 +1014,11 @@ macro_rules! uint_impl {
1014
unsafe {
1015
let lhs = self;
1016
intrinsics::assert_unsafe_precondition!(
1017
- concat!(stringify!($SelfT), "::unchecked_shl cannot overflow"),
+ concat!(stringify!($SelfT), "::unchecked_shr cannot overflow"),
1018
(rhs: u32) => rhs < <$SelfT>::BITS
1019
);
1020
let rhs = conv_rhs_for_unchecked_shift!($SelfT, rhs);
1021
- intrinsics::unchecked_shl(lhs, rhs)
+ intrinsics::unchecked_shr(lhs, rhs)
1022
}
1023
1024
0 commit comments