Files
rust/tests
Samuel Tardieu 5a8a577345 Fix infinite_loop wrong suggestion inside conditional branches (#16619)
Fix rust-lang/rust-clippy#16155

Suppress the `-> !` suggestion when the loop is inside a conditional
where not all branches diverge. When every branch does diverge (e.g. `if
cond { loop {} } else { loop {} }`), the suggestion is still emitted.

changelog: [`infinite_loop`]: Fix wrong suggestion to add `-> !` when
the loop is inside a conditional branch
2026-03-05 12:44:30 +00:00
..