mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 15:27:50 +00:00
Currently `logspace` does a lossy cast from `F::Int` to `usize`. This could be problematic in the rare cases that this is called with a step count exceeding what is representable in `usize`. Resolve this by instead adding bounds so the float's integer type itself can be iterated.