mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
66697e84b1
A `return` in an expression makes it divergent and cannot be removed blindly. While this stripping might have been introduced as a way to catch more cases, it was improperly used, and no tests exhibit a failure when this special handling is removed. changelog: [`needless_match`]: do not strip `return` as it might make the `if let` or `match` divergent in some cases Fixes rust-lang/rust-clippy#14754