rust/clippy_lints
Alejandra González 66697e84b1
needless_match: do not pretend that return is not significant in an expression (#14757)
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
2025-05-19 22:12:43 +00:00
..
src needless_match: do not pretend that return is not significant in an expression (#14757) 2025-05-19 22:12:43 +00:00
Cargo.toml clippy_dev: remove the need for markers when bumping the version 2025-05-17 04:27:39 -04:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

This crate contains Clippy lints. For the main crate, check GitHub.