Open
Description
When conditionally incrementing a usize
counter by 1, the optimizer doesn't detect that overflow is impossible, when using the Chars
iterator. As an example, I wrote a lines-of-codecontent counter that iterates over char
s: Playground
Can repro on 1.90.0-nightly (2025-07-14 a001497)
@rustbot label: +I-slow