This follows this discussion on Zulip
The aim of this issue is to track effort to reduce False Positive rate, and potentially categorize things into common patterns.
Obviously there are many more, and I will keep adding them as I go.
Could be closed(?)
Have PR
Macros
This category is concerned with FPs that involve macros, and their expansions.
May need discussion
Meta
@flip1995 wanted to automate issue tracking / impl issue finder for lint names in #5049. Perhaps it's needed because it's a lot of manual effort :D
@rustbot label +C-tracking-issue
This follows this discussion on Zulip
The aim of this issue is to track effort to reduce False Positive rate, and potentially categorize things into common patterns.
Obviously there are many more, and I will keep adding them as I go.
while_let_loopwhile_let_loopshould not be reported for empty match statements #10037get_unwrap| False positive?: get_unwrap #1725useless_if_let_seq| useless_if_let_seq should not warn for composite ifs #1089op_ref| op_ref false positive #2042match_same_armsmatch_same_arms: FP if arms have different comments #12044match_same_armsvs.&Any#1218while_immutable_condition| while_immutable_condition false positive with mut pointers #3548boxed_localwasm_bindgen#4351Could be closed(?)
Eqimplementations #2025 (@Jarcho)map_identity]: respect match ergonomics #11792)Have PR
float_cmp| float_cmp false positive: catching underflow #2834 |float_cmpchanges #11948 (@Jarcho)Macros
This category is concerned with FPs that involve macros, and their expansions.
iter_without_into_iter|iter_without_into_iterfires on code generated by macros from other crates #12037struct_field_names| Consider silencingstruct_field_namesfor structs withderive(Serialize/Deserialize)#12035redundant_closure_callredundant_closure_callwhen closures are passed to macros #12082unnecessary_mut_passed| False positives selecting system allocator #2373zero_ptr| False positives selecting system allocator #2373no_effect_underscore_binding|no_effect_underscore_binding: FP on field inside derive macros #12045May need discussion
eq_op| lint against using a binding whose name is prefixed with an underscore #488Meta
@flip1995 wanted to automate issue tracking / impl issue finder for lint names in #5049. Perhaps it's needed because it's a lot of manual effort :D
@rustbot label +C-tracking-issue