mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
5a8a577345
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