mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-21 02:52:05 +00:00
`if` expressions don't necessarily contain a block in the `else` part in the presence of an `else if`. The `else` part, if present, must be handled as a regular expression, not necessarily as a block expression. Found while applying Clippy to triagebot and looking at the result. This also found an issue in Clippy itself. changelog: [`needless_return`]: look inside `else if` parts as well