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 f9e0a67 commit b8b73bcCopy full SHA for b8b73bc
library/core/src/num/dec2flt/decimal_seq.rs
@@ -139,6 +139,7 @@ impl DecimalSeq {
139
#[safety::loop_invariant(read_index <= Self::MAX_DIGITS &&
140
write_index == read_index + num_new_digits &&
141
n < 10u64 << (shift - 1) &&
142
+ (n == 0 || write_index > 0) &&
143
self.num_digits <= Self::MAX_DIGITS &&
144
self.decimal_point <= self.num_digits as i32 &&
145
forall!(|i in (0,DecimalSeq::MAX_DIGITS)| self.digits[i] <= 9)
0 commit comments