Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 70b04fd

Browse files
committed
removed likely
1 parent b9923a8 commit 70b04fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/num/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,7 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par
10681068

10691069
let mut result = T::from_u32(0);
10701070

1071-
if intrinsics::likely(
1072-
radix <= 16 && digits.len() <= mem::size_of::<T>() * 2 - is_signed_ty as usize,
1073-
) {
1071+
if radix <= 16 && digits.len() <= mem::size_of::<T>() * 2 - is_signed_ty as usize {
10741072
// SAFETY: We can take this fast path when `radix.pow(digits.len()) - 1 <= T::MAX`
10751073
// but the condition above is a faster (conservative) approximation of this.
10761074
//

0 commit comments

Comments
 (0)