rust/src
Matthias Krüger 126790999a new lint: Returning unit from closures expecting Ord
This lint catches cases where the last statement of a closure expecting
an instance of Ord has a trailing semi-colon. It compiles since the
closure ends up return () which also implements Ord but causes
unexpected results in cases such as sort_by_key.

Fixes #5080

reprise: rebase, update and address all concerns
2020-07-14 15:54:04 +02:00
..
lintlist new lint: Returning unit from closures expecting Ord 2020-07-14 15:54:04 +02:00
driver.rs fix match_like_matches_macro in clippy 2020-07-06 18:35:58 +02:00
main.rs Use lints in Clippy that are enabled in rustc bootstrap 2020-06-23 14:05:52 +02:00