@@ -6,13 +6,128 @@ document.
6
6
7
7
## Unreleased / In Rust Nightly
8
8
9
- [ 4911ab1...master] ( https://github.com/rust-lang/rust-clippy/compare/4911ab1...master )
9
+ [ 3e41797...master] ( https://github.com/rust-lang/rust-clippy/compare/3e41797...master )
10
+
11
+ ## Rust 1.51
12
+
13
+ Current beta, release 2021-03-25
14
+
15
+ [ 4911ab1...3e41797] ( https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797 )
16
+
17
+ ### New Lints
18
+
19
+ * [ ` upper_case_acronyms ` ]
20
+ [ #6475 ] ( https://github.com/rust-lang/rust-clippy/pull/6475 )
21
+ * [ ` from_over_into ` ] [ #6476 ] ( https://github.com/rust-lang/rust-clippy/pull/6476 )
22
+ * [ ` case_sensitive_file_extension_comparisons ` ]
23
+ [ #6500 ] ( https://github.com/rust-lang/rust-clippy/pull/6500 )
24
+ * [ ` needless_question_mark ` ]
25
+ [ #6507 ] ( https://github.com/rust-lang/rust-clippy/pull/6507 )
26
+ * [ ` missing_panics_doc ` ]
27
+ [ #6523 ] ( https://github.com/rust-lang/rust-clippy/pull/6523 )
28
+ * [ ` redundant_slicing ` ]
29
+ [ #6528 ] ( https://github.com/rust-lang/rust-clippy/pull/6528 )
30
+ * [ ` vec_init_then_push ` ]
31
+ [ #6538 ] ( https://github.com/rust-lang/rust-clippy/pull/6538 )
32
+ * [ ` ptr_as_ptr ` ] [ #6542 ] ( https://github.com/rust-lang/rust-clippy/pull/6542 )
33
+ * [ ` collapsible_else_if ` ] (split out from ` collapsible_if ` )
34
+ [ #6544 ] ( https://github.com/rust-lang/rust-clippy/pull/6544 )
35
+ * [ ` inspect_for_each ` ] [ #6577 ] ( https://github.com/rust-lang/rust-clippy/pull/6577 )
36
+ * [ ` manual_filter_map ` ]
37
+ [ #6591 ] ( https://github.com/rust-lang/rust-clippy/pull/6591 )
38
+ * [ ` exhaustive_enums ` ]
39
+ [ #6617 ] ( https://github.com/rust-lang/rust-clippy/pull/6617 )
40
+ * [ ` exhaustive_structs ` ]
41
+ [ #6617 ] ( https://github.com/rust-lang/rust-clippy/pull/6617 )
42
+
43
+ ### Moves and Deprecations
44
+
45
+ * Replace [ ` find_map ` ] with [ ` manual_find_map ` ]
46
+ [ #6591 ] ( https://github.com/rust-lang/rust-clippy/pull/6591 )
47
+ * [ ` unknown_clippy_lints ` ] Now integrated in the ` unknown_lints ` rustc lint
48
+ [ #6653 ] ( https://github.com/rust-lang/rust-clippy/pull/6653 )
49
+
50
+ ### Enhancements
51
+
52
+ * [ ` ptr_arg ` ] Now also suggests to use ` &Path ` instead of ` &PathBuf `
53
+ [ #6506 ] ( https://github.com/rust-lang/rust-clippy/pull/6506 )
54
+ * [ ` cast_ptr_alignment ` ] Also lint when the ` pointer::cast ` method is used
55
+ [ #6557 ] ( https://github.com/rust-lang/rust-clippy/pull/6557 )
56
+ * [ ` collapsible_match ` ] Now also deals with ` & ` and ` * ` operators in the ` match `
57
+ scrutinee [ #6619 ] ( https://github.com/rust-lang/rust-clippy/pull/6619 )
58
+
59
+ ### False Positive Fixes
60
+
61
+ * [ ` similar_names ` ] Ignore underscore prefixed names
62
+ [ #6403 ] ( https://github.com/rust-lang/rust-clippy/pull/6403 )
63
+ * [ ` print_literal ` ] and [ ` write_literal ` ] No longer lint numeric literals
64
+ [ #6408 ] ( https://github.com/rust-lang/rust-clippy/pull/6408 )
65
+ * [ ` large_enum_variant ` ] No longer lints in external macros
66
+ [ #6485 ] ( https://github.com/rust-lang/rust-clippy/pull/6485 )
67
+ * [ ` empty_enum ` ] Only lint if ` never_type ` feature is enabled
68
+ [ #6513 ] ( https://github.com/rust-lang/rust-clippy/pull/6513 )
69
+ * [ ` field_reassign_with_default ` ] No longer lints in macros
70
+ [ #6553 ] ( https://github.com/rust-lang/rust-clippy/pull/6553 )
71
+ * [ ` size_of_in_element_count ` ] No longer lints when dividing by element size
72
+ [ #6578 ] ( https://github.com/rust-lang/rust-clippy/pull/6578 )
73
+ * [ ` needless_return ` ] No longer lints in macros
74
+ [ #6586 ] ( https://github.com/rust-lang/rust-clippy/pull/6586 )
75
+ * [ ` match_overlapping_arm ` ] No longer lint when first arm is completely included
76
+ in second arm [ #6603 ] ( https://github.com/rust-lang/rust-clippy/pull/6603 )
77
+ * [ ` doc_markdown ` ] Add ` WebGL ` to the default configuration as an allowed
78
+ identifier [ #6605 ] ( https://github.com/rust-lang/rust-clippy/pull/6605 )
79
+
80
+ ### Suggestion Fixes/Improvements
81
+
82
+ * [ ` field_reassign_with_default ` ] Don't expand macro in lint suggestion
83
+ [ #6531 ] ( https://github.com/rust-lang/rust-clippy/pull/6531 )
84
+ * [ ` match_like_matches_macro ` ] Strip references in suggestion
85
+ [ #6532 ] ( https://github.com/rust-lang/rust-clippy/pull/6532 )
86
+ * [ ` single_match ` ] Suggest ` if ` over ` if let ` when possible
87
+ [ #6574 ] ( https://github.com/rust-lang/rust-clippy/pull/6574 )
88
+ * [ ` ref_in_deref ` ] Use parentheses correctly in suggestion
89
+ [ #6609 ] ( https://github.com/rust-lang/rust-clippy/pull/6609 )
90
+ * [ ` stable_sort_primitive ` ] Clarify error message
91
+ [ #6611 ] ( https://github.com/rust-lang/rust-clippy/pull/6611 )
92
+
93
+ ### ICE Fixes
94
+
95
+ * [ ` zero_sized_map_values ` ]
96
+ [ #6582 ] ( https://github.com/rust-lang/rust-clippy/pull/6582 )
97
+
98
+ ### Documentation Improvements
99
+
100
+ * Improve search performance on the Clippy website and make it possible to
101
+ directly search for lints on the GitHub issue tracker
102
+ [ #6483 ] ( https://github.com/rust-lang/rust-clippy/pull/6483 )
103
+ * Clean up ` README.md ` by removing outdated paragraph
104
+ [ #6488 ] ( https://github.com/rust-lang/rust-clippy/pull/6488 )
105
+ * [ ` await_holding_refcell_ref ` ] and [ ` await_holding_lock ` ]
106
+ [ #6585 ] ( https://github.com/rust-lang/rust-clippy/pull/6585 )
107
+ * [ ` as_conversions ` ] [ #6608 ] ( https://github.com/rust-lang/rust-clippy/pull/6608 )
108
+
109
+ ### Others
110
+
111
+ * Clippy now has a [ Roadmap] for 2021. If you like to get involved in a bigger
112
+ project, take a look at the [ Roadmap project page] . All issues listed there
113
+ are actively mentored
114
+ [ #6462 ] ( https://github.com/rust-lang/rust-clippy/pull/6462 )
115
+ * The Clippy version number now corresponds to the Rust version number
116
+ [ #6526 ] ( https://github.com/rust-lang/rust-clippy/pull/6526 )
117
+ * Fix oversight which caused Clippy to lint deps in some environments, where
118
+ ` CLIPPY_TESTS=true ` was set somewhere
119
+ [ #6575 ] ( https://github.com/rust-lang/rust-clippy/pull/6575 )
120
+ * Add ` cargo dev-lintcheck ` tool to the Clippy Dev Tool
121
+ [ #6469 ] ( https://github.com/rust-lang/rust-clippy/pull/6469 )
122
+
123
+ [ Roadmap ] : https://github.com/rust-lang/rust-clippy/blob/master/doc/roadmap-2021.md
124
+ [ Roadmap project page ] : https://github.com/rust-lang/rust-clippy/projects/3
10
125
11
126
## Rust 1.50
12
127
13
- Current beta, release 2021-02-11
128
+ Current stable, released 2021-02-11
14
129
15
- [ b20d4c1...4911ab1 ] ( https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4911ab1 )
130
+ [ b20d4c1...4bd77a1 ] ( https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1 )
16
131
17
132
### New Lints
18
133
@@ -90,6 +205,8 @@ Current beta, release 2021-02-11
90
205
* [ ` declare_interior_mutable_const ` ] and [ ` borrow_interior_mutable_const ` ] :
91
206
Both now ignore enums with frozen variants
92
207
[ #6110 ] ( https://github.com/rust-lang/rust-clippy/pull/6110 )
208
+ * [ ` field_reassign_with_default ` ] No longer lint for private fields
209
+ [ #6537 ] ( https://github.com/rust-lang/rust-clippy/pull/6537 )
93
210
94
211
95
212
### Suggestion Fixes/Improvements
@@ -137,7 +254,7 @@ Current beta, release 2021-02-11
137
254
138
255
## Rust 1.49
139
256
140
- Current stable, released 2020-12-31
257
+ Released 2020-12-31
141
258
142
259
[ e636b88...b20d4c1] ( https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1 )
143
260
0 commit comments