Thanks to @erk.dev, the clippy lint for this just merged 🎉 github.com/rust-lang/ru...
github.comadd new lint: `for_unbounded_range` by Erk- · Pull Request #16257 · rust-lang/rust-clippyView all comments
This adds a Clippy lint for the possible confusing behaviour pointed out in rust-lang/rust#150084 and rust-lang/rust#111514, and discussed in rust-lang/libs-team#304.
While no con...
TIL: RangeFrom/`0..` in Rust wraps instead of ending at the ::MAX value? fn main() { for idx in (0u8..).take(257) { println!("{:02X}", idx); } } play.rust-lang.org?version=stab...