We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaa511 commit 3cd7230Copy full SHA for 3cd7230
library/core/src/num/nonzero.rs
@@ -666,7 +666,7 @@ macro_rules! nonzero_integer {
666
// and self.leading_zeros() is always < $INT::BITS since
667
// at least one of the bits in the number is not zero
668
unsafe {
669
- let bit = (((1 as $UInt) << (<$UInt>::BITS - 1)).unchecked_shr(self.leading_zeros()));
+ let bit = (((1 as $Uint) << (<$Uint>::BITS - 1)).unchecked_shr(self.leading_zeros()));
670
NonZero::new_unchecked(bit as $Int)
671
}
672
0 commit comments