diff --git a/src/etc/test-float-parse/src/gen/exhaustive.rs b/src/etc/test-float-parse/src/gen/exhaustive.rs index 01458fb0b6084..4b194f5febd3e 100644 --- a/src/etc/test-float-parse/src/gen/exhaustive.rs +++ b/src/etc/test-float-parse/src/gen/exhaustive.rs @@ -18,7 +18,7 @@ where type WriteCtx = F; fn total_tests() -> u64 { - 1u64.checked_shl(F::Int::BITS).expect("More than u64::MAX tests") + 2u64.saturating_pow(F::Int::BITS) } fn new() -> Self {