mirror of
https://github.com/rust-lang/rust.git
synced 2026-08-03 05:19:50 -04:00
Add `ilog10` result range hints This PR adds hints that the return value of `T::ilog10` will never exceed `T::MAX.ilog10()`. This works because `ilog10` is a monotonically nondecreasing function, the maximum return value is reached at the max input value.