]> git.lizzy.rs Git - rust.git/blob - CHANGELOG.md
Add lint `suspicious_splitn`
[rust.git] / CHANGELOG.md
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4 See [Changelog Update](doc/changelog_update.md) if you want to update this
5 document.
6
7 ## Unreleased / In Rust Nightly
8
9 [7c7683c...master](https://github.com/rust-lang/rust-clippy/compare/7c7683c...master)
10
11 ## Rust 1.53
12
13 Current beta, release 2021-06-17
14
15 [6ed6f1e...7c7683c](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...7c7683c)
16
17 ### New Lints
18
19 * [`option_filter_map`]
20   [#6342](https://github.com/rust-lang/rust-clippy/pull/6342)
21 * [`branches_sharing_code`]
22   [#6463](https://github.com/rust-lang/rust-clippy/pull/6463)
23 * [`needless_for_each`]
24   [#6706](https://github.com/rust-lang/rust-clippy/pull/6706)
25 * [`if_then_some_else_none`]
26   [#6859](https://github.com/rust-lang/rust-clippy/pull/6859)
27 * [`non_octal_unix_permissions`]
28   [#7001](https://github.com/rust-lang/rust-clippy/pull/7001)
29 * [`unnecessary_self_imports`]
30   [#7072](https://github.com/rust-lang/rust-clippy/pull/7072)
31 * [`bool_assert_comparison`]
32   [#7083](https://github.com/rust-lang/rust-clippy/pull/7083)
33 * [`cloned_instead_of_copied`]
34   [#7098](https://github.com/rust-lang/rust-clippy/pull/7098)
35 * [`flat_map_option`]
36   [#7101](https://github.com/rust-lang/rust-clippy/pull/7101)
37
38 ### Moves and Deprecations
39
40 * Deprecate [`filter_map`] lint
41   [#7059](https://github.com/rust-lang/rust-clippy/pull/7059)
42 * Move [`transmute_ptr_to_ptr`] to `pedantic`
43   [#7102](https://github.com/rust-lang/rust-clippy/pull/7102)
44
45 ### Enhancements
46
47 * [`mem_replace_with_default`]: Also lint on common std constructors
48   [#6820](https://github.com/rust-lang/rust-clippy/pull/6820)
49 * [`wrong_self_convention`]: Also lint on `to_*_mut` methods
50   [#6828](https://github.com/rust-lang/rust-clippy/pull/6828)
51 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]:
52   [#6863](https://github.com/rust-lang/rust-clippy/pull/6863)
53     * Attempt to find a common path prefix in suggestion
54     * Don't lint on `Option` and `Result`
55     * Consider `Self` prefix
56 * [`explicit_deref_methods`]: Also lint on chained `deref` calls
57   [#6865](https://github.com/rust-lang/rust-clippy/pull/6865)
58 * [`or_fun_call`]: Also lint on `unsafe` blocks
59   [#6928](https://github.com/rust-lang/rust-clippy/pull/6928)
60 * [`vec_box`], [`linkedlist`], [`option_option`]: Also lint in `const` and
61   `static` items [#6938](https://github.com/rust-lang/rust-clippy/pull/6938)
62 * [`search_is_some`]: Also check for `is_none`
63   [#6942](https://github.com/rust-lang/rust-clippy/pull/6942)
64 * [`string_lit_as_bytes`]: Also lint on `into_bytes`
65   [#6959](https://github.com/rust-lang/rust-clippy/pull/6959)
66 * [`len_without_is_empty`]: Also lint if function signatures of `len` and
67   `is_empty` don't match
68   [#6980](https://github.com/rust-lang/rust-clippy/pull/6980)
69 * [`redundant_pattern_matching`]: Also lint if the pattern is a `&` pattern
70   [#6991](https://github.com/rust-lang/rust-clippy/pull/6991)
71 * [`clone_on_copy`]: Also lint on chained method calls taking `self` by value
72   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
73 * [`missing_panics_doc`]: Also lint on `assert_eq!` and `assert_ne!`
74   [#7029](https://github.com/rust-lang/rust-clippy/pull/7029)
75 * [`needless_return`]: Also lint in `async` functions
76   [#7067](https://github.com/rust-lang/rust-clippy/pull/7067)
77 * [`unused_io_amount`]: Also lint on expressions like `_.read().ok()?`
78   [#7100](https://github.com/rust-lang/rust-clippy/pull/7100)
79 * [`iter_cloned_collect`]: Also lint on large arrays, since const-generics are
80   now stable [#7138](https://github.com/rust-lang/rust-clippy/pull/7138)
81
82 ### False Positive Fixes
83
84 * [`upper_case_acronyms`]: No longer lints on public items
85   [#6805](https://github.com/rust-lang/rust-clippy/pull/6805)
86 * [`suspicious_map`]: No longer lints when side effects may occur inside the
87   `map` call [#6831](https://github.com/rust-lang/rust-clippy/pull/6831)
88 * [`manual_map`], [`manual_unwrap_or`]: No longer lints in `const` functions
89   [#6917](https://github.com/rust-lang/rust-clippy/pull/6917)
90 * [`wrong_self_convention`]: Now respects `Copy` types
91   [#6924](https://github.com/rust-lang/rust-clippy/pull/6924)
92 * [`needless_question_mark`]: No longer lints if the `?` and the `Some(..)` come
93   from different macro contexts [#6935](https://github.com/rust-lang/rust-clippy/pull/6935)
94 * [`map_entry`]: Better detect if the entry API can be used
95   [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
96 * [`or_fun_call`]: No longer lints on some `len` function calls
97   [#6950](https://github.com/rust-lang/rust-clippy/pull/6950)
98 * [`new_ret_no_self`]: No longer lints when `Self` is returned with different
99   generic arguments [#6952](https://github.com/rust-lang/rust-clippy/pull/6952)
100 * [`upper_case_acronyms`]: No longer lints on public items
101   [#6981](https://github.com/rust-lang/rust-clippy/pull/6981)
102 * [`explicit_into_iter_loop`]: Only lint when `into_iter` is an implementation
103   of `IntoIterator` [#6982](https://github.com/rust-lang/rust-clippy/pull/6982)
104 * [`expl_impl_clone_on_copy`]: Take generic constraints into account before
105   suggesting to use `derive` instead
106   [#6993](https://github.com/rust-lang/rust-clippy/pull/6993)
107 * [`missing_panics_doc`]: No longer lints when only debug-assertions are used
108   [#6996](https://github.com/rust-lang/rust-clippy/pull/6996)
109 * [`clone_on_copy`]: Only lint when using the `Clone` trait
110   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
111 * [`wrong_self_convention`]: No longer lints inside a trait implementation
112   [#7002](https://github.com/rust-lang/rust-clippy/pull/7002)
113 * [`redundant_clone`]: No longer lints when the cloned value is modified while
114   the clone is in use
115   [#7011](https://github.com/rust-lang/rust-clippy/pull/7011)
116 * [`same_item_push`]: No longer lints if the `Vec` is used in the loop body
117   [#7018](https://github.com/rust-lang/rust-clippy/pull/7018)
118 * [`cargo_common_metadata`]: Remove author requirement
119   [#7026](https://github.com/rust-lang/rust-clippy/pull/7026)
120 * [`panic_in_result_fn`]: No longer lints on `debug_assert` family
121   [#7060](https://github.com/rust-lang/rust-clippy/pull/7060)
122 * [`panic`]: No longer wrongfully lints on `debug_assert` with message
123   [#7063](https://github.com/rust-lang/rust-clippy/pull/7063)
124 * [`wrong_self_convention`]: No longer lints in trait implementations where no
125   `self` is involved [#7064](https://github.com/rust-lang/rust-clippy/pull/7064)
126 * [`missing_const_for_fn`]: No longer lints when unstable `const` function is
127   involved [#7076](https://github.com/rust-lang/rust-clippy/pull/7076)
128 * [`suspicious_else_formatting`]: Allow Allman style braces
129   [#7087](https://github.com/rust-lang/rust-clippy/pull/7087)
130 * [`inconsistent_struct_constructor`]: No longer lints in macros
131   [#7097](https://github.com/rust-lang/rust-clippy/pull/7097)
132 * [`single_component_path_imports`]: No longer lints on macro re-exports
133   [#7120](https://github.com/rust-lang/rust-clippy/pull/7120)
134
135 ### Suggestion Fixes/Improvements
136
137 * [`redundant_pattern_matching`]: Add a note when applying this lint would
138   change the drop order
139   [#6568](https://github.com/rust-lang/rust-clippy/pull/6568)
140 * [`write_literal`], [`print_literal`]: Add auto-applicable suggestion
141   [#6821](https://github.com/rust-lang/rust-clippy/pull/6821)
142 * [`manual_map`]: Fix suggestion for complex `if let ... else` chains
143   [#6856](https://github.com/rust-lang/rust-clippy/pull/6856)
144 * [`inconsistent_struct_constructor`]: Make lint description and message clearer
145   [#6892](https://github.com/rust-lang/rust-clippy/pull/6892)
146 * [`map_entry`]: Now suggests `or_insert`, `insert_with` or `match _.entry(_)`
147   as appropriate [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
148 * [`manual_flatten`]: Suggest to insert `copied` if necessary
149   [#6962](https://github.com/rust-lang/rust-clippy/pull/6962)
150 * [`redundant_slicing`]: Fix suggestion when a re-borrow might be required or
151   when the value is from a macro call
152   [#6975](https://github.com/rust-lang/rust-clippy/pull/6975)
153 * [`match_wildcard_for_single_variants`]: Fix suggestion for hidden variant
154   [#6988](https://github.com/rust-lang/rust-clippy/pull/6988)
155 * [`clone_on_copy`]: Correct suggestion when the cloned value is a macro call
156   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
157 * [`manual_map`]: Fix suggestion at the end of an if chain
158   [#7004](https://github.com/rust-lang/rust-clippy/pull/7004)
159 * Fix needless parenthesis output in multiple lint suggestions
160   [#7013](https://github.com/rust-lang/rust-clippy/pull/7013)
161 * [`needless_collect`]: Better explanation in the lint message
162   [#7020](https://github.com/rust-lang/rust-clippy/pull/7020)
163 * [`useless_vec`]: Now considers mutability
164   [#7036](https://github.com/rust-lang/rust-clippy/pull/7036)
165 * [`useless_format`]: Wrap the content in braces if necessary
166   [#7092](https://github.com/rust-lang/rust-clippy/pull/7092)
167 * [`single_match`]: Don't suggest an equality check for types which don't
168   implement `PartialEq`
169   [#7093](https://github.com/rust-lang/rust-clippy/pull/7093)
170 * [`from_over_into`]: Mention type in help message
171   [#7099](https://github.com/rust-lang/rust-clippy/pull/7099)
172 * [`manual_unwrap_or`]: Fix invalid code suggestion due to a macro call
173   [#7136](https://github.com/rust-lang/rust-clippy/pull/7136)
174
175 ### ICE Fixes
176
177 * [`macro_use_imports`]
178   [#7022](https://github.com/rust-lang/rust-clippy/pull/7022)
179 * [`missing_panics_doc`]
180   [#7034](https://github.com/rust-lang/rust-clippy/pull/7034)
181 * [`tabs_in_doc_comments`]
182   [#7039](https://github.com/rust-lang/rust-clippy/pull/7039)
183 * [`missing_const_for_fn`]
184   [#7128](https://github.com/rust-lang/rust-clippy/pull/7128)
185
186 ### Others
187
188 * [Clippy's lint
189   list](https://rust-lang.github.io/rust-clippy/master/index.html) now supports
190   themes [#7030](https://github.com/rust-lang/rust-clippy/pull/7030)
191 * Lints that were uplifted to `rustc` now mention the new `rustc` name in the
192   deprecation warning
193   [#7056](https://github.com/rust-lang/rust-clippy/pull/7056)
194
195 ## Rust 1.52
196
197 Current stable, released 2021-05-06
198
199 [3e41797...6ed6f1e](https://github.com/rust-lang/rust-clippy/compare/3e41797...6ed6f1e)
200
201 ### New Lints
202
203 * [`from_str_radix_10`]
204   [#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
205 * [`implicit_clone`]
206   [#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
207 * [`semicolon_if_nothing_returned`]
208   [#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
209 * [`manual_flatten`]
210   [#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
211 * [`inconsistent_struct_constructor`]
212   [#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
213 * [`iter_count`]
214   [#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
215 * [`default_numeric_fallback`]
216   [#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
217 * [`bytes_nth`]
218   [#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
219 * [`filter_map_identity`]
220   [#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
221 * [`manual_map`]
222   [#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
223
224 ### Moves and Deprecations
225
226 * Moved [`upper_case_acronyms`] to `pedantic`
227   [#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
228 * Moved [`manual_map`] to `nursery`
229   [#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
230 * Moved [`unnecessary_wraps`] to `pedantic`
231   [#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
232 * Moved [`trivial_regex`] to `nursery`
233   [#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
234 * Moved [`naive_bytecount`] to `pedantic`
235   [#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
236 * Moved [`upper_case_acronyms`] to `style`
237   [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
238 * Moved [`manual_map`] to `style`
239   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
240
241 ### Enhancements
242
243 * [`disallowed_method`]: Now supports functions in addition to methods
244   [#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
245 * [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
246   trigger the lint if there is more than one uppercase character next to each other
247   [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
248 * [`collapsible_match`]: Now supports block comparison with different value names
249   [#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
250 * [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
251   [#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
252 * Improved value usage detection in closures
253   [#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
254
255 ### False Positive Fixes
256
257 * [`use_self`]: No longer lints in macros
258   [#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
259 * [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
260   [#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
261 * [`missing_inline_in_public_items`]: No longer lints for procedural macros
262   [#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
263 * [`inherent_to_string`]: No longer lints on functions with function generics
264   [#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
265 * [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
266   [#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
267 * [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
268   [#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
269 * [`collapsible_if`]: No longer lints on if statements with attributes
270   [#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
271 * [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
272   [#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
273 * [`redundant_closure`]: Now ignores macros
274   [#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
275 * [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
276   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
277 * [`vec_init_then_push`]: Fixed false positives for loops and if statements
278   [#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
279 * [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
280   the `len` method as well as the type definition.
281   [#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
282 * [`let_underscore_drop`]: Only lints on types which implement `Drop`
283   [#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
284 * [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
285   [#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
286 * [`cargo_common_metadata`]: No longer lints if
287   [`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
288   is defined in the manifest
289   [#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
290
291 ### Suggestion Fixes/Improvements
292
293 * [`collapsible_match`]: Fixed lint message capitalization
294   [#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
295 * [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
296   [#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
297 * [`manual_map`]: No longer expands macros in the suggestions
298   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
299 * Aligned Clippy's lint messages with the rustc dev guide
300   [#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
301
302 ### ICE Fixes
303
304 * [`zero_sized_map_values`]
305   [#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
306
307 ### Documentation Improvements
308
309 * [`useless_format`]: Improved the documentation example
310   [#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
311 * Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
312   [#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
313
314 ### Others
315 * Running `cargo clippy` after `cargo check` now works as expected
316   (`cargo clippy` and `cargo check` no longer shares the same build cache)
317   [#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
318 * Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
319   [#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
320 * Extracted Clippy's `utils` module into the new `clippy_utils` crate
321   [#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
322 * Clippy lintcheck tool improvements
323   [#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
324   [#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
325   [#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
326   [#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
327   [#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
328   [#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
329
330 ## Rust 1.51
331
332 Released 2021-03-25
333
334 [4911ab1...3e41797](https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797)
335
336 ### New Lints
337
338 * [`upper_case_acronyms`]
339   [#6475](https://github.com/rust-lang/rust-clippy/pull/6475)
340 * [`from_over_into`] [#6476](https://github.com/rust-lang/rust-clippy/pull/6476)
341 * [`case_sensitive_file_extension_comparisons`]
342   [#6500](https://github.com/rust-lang/rust-clippy/pull/6500)
343 * [`needless_question_mark`]
344   [#6507](https://github.com/rust-lang/rust-clippy/pull/6507)
345 * [`missing_panics_doc`]
346   [#6523](https://github.com/rust-lang/rust-clippy/pull/6523)
347 * [`redundant_slicing`]
348   [#6528](https://github.com/rust-lang/rust-clippy/pull/6528)
349 * [`vec_init_then_push`]
350   [#6538](https://github.com/rust-lang/rust-clippy/pull/6538)
351 * [`ptr_as_ptr`] [#6542](https://github.com/rust-lang/rust-clippy/pull/6542)
352 * [`collapsible_else_if`] (split out from `collapsible_if`)
353   [#6544](https://github.com/rust-lang/rust-clippy/pull/6544)
354 * [`inspect_for_each`] [#6577](https://github.com/rust-lang/rust-clippy/pull/6577)
355 * [`manual_filter_map`]
356   [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
357 * [`exhaustive_enums`]
358   [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
359 * [`exhaustive_structs`]
360   [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
361
362 ### Moves and Deprecations
363
364 * Replace [`find_map`] with [`manual_find_map`]
365   [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
366 * `unknown_clippy_lints` Now integrated in the `unknown_lints` rustc lint
367   [#6653](https://github.com/rust-lang/rust-clippy/pull/6653)
368
369 ### Enhancements
370
371 * [`ptr_arg`] Now also suggests to use `&Path` instead of `&PathBuf`
372   [#6506](https://github.com/rust-lang/rust-clippy/pull/6506)
373 * [`cast_ptr_alignment`] Also lint when the `pointer::cast` method is used
374   [#6557](https://github.com/rust-lang/rust-clippy/pull/6557)
375 * [`collapsible_match`] Now also deals with `&` and `*` operators in the `match`
376   scrutinee [#6619](https://github.com/rust-lang/rust-clippy/pull/6619)
377
378 ### False Positive Fixes
379
380 * [`similar_names`] Ignore underscore prefixed names
381   [#6403](https://github.com/rust-lang/rust-clippy/pull/6403)
382 * [`print_literal`] and [`write_literal`] No longer lint numeric literals
383   [#6408](https://github.com/rust-lang/rust-clippy/pull/6408)
384 * [`large_enum_variant`] No longer lints in external macros
385   [#6485](https://github.com/rust-lang/rust-clippy/pull/6485)
386 * [`empty_enum`] Only lint if `never_type` feature is enabled
387   [#6513](https://github.com/rust-lang/rust-clippy/pull/6513)
388 * [`field_reassign_with_default`] No longer lints in macros
389   [#6553](https://github.com/rust-lang/rust-clippy/pull/6553)
390 * [`size_of_in_element_count`] No longer lints when dividing by element size
391   [#6578](https://github.com/rust-lang/rust-clippy/pull/6578)
392 * [`needless_return`] No longer lints in macros
393   [#6586](https://github.com/rust-lang/rust-clippy/pull/6586)
394 * [`match_overlapping_arm`] No longer lint when first arm is completely included
395   in second arm [#6603](https://github.com/rust-lang/rust-clippy/pull/6603)
396 * [`doc_markdown`] Add `WebGL` to the default configuration as an allowed
397   identifier [#6605](https://github.com/rust-lang/rust-clippy/pull/6605)
398
399 ### Suggestion Fixes/Improvements
400
401 * [`field_reassign_with_default`] Don't expand macro in lint suggestion
402   [#6531](https://github.com/rust-lang/rust-clippy/pull/6531)
403 * [`match_like_matches_macro`] Strip references in suggestion
404   [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
405 * [`single_match`] Suggest `if` over `if let` when possible
406   [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
407 * [`ref_in_deref`] Use parentheses correctly in suggestion
408   [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
409 * [`stable_sort_primitive`] Clarify error message
410   [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
411
412 ### ICE Fixes
413
414 * [`zero_sized_map_values`]
415   [#6582](https://github.com/rust-lang/rust-clippy/pull/6582)
416
417 ### Documentation Improvements
418
419 * Improve search performance on the Clippy website and make it possible to
420   directly search for lints on the GitHub issue tracker
421   [#6483](https://github.com/rust-lang/rust-clippy/pull/6483)
422 * Clean up `README.md` by removing outdated paragraph
423   [#6488](https://github.com/rust-lang/rust-clippy/pull/6488)
424 * [`await_holding_refcell_ref`] and [`await_holding_lock`]
425   [#6585](https://github.com/rust-lang/rust-clippy/pull/6585)
426 * [`as_conversions`] [#6608](https://github.com/rust-lang/rust-clippy/pull/6608)
427
428 ### Others
429
430 * Clippy now has a [Roadmap] for 2021. If you like to get involved in a bigger
431   project, take a look at the [Roadmap project page]. All issues listed there
432   are actively mentored
433   [#6462](https://github.com/rust-lang/rust-clippy/pull/6462)
434 * The Clippy version number now corresponds to the Rust version number
435   [#6526](https://github.com/rust-lang/rust-clippy/pull/6526)
436 * Fix oversight which caused Clippy to lint deps in some environments, where
437   `CLIPPY_TESTS=true` was set somewhere
438   [#6575](https://github.com/rust-lang/rust-clippy/pull/6575)
439 * Add `cargo dev-lintcheck` tool to the Clippy Dev Tool
440   [#6469](https://github.com/rust-lang/rust-clippy/pull/6469)
441
442 [Roadmap]: https://github.com/rust-lang/rust-clippy/blob/master/doc/roadmap-2021.md
443 [Roadmap project page]: https://github.com/rust-lang/rust-clippy/projects/3
444
445 ## Rust 1.50
446
447 Released 2021-02-11
448
449 [b20d4c1...4bd77a1](https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1)
450
451 ### New Lints
452
453 * [`suspicious_operation_groupings`] [#6086](https://github.com/rust-lang/rust-clippy/pull/6086)
454 * [`size_of_in_element_count`] [#6394](https://github.com/rust-lang/rust-clippy/pull/6394)
455 * [`unnecessary_wraps`] [#6070](https://github.com/rust-lang/rust-clippy/pull/6070)
456 * [`let_underscore_drop`] [#6305](https://github.com/rust-lang/rust-clippy/pull/6305)
457 * [`collapsible_match`] [#6402](https://github.com/rust-lang/rust-clippy/pull/6402)
458 * [`redundant_else`] [#6330](https://github.com/rust-lang/rust-clippy/pull/6330)
459 * [`zero_sized_map_values`] [#6218](https://github.com/rust-lang/rust-clippy/pull/6218)
460 * [`print_stderr`] [#6367](https://github.com/rust-lang/rust-clippy/pull/6367)
461 * [`string_from_utf8_as_bytes`] [#6134](https://github.com/rust-lang/rust-clippy/pull/6134)
462
463 ### Moves and Deprecations
464
465 * Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
466   as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
467 * Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panic`
468   [#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
469 * Move [`map_err_ignore`] to `restriction`
470   [#6416](https://github.com/rust-lang/rust-clippy/pull/6416)
471 * Move [`await_holding_refcell_ref`] to `pedantic`
472   [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
473 * Move [`await_holding_lock`] to `pedantic`
474   [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
475
476 ### Enhancements
477
478 * Add the `unreadable-literal-lint-fractions` configuration to disable
479   the `unreadable_literal` lint for fractions
480   [#6421](https://github.com/rust-lang/rust-clippy/pull/6421)
481 * [`clone_on_copy`]: Now shows the type in the lint message
482   [#6443](https://github.com/rust-lang/rust-clippy/pull/6443)
483 * [`redundant_pattern_matching`]: Now also lints on `std::task::Poll`
484   [#6339](https://github.com/rust-lang/rust-clippy/pull/6339)
485 * [`redundant_pattern_matching`]: Additionally also lints on `std::net::IpAddr`
486   [#6377](https://github.com/rust-lang/rust-clippy/pull/6377)
487 * [`search_is_some`]: Now suggests `contains` instead of `find(foo).is_some()`
488   [#6119](https://github.com/rust-lang/rust-clippy/pull/6119)
489 * [`clone_double_ref`]: Now prints the reference type in the lint message
490   [#6442](https://github.com/rust-lang/rust-clippy/pull/6442)
491 * [`modulo_one`]: Now also lints on -1.
492   [#6360](https://github.com/rust-lang/rust-clippy/pull/6360)
493 * [`empty_loop`]: Now lints no_std crates, too
494   [#6205](https://github.com/rust-lang/rust-clippy/pull/6205)
495 * [`or_fun_call`]: Now also lints when indexing `HashMap` or `BTreeMap`
496   [#6267](https://github.com/rust-lang/rust-clippy/pull/6267)
497 * [`wrong_self_convention`]: Now also lints in trait definitions
498   [#6316](https://github.com/rust-lang/rust-clippy/pull/6316)
499 * [`needless_borrow`]: Print the type in the lint message
500   [#6449](https://github.com/rust-lang/rust-clippy/pull/6449)
501
502 [msrv_readme]: https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
503
504 ### False Positive Fixes
505
506 * [`manual_range_contains`]: No longer lints in `const fn`
507   [#6382](https://github.com/rust-lang/rust-clippy/pull/6382)
508 * [`unnecessary_lazy_evaluations`]: No longer lints if closure argument is used
509   [#6370](https://github.com/rust-lang/rust-clippy/pull/6370)
510 * [`match_single_binding`]: Now ignores cases with `#[cfg()]` macros
511   [#6435](https://github.com/rust-lang/rust-clippy/pull/6435)
512 * [`match_like_matches_macro`]: No longer lints on arms with attributes
513   [#6290](https://github.com/rust-lang/rust-clippy/pull/6290)
514 * [`map_clone`]: No longer lints with deref and clone
515   [#6269](https://github.com/rust-lang/rust-clippy/pull/6269)
516 * [`map_clone`]: No longer lints in the case of &mut
517   [#6301](https://github.com/rust-lang/rust-clippy/pull/6301)
518 * [`needless_update`]: Now ignores `non_exhaustive` structs
519   [#6464](https://github.com/rust-lang/rust-clippy/pull/6464)
520 * [`needless_collect`]: No longer lints when a collect is needed multiple times
521   [#6313](https://github.com/rust-lang/rust-clippy/pull/6313)
522 * [`unnecessary_cast`] No longer lints cfg-dependent types
523   [#6369](https://github.com/rust-lang/rust-clippy/pull/6369)
524 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]:
525   Both now ignore enums with frozen variants
526   [#6110](https://github.com/rust-lang/rust-clippy/pull/6110)
527 * [`field_reassign_with_default`] No longer lint for private fields
528   [#6537](https://github.com/rust-lang/rust-clippy/pull/6537)
529
530
531 ### Suggestion Fixes/Improvements
532
533 * [`vec_box`]: Provide correct type scope suggestion
534   [#6271](https://github.com/rust-lang/rust-clippy/pull/6271)
535 * [`manual_range_contains`]: Give correct suggestion when using floats
536   [#6320](https://github.com/rust-lang/rust-clippy/pull/6320)
537 * [`unnecessary_lazy_evaluations`]: Don't always mark suggestion as MachineApplicable
538   [#6272](https://github.com/rust-lang/rust-clippy/pull/6272)
539 * [`manual_async_fn`]: Improve suggestion formatting
540   [#6294](https://github.com/rust-lang/rust-clippy/pull/6294)
541 * [`unnecessary_cast`]: Fix incorrectly formatted float literal suggestion
542   [#6362](https://github.com/rust-lang/rust-clippy/pull/6362)
543
544 ### ICE Fixes
545
546 * Fix a crash in [`from_iter_instead_of_collect`]
547   [#6304](https://github.com/rust-lang/rust-clippy/pull/6304)
548 * Fix a silent crash when parsing doc comments in [`needless_doctest_main`]
549   [#6458](https://github.com/rust-lang/rust-clippy/pull/6458)
550
551 ### Documentation Improvements
552
553 * The lint website search has been improved ([#6477](https://github.com/rust-lang/rust-clippy/pull/6477)):
554   * Searching for lints with dashes and spaces is possible now. For example
555     `missing-errors-doc` and `missing errors doc` are now valid aliases for lint names
556   * Improved fuzzy search in lint descriptions
557 * Various README improvements
558   [#6287](https://github.com/rust-lang/rust-clippy/pull/6287)
559 * Add known problems to [`comparison_chain`] documentation
560   [#6390](https://github.com/rust-lang/rust-clippy/pull/6390)
561 * Fix example used in [`cargo_common_metadata`]
562   [#6293](https://github.com/rust-lang/rust-clippy/pull/6293)
563 * Improve [`map_clone`] documentation
564   [#6340](https://github.com/rust-lang/rust-clippy/pull/6340)
565
566 ### Others
567
568 * You can now tell Clippy about the MSRV your project supports. Please refer to
569   the specific README section to learn more about MSRV support [here][msrv_readme]
570   [#6201](https://github.com/rust-lang/rust-clippy/pull/6201)
571 * Add `--no-deps` option to avoid running on path dependencies in workspaces
572   [#6188](https://github.com/rust-lang/rust-clippy/pull/6188)
573
574 ## Rust 1.49
575
576 Released 2020-12-31
577
578 [e636b88...b20d4c1](https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1)
579
580 ### New Lints
581
582 * [`field_reassign_with_default`] [#5911](https://github.com/rust-lang/rust-clippy/pull/5911)
583 * [`await_holding_refcell_ref`] [#6029](https://github.com/rust-lang/rust-clippy/pull/6029)
584 * [`disallowed_method`] [#6081](https://github.com/rust-lang/rust-clippy/pull/6081)
585 * [`inline_asm_x86_att_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
586 * [`inline_asm_x86_intel_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
587 * [`from_iter_instead_of_collect`] [#6101](https://github.com/rust-lang/rust-clippy/pull/6101)
588 * [`mut_mutex_lock`] [#6103](https://github.com/rust-lang/rust-clippy/pull/6103)
589 * [`single_element_loop`] [#6109](https://github.com/rust-lang/rust-clippy/pull/6109)
590 * [`manual_unwrap_or`] [#6123](https://github.com/rust-lang/rust-clippy/pull/6123)
591 * [`large_types_passed_by_value`] [#6135](https://github.com/rust-lang/rust-clippy/pull/6135)
592 * [`result_unit_err`] [#6157](https://github.com/rust-lang/rust-clippy/pull/6157)
593 * [`ref_option_ref`] [#6165](https://github.com/rust-lang/rust-clippy/pull/6165)
594 * [`manual_range_contains`] [#6177](https://github.com/rust-lang/rust-clippy/pull/6177)
595 * [`unusual_byte_groupings`] [#6183](https://github.com/rust-lang/rust-clippy/pull/6183)
596 * [`comparison_to_empty`] [#6226](https://github.com/rust-lang/rust-clippy/pull/6226)
597 * [`map_collect_result_unit`] [#6227](https://github.com/rust-lang/rust-clippy/pull/6227)
598 * [`manual_ok_or`] [#6233](https://github.com/rust-lang/rust-clippy/pull/6233)
599
600 ### Moves and Deprecations
601
602 * Rename `single_char_push_str` to [`single_char_add_str`]
603   [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
604 * Rename `zero_width_space` to [`invisible_characters`]
605   [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
606 * Deprecate `drop_bounds` (uplifted)
607   [#6111](https://github.com/rust-lang/rust-clippy/pull/6111)
608 * Move [`string_lit_as_bytes`] to `nursery`
609   [#6117](https://github.com/rust-lang/rust-clippy/pull/6117)
610 * Move [`rc_buffer`] to `restriction`
611   [#6128](https://github.com/rust-lang/rust-clippy/pull/6128)
612
613 ### Enhancements
614
615 * [`manual_memcpy`]: Also lint when there are loop counters (and produce a
616   reliable suggestion)
617   [#5727](https://github.com/rust-lang/rust-clippy/pull/5727)
618 * [`single_char_add_str`]: Also lint on `String::insert_str`
619   [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
620 * [`invisible_characters`]: Also lint the characters `\u{AD}` and `\u{2060}`
621   [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
622 * [`eq_op`]: Also lint on the `assert_*!` macro family
623   [#6167](https://github.com/rust-lang/rust-clippy/pull/6167)
624 * [`items_after_statements`]: Also lint in local macro expansions
625   [#6176](https://github.com/rust-lang/rust-clippy/pull/6176)
626 * [`unnecessary_cast`]: Also lint casts on integer and float literals
627   [#6187](https://github.com/rust-lang/rust-clippy/pull/6187)
628 * [`manual_unwrap_or`]: Also lint `Result::unwrap_or`
629   [#6190](https://github.com/rust-lang/rust-clippy/pull/6190)
630 * [`match_like_matches_macro`]: Also lint when `match` has more than two arms
631   [#6216](https://github.com/rust-lang/rust-clippy/pull/6216)
632 * [`integer_arithmetic`]: Better handle `/` an `%` operators
633   [#6229](https://github.com/rust-lang/rust-clippy/pull/6229)
634
635 ### False Positive Fixes
636
637 * [`needless_lifetimes`]: Bail out if the function has a `where` clause with the
638   lifetime [#5978](https://github.com/rust-lang/rust-clippy/pull/5978)
639 * [`explicit_counter_loop`]: No longer lints, when loop counter is used after it
640   is incremented [#6076](https://github.com/rust-lang/rust-clippy/pull/6076)
641 * [`or_fun_call`]: Revert changes addressing the handling of `const fn`
642   [#6077](https://github.com/rust-lang/rust-clippy/pull/6077)
643 * [`needless_range_loop`]: No longer lints, when the iterable is used in the
644   range [#6102](https://github.com/rust-lang/rust-clippy/pull/6102)
645 * [`inconsistent_digit_grouping`]: Fix bug when using floating point exponent
646   [#6104](https://github.com/rust-lang/rust-clippy/pull/6104)
647 * [`mistyped_literal_suffixes`]: No longer lints on the fractional part of a
648   float (e.g. `713.32_64`)
649   [#6114](https://github.com/rust-lang/rust-clippy/pull/6114)
650 * [`invalid_regex`]: No longer lint on unicode characters within `bytes::Regex`
651   [#6132](https://github.com/rust-lang/rust-clippy/pull/6132)
652 * [`boxed_local`]: No longer lints on `extern fn` arguments
653   [#6133](https://github.com/rust-lang/rust-clippy/pull/6133)
654 * [`needless_lifetimes`]: Fix regression, where lifetime is used in `where`
655   clause [#6198](https://github.com/rust-lang/rust-clippy/pull/6198)
656
657 ### Suggestion Fixes/Improvements
658
659 * [`unnecessary_sort_by`]: Avoid dereferencing the suggested closure parameter
660   [#6078](https://github.com/rust-lang/rust-clippy/pull/6078)
661 * [`needless_arbitrary_self_type`]: Correctly handle expanded code
662   [#6093](https://github.com/rust-lang/rust-clippy/pull/6093)
663 * [`useless_format`]: Preserve raw strings in suggestion
664   [#6151](https://github.com/rust-lang/rust-clippy/pull/6151)
665 * [`empty_loop`]: Suggest alternatives
666   [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
667 * [`borrowed_box`]: Correctly add parentheses in suggestion
668   [#6200](https://github.com/rust-lang/rust-clippy/pull/6200)
669 * [`unused_unit`]: Improve suggestion formatting
670   [#6247](https://github.com/rust-lang/rust-clippy/pull/6247)
671
672 ### Documentation Improvements
673
674 * Some doc improvements:
675     * [`rc_buffer`] [#6090](https://github.com/rust-lang/rust-clippy/pull/6090)
676     * [`empty_loop`] [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
677 * [`doc_markdown`]: Document problematic link text style
678   [#6107](https://github.com/rust-lang/rust-clippy/pull/6107)
679
680 ## Rust 1.48
681
682 Released 2020-11-19
683
684 [09bd400...e636b88](https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88)
685
686 ### New lints
687
688 * [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
689 * [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
690 * [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
691 * [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
692 * [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
693 * [`to_string_in_display`] [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
694 * `single_char_push_str` [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
695
696 ### Moves and Deprecations
697
698 * Downgrade [`verbose_bit_mask`] to pedantic
699   [#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
700
701 ### Enhancements
702
703 * Extend [`precedence`] to handle chains of methods combined with unary negation
704   [#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
705 * [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
706   [#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
707 * [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
708   [#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
709 * [`invalid_atomic_ordering`]: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
710   [#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
711 * Avoid [`redundant_pattern_matching`] triggering in macros
712   [#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
713 * [`option_if_let_else`]: distinguish pure from impure `else` expressions
714   [#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
715 * [`needless_doctest_main`]: parse doctests instead of using textual search
716   [#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
717 * [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
718   [#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
719 * Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
720   [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
721 * [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
722   [#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
723
724 ### False Positive Fixes
725
726 * [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
727   [#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
728 * [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
729   [#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
730 * [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
731   [#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
732 * Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
733   [#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
734 * [`doc_markdown`]: allow using "GraphQL" without backticks
735   [#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
736 * [`to_string_in_display`]: avoid linting when calling `to_string()` on anything that is not `self`
737   [#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
738 * [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
739   [#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
740 * [`should_implement_trait`]: ignore methods with lifetime parameters
741   [#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
742 * [`needless_return`]: avoid linting if a temporary borrows a local variable
743   [#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
744 * Restrict [`unnecessary_sort_by`] to non-reference, Copy types
745   [#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
746 * Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
747   [#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
748 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
749   [#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
750
751 ### Suggestion Fixes/Improvements
752
753 * [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
754   [#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
755 * [`useless_conversion`]: show the type in the error message
756   [#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
757 * [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
758   [#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
759 * [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
760   [#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
761 * [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
762   [#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
763 * [`collapsible_if`]: don't use expanded code in the suggestion
764   [#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
765 * Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
766   [#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
767 * [`unit_arg`]: improve the readability of the suggestion
768   [#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
769 * [`stable_sort_primitive`]: print the type that is being sorted in the lint message
770   [#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
771 * Show line count and max lines in [`too_many_lines`] lint message
772   [#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
773 * Keep parentheses in the suggestion of [`useless_conversion`] where applicable
774   [#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
775 * [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
776   [#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
777 * [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
778   [#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
779 * Make lint messages adhere to rustc dev guide conventions
780   [#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
781
782 ### ICE Fixes
783
784 * Fix ICE in [`repeat_once`]
785   [#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
786
787 ### Documentation Improvements
788
789 * [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
790   [#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
791 * [`unnecessary_mut_passed`]: fix typo
792   [#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
793 * Add example of false positive to [`ptr_arg`] docs.
794   [#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
795 * [`box_vec`], [`vec_box`] and [`borrowed_box`]: add link to the documentation of `Box`
796   [#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
797
798 ## Rust 1.47
799
800 Released 2020-10-08
801
802 [c2c07fa...09bd400](https://github.com/rust-lang/rust-clippy/compare/c2c07fa...09bd400)
803
804 ### New lints
805
806 * [`derive_ord_xor_partial_ord`] [#5848](https://github.com/rust-lang/rust-clippy/pull/5848)
807 * [`trait_duplication_in_bounds`] [#5852](https://github.com/rust-lang/rust-clippy/pull/5852)
808 * [`map_identity`] [#5694](https://github.com/rust-lang/rust-clippy/pull/5694)
809 * [`unit_return_expecting_ord`] [#5737](https://github.com/rust-lang/rust-clippy/pull/5737)
810 * [`pattern_type_mismatch`] [#4841](https://github.com/rust-lang/rust-clippy/pull/4841)
811 * [`repeat_once`] [#5773](https://github.com/rust-lang/rust-clippy/pull/5773)
812 * [`same_item_push`] [#5825](https://github.com/rust-lang/rust-clippy/pull/5825)
813 * [`needless_arbitrary_self_type`] [#5869](https://github.com/rust-lang/rust-clippy/pull/5869)
814 * [`match_like_matches_macro`] [#5769](https://github.com/rust-lang/rust-clippy/pull/5769)
815 * [`stable_sort_primitive`] [#5809](https://github.com/rust-lang/rust-clippy/pull/5809)
816 * [`blanket_clippy_restriction_lints`] [#5750](https://github.com/rust-lang/rust-clippy/pull/5750)
817 * [`option_if_let_else`] [#5301](https://github.com/rust-lang/rust-clippy/pull/5301)
818
819 ### Moves and Deprecations
820
821 * Deprecate [`regex_macro`] lint
822   [#5760](https://github.com/rust-lang/rust-clippy/pull/5760)
823 * Move [`range_minus_one`] to `pedantic`
824   [#5752](https://github.com/rust-lang/rust-clippy/pull/5752)
825
826 ### Enhancements
827
828 * Improve [`needless_collect`] by catching `collect` calls followed by `iter` or `into_iter` calls
829   [#5837](https://github.com/rust-lang/rust-clippy/pull/5837)
830 * [`panic`], [`todo`], [`unimplemented`] and [`unreachable`] now detect calls with formatting
831   [#5811](https://github.com/rust-lang/rust-clippy/pull/5811)
832 * Detect more cases of [`suboptimal_flops`] and [`imprecise_flops`]
833   [#5443](https://github.com/rust-lang/rust-clippy/pull/5443)
834 * Handle asymmetrical implementations of `PartialEq` in [`cmp_owned`]
835   [#5701](https://github.com/rust-lang/rust-clippy/pull/5701)
836 * Make it possible to allow [`unsafe_derive_deserialize`]
837   [#5870](https://github.com/rust-lang/rust-clippy/pull/5870)
838 * Catch `ord.min(a).max(b)` where a < b in [`min_max`]
839   [#5871](https://github.com/rust-lang/rust-clippy/pull/5871)
840 * Make [`clone_on_copy`] suggestion machine applicable
841   [#5745](https://github.com/rust-lang/rust-clippy/pull/5745)
842 * Enable [`len_zero`] on ranges now that `is_empty` is stable on them
843   [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
844
845 ### False Positive Fixes
846
847 * Avoid triggering [`or_fun_call`] with const fns that take no arguments
848   [#5889](https://github.com/rust-lang/rust-clippy/pull/5889)
849 * Fix [`redundant_closure_call`] false positive for closures that have multiple calls
850   [#5800](https://github.com/rust-lang/rust-clippy/pull/5800)
851 * Don't lint cases involving `ManuallyDrop` in [`redundant_clone`]
852   [#5824](https://github.com/rust-lang/rust-clippy/pull/5824)
853 * Treat a single expression the same as a single statement in the 2nd arm of a match in [`single_match_else`]
854   [#5771](https://github.com/rust-lang/rust-clippy/pull/5771)
855 * Don't trigger [`unnested_or_patterns`] if the feature `or_patterns` is not enabled
856   [#5758](https://github.com/rust-lang/rust-clippy/pull/5758)
857 * Avoid linting if key borrows in [`unnecessary_sort_by`]
858   [#5756](https://github.com/rust-lang/rust-clippy/pull/5756)
859 * Consider `Try` impl for `Poll` when generating suggestions in [`try_err`]
860   [#5857](https://github.com/rust-lang/rust-clippy/pull/5857)
861 * Take input lifetimes into account in `manual_async_fn`
862   [#5859](https://github.com/rust-lang/rust-clippy/pull/5859)
863 * Fix multiple false positives in [`type_repetition_in_bounds`] and add a configuration option
864   [#5761](https://github.com/rust-lang/rust-clippy/pull/5761)
865 * Limit the [`suspicious_arithmetic_impl`] lint to one binary operation
866   [#5820](https://github.com/rust-lang/rust-clippy/pull/5820)
867
868 ### Suggestion Fixes/Improvements
869
870 * Improve readability of [`shadow_unrelated`] suggestion by truncating the RHS snippet
871   [#5788](https://github.com/rust-lang/rust-clippy/pull/5788)
872 * Suggest `filter_map` instead of `flat_map` when mapping to `Option` in [`map_flatten`]
873   [#5846](https://github.com/rust-lang/rust-clippy/pull/5846)
874 * Ensure suggestion is shown correctly for long method call chains in [`iter_nth_zero`]
875   [#5793](https://github.com/rust-lang/rust-clippy/pull/5793)
876 * Drop borrow operator in suggestions of [`redundant_pattern_matching`]
877   [#5815](https://github.com/rust-lang/rust-clippy/pull/5815)
878 * Add suggestion for [`iter_skip_next`]
879   [#5843](https://github.com/rust-lang/rust-clippy/pull/5843)
880 * Improve [`collapsible_if`] fix suggestion
881   [#5732](https://github.com/rust-lang/rust-clippy/pull/5732)
882
883 ### ICE Fixes
884
885 * Fix ICE caused by [`needless_collect`]
886   [#5877](https://github.com/rust-lang/rust-clippy/pull/5877)
887 * Fix ICE caused by [`unnested_or_patterns`]
888   [#5784](https://github.com/rust-lang/rust-clippy/pull/5784)
889
890 ### Documentation Improvements
891
892 * Fix grammar of [`await_holding_lock`] documentation
893   [#5748](https://github.com/rust-lang/rust-clippy/pull/5748)
894
895 ### Others
896
897 * Make lints adhere to the rustc dev guide
898   [#5888](https://github.com/rust-lang/rust-clippy/pull/5888)
899
900 ## Rust 1.46
901
902 Released 2020-08-27
903
904 [7ea7cd1...c2c07fa](https://github.com/rust-lang/rust-clippy/compare/7ea7cd1...c2c07fa)
905
906 ### New lints
907
908 * [`unnested_or_patterns`] [#5378](https://github.com/rust-lang/rust-clippy/pull/5378)
909 * [`iter_next_slice`] [#5597](https://github.com/rust-lang/rust-clippy/pull/5597)
910 * [`unnecessary_sort_by`] [#5623](https://github.com/rust-lang/rust-clippy/pull/5623)
911 * [`vec_resize_to_zero`] [#5637](https://github.com/rust-lang/rust-clippy/pull/5637)
912
913 ### Moves and Deprecations
914
915 * Move [`cast_ptr_alignment`] to pedantic [#5667](https://github.com/rust-lang/rust-clippy/pull/5667)
916
917 ### Enhancements
918
919 * Improve [`mem_replace_with_uninit`] lint [#5695](https://github.com/rust-lang/rust-clippy/pull/5695)
920
921 ### False Positive Fixes
922
923 * [`len_zero`]: Avoid linting ranges when the `range_is_empty` feature is not enabled
924   [#5656](https://github.com/rust-lang/rust-clippy/pull/5656)
925 * [`let_and_return`]: Don't lint if a temporary borrow is involved
926   [#5680](https://github.com/rust-lang/rust-clippy/pull/5680)
927 * [`reversed_empty_ranges`]: Avoid linting `N..N` in for loop arguments in
928   [#5692](https://github.com/rust-lang/rust-clippy/pull/5692)
929 * [`if_same_then_else`]: Don't assume multiplication is always commutative
930   [#5702](https://github.com/rust-lang/rust-clippy/pull/5702)
931 * [`blacklisted_name`]: Remove `bar` from the default configuration
932   [#5712](https://github.com/rust-lang/rust-clippy/pull/5712)
933 * [`redundant_pattern_matching`]: Avoid suggesting non-`const fn` calls in const contexts
934   [#5724](https://github.com/rust-lang/rust-clippy/pull/5724)
935
936 ### Suggestion Fixes/Improvements
937
938 * Fix suggestion of [`unit_arg`] lint, so that it suggest semantic equivalent code
939   [#4455](https://github.com/rust-lang/rust-clippy/pull/4455)
940 * Add auto applicable suggestion to [`macro_use_imports`]
941   [#5279](https://github.com/rust-lang/rust-clippy/pull/5279)
942
943 ### ICE Fixes
944
945 * Fix ICE in the `consts` module of Clippy [#5709](https://github.com/rust-lang/rust-clippy/pull/5709)
946
947 ### Documentation Improvements
948
949 * Improve code examples across multiple lints [#5664](https://github.com/rust-lang/rust-clippy/pull/5664)
950
951 ### Others
952
953 * Introduce a `--rustc` flag to `clippy-driver`, which turns `clippy-driver`
954   into `rustc` and passes all the given arguments to `rustc`. This is especially
955   useful for tools that need the `rustc` version Clippy was compiled with,
956   instead of the Clippy version. E.g. `clippy-driver --rustc --version` will
957   print the output of `rustc --version`.
958   [#5178](https://github.com/rust-lang/rust-clippy/pull/5178)
959 * New issue templates now make it easier to complain if Clippy is too annoying
960   or not annoying enough! [#5735](https://github.com/rust-lang/rust-clippy/pull/5735)
961
962 ## Rust 1.45
963
964 Released 2020-07-16
965
966 [891e1a8...7ea7cd1](https://github.com/rust-lang/rust-clippy/compare/891e1a8...7ea7cd1)
967
968 ### New lints
969
970 * [`match_wildcard_for_single_variants`] [#5582](https://github.com/rust-lang/rust-clippy/pull/5582)
971 * [`unsafe_derive_deserialize`] [#5493](https://github.com/rust-lang/rust-clippy/pull/5493)
972 * [`if_let_mutex`] [#5332](https://github.com/rust-lang/rust-clippy/pull/5332)
973 * [`mismatched_target_os`] [#5506](https://github.com/rust-lang/rust-clippy/pull/5506)
974 * [`await_holding_lock`] [#5439](https://github.com/rust-lang/rust-clippy/pull/5439)
975 * [`match_on_vec_items`] [#5522](https://github.com/rust-lang/rust-clippy/pull/5522)
976 * [`manual_async_fn`] [#5576](https://github.com/rust-lang/rust-clippy/pull/5576)
977 * [`reversed_empty_ranges`] [#5583](https://github.com/rust-lang/rust-clippy/pull/5583)
978 * [`manual_non_exhaustive`] [#5550](https://github.com/rust-lang/rust-clippy/pull/5550)
979
980 ### Moves and Deprecations
981
982 * Downgrade [`match_bool`] to pedantic [#5408](https://github.com/rust-lang/rust-clippy/pull/5408)
983 * Downgrade [`match_wild_err_arm`] to pedantic and update help messages. [#5622](https://github.com/rust-lang/rust-clippy/pull/5622)
984 * Downgrade [`useless_let_if_seq`] to nursery. [#5599](https://github.com/rust-lang/rust-clippy/pull/5599)
985 * Generalize `option_and_then_some` and rename to [`bind_instead_of_map`]. [#5529](https://github.com/rust-lang/rust-clippy/pull/5529)
986 * Rename `identity_conversion` to [`useless_conversion`]. [#5568](https://github.com/rust-lang/rust-clippy/pull/5568)
987 * Merge `block_in_if_condition_expr` and `block_in_if_condition_stmt` into [`blocks_in_if_conditions`].
988 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
989 * Merge `option_map_unwrap_or`, `option_map_unwrap_or_else` and `result_map_unwrap_or_else` into [`map_unwrap_or`].
990 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
991 * Merge `option_unwrap_used` and `result_unwrap_used` into [`unwrap_used`].
992 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
993 * Merge `option_expect_used` and `result_expect_used` into [`expect_used`].
994 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
995 * Merge `for_loop_over_option` and `for_loop_over_result` into [`for_loops_over_fallibles`].
996 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
997
998 ### Enhancements
999
1000 * Avoid running cargo lints when not enabled to improve performance. [#5505](https://github.com/rust-lang/rust-clippy/pull/5505)
1001 * Extend [`useless_conversion`] with `TryFrom` and `TryInto`. [#5631](https://github.com/rust-lang/rust-clippy/pull/5631)
1002 * Lint also in type parameters and where clauses in [`unused_unit`]. [#5592](https://github.com/rust-lang/rust-clippy/pull/5592)
1003 * Do not suggest deriving `Default` in [`new_without_default`]. [#5616](https://github.com/rust-lang/rust-clippy/pull/5616)
1004
1005 ### False Positive Fixes
1006
1007 * [`while_let_on_iterator`] [#5525](https://github.com/rust-lang/rust-clippy/pull/5525)
1008 * [`empty_line_after_outer_attr`] [#5609](https://github.com/rust-lang/rust-clippy/pull/5609)
1009 * [`unnecessary_unwrap`] [#5558](https://github.com/rust-lang/rust-clippy/pull/5558)
1010 * [`comparison_chain`] [#5596](https://github.com/rust-lang/rust-clippy/pull/5596)
1011 * Don't trigger [`used_underscore_binding`] in await desugaring. [#5535](https://github.com/rust-lang/rust-clippy/pull/5535)
1012 * Don't trigger [`borrowed_box`] on mutable references. [#5491](https://github.com/rust-lang/rust-clippy/pull/5491)
1013 * Allow `1 << 0` in [`identity_op`]. [#5602](https://github.com/rust-lang/rust-clippy/pull/5602)
1014 * Allow `use super::*;` glob imports in [`wildcard_imports`]. [#5564](https://github.com/rust-lang/rust-clippy/pull/5564)
1015 * Whitelist more words in [`doc_markdown`]. [#5611](https://github.com/rust-lang/rust-clippy/pull/5611)
1016 * Skip dev and build deps in [`multiple_crate_versions`]. [#5636](https://github.com/rust-lang/rust-clippy/pull/5636)
1017 * Honor `allow` attribute on arguments in [`ptr_arg`]. [#5647](https://github.com/rust-lang/rust-clippy/pull/5647)
1018 * Honor lint level attributes for [`redundant_field_names`], [`just_underscores_and_digits`], [`many_single_char_names`]
1019 and [`similar_names`]. [#5651](https://github.com/rust-lang/rust-clippy/pull/5651)
1020 * Ignore calls to `len` in [`or_fun_call`]. [#4429](https://github.com/rust-lang/rust-clippy/pull/4429)
1021
1022 ### Suggestion Improvements
1023
1024 * Simplify suggestions in [`manual_memcpy`]. [#5536](https://github.com/rust-lang/rust-clippy/pull/5536)
1025 * Fix suggestion in [`redundant_pattern_matching`] for macros. [#5511](https://github.com/rust-lang/rust-clippy/pull/5511)
1026 * Avoid suggesting `copied()` for mutable references in [`map_clone`]. [#5530](https://github.com/rust-lang/rust-clippy/pull/5530)
1027 * Improve help message for [`clone_double_ref`]. [#5547](https://github.com/rust-lang/rust-clippy/pull/5547)
1028
1029 ### ICE Fixes
1030
1031 * Fix ICE caused in unwrap module. [#5590](https://github.com/rust-lang/rust-clippy/pull/5590)
1032 * Fix ICE on rustc test issue-69020-assoc-const-arith-overflow.rs [#5499](https://github.com/rust-lang/rust-clippy/pull/5499)
1033
1034 ### Documentation
1035
1036 * Clarify the documentation of [`unnecessary_mut_passed`]. [#5639](https://github.com/rust-lang/rust-clippy/pull/5639)
1037 * Extend example for [`unneeded_field_pattern`]. [#5541](https://github.com/rust-lang/rust-clippy/pull/5541)
1038
1039 ## Rust 1.44
1040
1041 Released 2020-06-04
1042
1043 [204bb9b...891e1a8](https://github.com/rust-lang/rust-clippy/compare/204bb9b...891e1a8)
1044
1045 ### New lints
1046
1047 * [`explicit_deref_methods`] [#5226](https://github.com/rust-lang/rust-clippy/pull/5226)
1048 * [`implicit_saturating_sub`] [#5427](https://github.com/rust-lang/rust-clippy/pull/5427)
1049 * [`macro_use_imports`] [#5230](https://github.com/rust-lang/rust-clippy/pull/5230)
1050 * [`verbose_file_reads`] [#5272](https://github.com/rust-lang/rust-clippy/pull/5272)
1051 * [`future_not_send`] [#5423](https://github.com/rust-lang/rust-clippy/pull/5423)
1052 * [`redundant_pub_crate`] [#5319](https://github.com/rust-lang/rust-clippy/pull/5319)
1053 * [`large_const_arrays`] [#5248](https://github.com/rust-lang/rust-clippy/pull/5248)
1054 * [`result_map_or_into_option`] [#5415](https://github.com/rust-lang/rust-clippy/pull/5415)
1055 * [`redundant_allocation`] [#5349](https://github.com/rust-lang/rust-clippy/pull/5349)
1056 * [`fn_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
1057 * [`vtable_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
1058
1059
1060 ### Moves and Deprecations
1061
1062 * Deprecate [`replace_consts`] lint [#5380](https://github.com/rust-lang/rust-clippy/pull/5380)
1063 * Move [`cognitive_complexity`] to nursery [#5428](https://github.com/rust-lang/rust-clippy/pull/5428)
1064 * Move [`useless_transmute`] to nursery [#5364](https://github.com/rust-lang/rust-clippy/pull/5364)
1065 * Downgrade [`inefficient_to_string`] to pedantic [#5412](https://github.com/rust-lang/rust-clippy/pull/5412)
1066 * Downgrade [`option_option`] to pedantic [#5401](https://github.com/rust-lang/rust-clippy/pull/5401)
1067 * Downgrade [`unreadable_literal`] to pedantic [#5419](https://github.com/rust-lang/rust-clippy/pull/5419)
1068 * Downgrade [`let_unit_value`] to pedantic [#5409](https://github.com/rust-lang/rust-clippy/pull/5409)
1069 * Downgrade [`trivially_copy_pass_by_ref`] to pedantic [#5410](https://github.com/rust-lang/rust-clippy/pull/5410)
1070 * Downgrade [`implicit_hasher`] to pedantic [#5411](https://github.com/rust-lang/rust-clippy/pull/5411)
1071
1072 ### Enhancements
1073
1074 * On _nightly_ you can now use `cargo clippy --fix -Z unstable-options` to
1075   auto-fix lints that support this [#5363](https://github.com/rust-lang/rust-clippy/pull/5363)
1076 * Make [`redundant_clone`] also trigger on cases where the cloned value is not
1077   consumed. [#5304](https://github.com/rust-lang/rust-clippy/pull/5304)
1078 * Expand [`integer_arithmetic`] to also disallow bit-shifting [#5430](https://github.com/rust-lang/rust-clippy/pull/5430)
1079 * [`option_as_ref_deref`] now detects more deref cases [#5425](https://github.com/rust-lang/rust-clippy/pull/5425)
1080 * [`large_enum_variant`] now report the sizes of the largest and second-largest variants [#5466](https://github.com/rust-lang/rust-clippy/pull/5466)
1081 * [`bool_comparison`] now also checks for inequality comparisons that can be
1082   written more concisely [#5365](https://github.com/rust-lang/rust-clippy/pull/5365)
1083 * Expand [`clone_on_copy`] to work in method call arguments as well [#5441](https://github.com/rust-lang/rust-clippy/pull/5441)
1084 * [`redundant_pattern_matching`] now also handles `while let` [#5483](https://github.com/rust-lang/rust-clippy/pull/5483)
1085 * [`integer_arithmetic`] now also lints references of integers [#5329](https://github.com/rust-lang/rust-clippy/pull/5329)
1086 * Expand [`float_cmp_const`] to also work on arrays [#5345](https://github.com/rust-lang/rust-clippy/pull/5345)
1087 * Trigger [`map_flatten`] when map is called on an `Option` [#5473](https://github.com/rust-lang/rust-clippy/pull/5473)
1088
1089 ### False Positive Fixes
1090
1091 * [`many_single_char_names`] [#5468](https://github.com/rust-lang/rust-clippy/pull/5468)
1092 * [`should_implement_trait`] [#5437](https://github.com/rust-lang/rust-clippy/pull/5437)
1093 * [`unused_self`] [#5387](https://github.com/rust-lang/rust-clippy/pull/5387)
1094 * [`redundant_clone`] [#5453](https://github.com/rust-lang/rust-clippy/pull/5453)
1095 * [`precedence`] [#5445](https://github.com/rust-lang/rust-clippy/pull/5445)
1096 * [`suspicious_op_assign_impl`] [#5424](https://github.com/rust-lang/rust-clippy/pull/5424)
1097 * [`needless_lifetimes`] [#5293](https://github.com/rust-lang/rust-clippy/pull/5293)
1098 * [`redundant_pattern`] [#5287](https://github.com/rust-lang/rust-clippy/pull/5287)
1099 * [`inconsistent_digit_grouping`] [#5451](https://github.com/rust-lang/rust-clippy/pull/5451)
1100
1101
1102 ### Suggestion Improvements
1103
1104 * Improved [`question_mark`] lint suggestion so that it doesn't add redundant `as_ref()` [#5481](https://github.com/rust-lang/rust-clippy/pull/5481)
1105 * Improve the suggested placeholder in [`option_map_unit_fn`] [#5292](https://github.com/rust-lang/rust-clippy/pull/5292)
1106 * Improve suggestion for [`match_single_binding`] when triggered inside a closure [#5350](https://github.com/rust-lang/rust-clippy/pull/5350)
1107
1108 ### ICE Fixes
1109
1110 * Handle the unstable `trivial_bounds` feature [#5296](https://github.com/rust-lang/rust-clippy/pull/5296)
1111 * `shadow_*` lints [#5297](https://github.com/rust-lang/rust-clippy/pull/5297)
1112
1113 ### Documentation
1114
1115 * Fix documentation generation for configurable lints [#5353](https://github.com/rust-lang/rust-clippy/pull/5353)
1116 * Update documentation for [`new_ret_no_self`] [#5448](https://github.com/rust-lang/rust-clippy/pull/5448)
1117 * The documentation for [`option_option`] now suggest using a tri-state enum [#5403](https://github.com/rust-lang/rust-clippy/pull/5403)
1118 * Fix bit mask example in [`verbose_bit_mask`] documentation [#5454](https://github.com/rust-lang/rust-clippy/pull/5454)
1119 * [`wildcard_imports`] documentation now mentions that `use ...::prelude::*` is
1120   not linted [#5312](https://github.com/rust-lang/rust-clippy/pull/5312)
1121
1122 ## Rust 1.43
1123
1124 Released 2020-04-23
1125
1126 [4ee1206...204bb9b](https://github.com/rust-lang/rust-clippy/compare/4ee1206...204bb9b)
1127
1128 ### New lints
1129
1130 * [`imprecise_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
1131 * [`suboptimal_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
1132 * [`wildcard_imports`] [#5029](https://github.com/rust-lang/rust-clippy/pull/5029)
1133 * [`single_component_path_imports`] [#5058](https://github.com/rust-lang/rust-clippy/pull/5058)
1134 * [`match_single_binding`] [#5061](https://github.com/rust-lang/rust-clippy/pull/5061)
1135 * [`let_underscore_lock`] [#5101](https://github.com/rust-lang/rust-clippy/pull/5101)
1136 * [`struct_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
1137 * [`fn_params_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
1138 * [`option_env_unwrap`] [#5148](https://github.com/rust-lang/rust-clippy/pull/5148)
1139 * [`lossy_float_literal`] [#5202](https://github.com/rust-lang/rust-clippy/pull/5202)
1140 * [`rest_pat_in_fully_bound_structs`] [#5258](https://github.com/rust-lang/rust-clippy/pull/5258)
1141
1142 ### Moves and Deprecations
1143
1144 * Move [`unneeded_field_pattern`] to pedantic group [#5200](https://github.com/rust-lang/rust-clippy/pull/5200)
1145
1146 ### Enhancements
1147
1148 * Make [`missing_errors_doc`] lint also trigger on `async` functions
1149   [#5181](https://github.com/rust-lang/rust-clippy/pull/5181)
1150 * Add more constants to [`approx_constant`] [#5193](https://github.com/rust-lang/rust-clippy/pull/5193)
1151 * Extend [`question_mark`] lint [#5266](https://github.com/rust-lang/rust-clippy/pull/5266)
1152
1153 ### False Positive Fixes
1154
1155 * [`use_debug`] [#5047](https://github.com/rust-lang/rust-clippy/pull/5047)
1156 * [`unnecessary_unwrap`] [#5132](https://github.com/rust-lang/rust-clippy/pull/5132)
1157 * [`zero_prefixed_literal`] [#5170](https://github.com/rust-lang/rust-clippy/pull/5170)
1158 * [`missing_const_for_fn`] [#5216](https://github.com/rust-lang/rust-clippy/pull/5216)
1159
1160 ### Suggestion Improvements
1161
1162 * Improve suggestion when blocks of code are suggested [#5134](https://github.com/rust-lang/rust-clippy/pull/5134)
1163
1164 ### ICE Fixes
1165
1166 * `misc_early` lints [#5129](https://github.com/rust-lang/rust-clippy/pull/5129)
1167 * [`missing_errors_doc`] [#5213](https://github.com/rust-lang/rust-clippy/pull/5213)
1168 * Fix ICE when evaluating `usize`s [#5256](https://github.com/rust-lang/rust-clippy/pull/5256)
1169
1170 ### Documentation
1171
1172 * Improve documentation of [`iter_nth_zero`]
1173 * Add documentation pages for stable releases [#5171](https://github.com/rust-lang/rust-clippy/pull/5171)
1174
1175 ### Others
1176
1177 * Clippy now completely runs on GitHub Actions [#5190](https://github.com/rust-lang/rust-clippy/pull/5190)
1178
1179
1180 ## Rust 1.42
1181
1182 Released 2020-03-12
1183
1184 [69f99e7...4ee1206](https://github.com/rust-lang/rust-clippy/compare/69f99e7...4ee1206)
1185
1186 ### New lints
1187
1188 * [`filetype_is_file`] [#4543](https://github.com/rust-lang/rust-clippy/pull/4543)
1189 * [`let_underscore_must_use`] [#4823](https://github.com/rust-lang/rust-clippy/pull/4823)
1190 * [`modulo_arithmetic`] [#4867](https://github.com/rust-lang/rust-clippy/pull/4867)
1191 * [`mem_replace_with_default`] [#4881](https://github.com/rust-lang/rust-clippy/pull/4881)
1192 * [`mutable_key_type`] [#4885](https://github.com/rust-lang/rust-clippy/pull/4885)
1193 * [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
1194 * [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
1195 * [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
1196 * [`invalid_atomic_ordering`] [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
1197 * [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
1198
1199 ### Moves and Deprecations
1200
1201 * Move [`transmute_float_to_int`] from nursery to complexity group
1202   [#5015](https://github.com/rust-lang/rust-clippy/pull/5015)
1203 * Move [`range_plus_one`] to pedantic group [#5057](https://github.com/rust-lang/rust-clippy/pull/5057)
1204 * Move [`debug_assert_with_mut_call`] to nursery group [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
1205 * Deprecate `unused_label` [#4930](https://github.com/rust-lang/rust-clippy/pull/4930)
1206
1207 ### Enhancements
1208
1209 * Lint vectored IO in [`unused_io_amount`] [#5027](https://github.com/rust-lang/rust-clippy/pull/5027)
1210 * Make [`vec_box`] configurable by adding a size threshold [#5081](https://github.com/rust-lang/rust-clippy/pull/5081)
1211 * Also lint constants in [`cmp_nan`] [#4910](https://github.com/rust-lang/rust-clippy/pull/4910)
1212 * Fix false negative in [`expect_fun_call`] [#4915](https://github.com/rust-lang/rust-clippy/pull/4915)
1213 * Fix false negative in [`redundant_clone`] [#5017](https://github.com/rust-lang/rust-clippy/pull/5017)
1214
1215 ### False Positive Fixes
1216
1217 * [`map_clone`] [#4937](https://github.com/rust-lang/rust-clippy/pull/4937)
1218 * [`replace_consts`] [#4977](https://github.com/rust-lang/rust-clippy/pull/4977)
1219 * [`let_and_return`] [#5008](https://github.com/rust-lang/rust-clippy/pull/5008)
1220 * [`eq_op`] [#5079](https://github.com/rust-lang/rust-clippy/pull/5079)
1221 * [`possible_missing_comma`] [#5083](https://github.com/rust-lang/rust-clippy/pull/5083)
1222 * [`debug_assert_with_mut_call`] [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
1223 * Don't trigger [`let_underscore_must_use`] in external macros
1224   [#5082](https://github.com/rust-lang/rust-clippy/pull/5082)
1225 * Don't trigger [`empty_loop`] in `no_std` crates [#5086](https://github.com/rust-lang/rust-clippy/pull/5086)
1226
1227 ### Suggestion Improvements
1228
1229 * `option_map_unwrap_or` [#4634](https://github.com/rust-lang/rust-clippy/pull/4634)
1230 * [`wildcard_enum_match_arm`] [#4934](https://github.com/rust-lang/rust-clippy/pull/4934)
1231 * [`cognitive_complexity`] [#4935](https://github.com/rust-lang/rust-clippy/pull/4935)
1232 * [`decimal_literal_representation`] [#4956](https://github.com/rust-lang/rust-clippy/pull/4956)
1233 * `unknown_clippy_lints` [#4963](https://github.com/rust-lang/rust-clippy/pull/4963)
1234 * [`explicit_into_iter_loop`] [#4978](https://github.com/rust-lang/rust-clippy/pull/4978)
1235 * [`useless_attribute`] [#5022](https://github.com/rust-lang/rust-clippy/pull/5022)
1236 * [`if_let_some_result`] [#5032](https://github.com/rust-lang/rust-clippy/pull/5032)
1237
1238 ### ICE fixes
1239
1240 * [`unsound_collection_transmute`] [#4975](https://github.com/rust-lang/rust-clippy/pull/4975)
1241
1242 ### Documentation
1243
1244 * Improve documentation of [`empty_enum`], [`replace_consts`], [`redundant_clone`], and [`iterator_step_by_zero`]
1245
1246
1247 ## Rust 1.41
1248
1249 Released 2020-01-30
1250
1251 [c8e3cfb...69f99e7](https://github.com/rust-lang/rust-clippy/compare/c8e3cfb...69f99e7)
1252
1253 * New Lints:
1254   * [`exit`] [#4697](https://github.com/rust-lang/rust-clippy/pull/4697)
1255   * [`to_digit_is_some`] [#4801](https://github.com/rust-lang/rust-clippy/pull/4801)
1256   * [`tabs_in_doc_comments`] [#4806](https://github.com/rust-lang/rust-clippy/pull/4806)
1257   * [`large_stack_arrays`] [#4807](https://github.com/rust-lang/rust-clippy/pull/4807)
1258   * [`same_functions_in_if_condition`] [#4814](https://github.com/rust-lang/rust-clippy/pull/4814)
1259   * [`zst_offset`] [#4816](https://github.com/rust-lang/rust-clippy/pull/4816)
1260   * [`as_conversions`] [#4821](https://github.com/rust-lang/rust-clippy/pull/4821)
1261   * [`missing_errors_doc`] [#4884](https://github.com/rust-lang/rust-clippy/pull/4884)
1262   * [`transmute_float_to_int`] [#4889](https://github.com/rust-lang/rust-clippy/pull/4889)
1263 * Remove plugin interface, see
1264   [Inside Rust Blog](https://blog.rust-lang.org/inside-rust/2019/11/04/Clippy-removes-plugin-interface.html) for
1265   details [#4714](https://github.com/rust-lang/rust-clippy/pull/4714)
1266 * Move [`use_self`] to nursery group [#4863](https://github.com/rust-lang/rust-clippy/pull/4863)
1267 * Deprecate `into_iter_on_array` [#4788](https://github.com/rust-lang/rust-clippy/pull/4788)
1268 * Expand [`string_lit_as_bytes`] to also trigger when literal has escapes
1269   [#4808](https://github.com/rust-lang/rust-clippy/pull/4808)
1270 * Fix false positive in `comparison_chain` [#4842](https://github.com/rust-lang/rust-clippy/pull/4842)
1271 * Fix false positive in `while_immutable_condition` [#4730](https://github.com/rust-lang/rust-clippy/pull/4730)
1272 * Fix false positive in `explicit_counter_loop` [#4803](https://github.com/rust-lang/rust-clippy/pull/4803)
1273 * Fix false positive in `must_use_candidate` [#4794](https://github.com/rust-lang/rust-clippy/pull/4794)
1274 * Fix false positive in `print_with_newline` and `write_with_newline`
1275   [#4769](https://github.com/rust-lang/rust-clippy/pull/4769)
1276 * Fix false positive in `derive_hash_xor_eq` [#4766](https://github.com/rust-lang/rust-clippy/pull/4766)
1277 * Fix false positive in `missing_inline_in_public_items` [#4870](https://github.com/rust-lang/rust-clippy/pull/4870)
1278 * Fix false positive in `string_add` [#4880](https://github.com/rust-lang/rust-clippy/pull/4880)
1279 * Fix false positive in `float_arithmetic` [#4851](https://github.com/rust-lang/rust-clippy/pull/4851)
1280 * Fix false positive in `cast_sign_loss` [#4883](https://github.com/rust-lang/rust-clippy/pull/4883)
1281 * Fix false positive in `manual_swap` [#4877](https://github.com/rust-lang/rust-clippy/pull/4877)
1282 * Fix ICEs occurring while checking some block expressions [#4772](https://github.com/rust-lang/rust-clippy/pull/4772)
1283 * Fix ICE in `use_self` [#4776](https://github.com/rust-lang/rust-clippy/pull/4776)
1284 * Fix ICEs related to `const_generics` [#4780](https://github.com/rust-lang/rust-clippy/pull/4780)
1285 * Display help when running `clippy-driver` without arguments, instead of ICEing
1286   [#4810](https://github.com/rust-lang/rust-clippy/pull/4810)
1287 * Clippy has its own ICE message now [#4588](https://github.com/rust-lang/rust-clippy/pull/4588)
1288 * Show deprecated lints in the documentation again [#4757](https://github.com/rust-lang/rust-clippy/pull/4757)
1289 * Improve Documentation by adding positive examples to some lints
1290   [#4832](https://github.com/rust-lang/rust-clippy/pull/4832)
1291
1292 ## Rust 1.40
1293
1294 Released 2019-12-19
1295
1296 [4e7e71b...c8e3cfb](https://github.com/rust-lang/rust-clippy/compare/4e7e71b...c8e3cfb)
1297
1298 * New Lints:
1299   * [`unneeded_wildcard_pattern`] [#4537](https://github.com/rust-lang/rust-clippy/pull/4537)
1300   * [`needless_doctest_main`] [#4603](https://github.com/rust-lang/rust-clippy/pull/4603)
1301   * [`suspicious_unary_op_formatting`] [#4615](https://github.com/rust-lang/rust-clippy/pull/4615)
1302   * [`debug_assert_with_mut_call`] [#4680](https://github.com/rust-lang/rust-clippy/pull/4680)
1303   * [`unused_self`] [#4619](https://github.com/rust-lang/rust-clippy/pull/4619)
1304   * [`inefficient_to_string`] [#4683](https://github.com/rust-lang/rust-clippy/pull/4683)
1305   * [`must_use_unit`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
1306   * [`must_use_candidate`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
1307   * [`double_must_use`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
1308   * [`comparison_chain`] [#4569](https://github.com/rust-lang/rust-clippy/pull/4569)
1309   * [`unsound_collection_transmute`] [#4592](https://github.com/rust-lang/rust-clippy/pull/4592)
1310   * [`panic`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
1311   * [`unreachable`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
1312   * [`todo`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
1313   * `option_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
1314   * `result_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
1315 * Move `redundant_clone` to perf group [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
1316 * Move `manual_mul_add` to nursery group [#4736](https://github.com/rust-lang/rust-clippy/pull/4736)
1317 * Expand `unit_cmp` to also work with `assert_eq!`, `debug_assert_eq!`, `assert_ne!` and `debug_assert_ne!` [#4613](https://github.com/rust-lang/rust-clippy/pull/4613)
1318 * Expand `integer_arithmetic` to also detect mutating arithmetic like `+=` [#4585](https://github.com/rust-lang/rust-clippy/pull/4585)
1319 * Fix false positive in `nonminimal_bool` [#4568](https://github.com/rust-lang/rust-clippy/pull/4568)
1320 * Fix false positive in `missing_safety_doc` [#4611](https://github.com/rust-lang/rust-clippy/pull/4611)
1321 * Fix false positive in `cast_sign_loss` [#4614](https://github.com/rust-lang/rust-clippy/pull/4614)
1322 * Fix false positive in `redundant_clone` [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
1323 * Fix false positive in `try_err` [#4721](https://github.com/rust-lang/rust-clippy/pull/4721)
1324 * Fix false positive in `toplevel_ref_arg` [#4570](https://github.com/rust-lang/rust-clippy/pull/4570)
1325 * Fix false positive in `multiple_inherent_impl` [#4593](https://github.com/rust-lang/rust-clippy/pull/4593)
1326 * Improve more suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4575](https://github.com/rust-lang/rust-clippy/pull/4575)
1327 * Improve suggestion for `zero_ptr` [#4599](https://github.com/rust-lang/rust-clippy/pull/4599)
1328 * Improve suggestion for `explicit_counter_loop` [#4691](https://github.com/rust-lang/rust-clippy/pull/4691)
1329 * Improve suggestion for `mul_add` [#4602](https://github.com/rust-lang/rust-clippy/pull/4602)
1330 * Improve suggestion for `assertions_on_constants` [#4635](https://github.com/rust-lang/rust-clippy/pull/4635)
1331 * Fix ICE in `use_self` [#4671](https://github.com/rust-lang/rust-clippy/pull/4671)
1332 * Fix ICE when encountering const casts [#4590](https://github.com/rust-lang/rust-clippy/pull/4590)
1333
1334 ## Rust 1.39
1335
1336 Released 2019-11-07
1337
1338 [3aea860...4e7e71b](https://github.com/rust-lang/rust-clippy/compare/3aea860...4e7e71b)
1339
1340 * New Lints:
1341   * [`uninit_assumed_init`] [#4479](https://github.com/rust-lang/rust-clippy/pull/4479)
1342   * [`flat_map_identity`] [#4231](https://github.com/rust-lang/rust-clippy/pull/4231)
1343   * [`missing_safety_doc`] [#4535](https://github.com/rust-lang/rust-clippy/pull/4535)
1344   * [`mem_replace_with_uninit`] [#4511](https://github.com/rust-lang/rust-clippy/pull/4511)
1345   * [`suspicious_map`] [#4394](https://github.com/rust-lang/rust-clippy/pull/4394)
1346   * `option_and_then_some` [#4386](https://github.com/rust-lang/rust-clippy/pull/4386)
1347   * [`manual_saturating_arithmetic`] [#4498](https://github.com/rust-lang/rust-clippy/pull/4498)
1348 * Deprecate `unused_collect` lint. This is fully covered by rustc's `#[must_use]` on `collect` [#4348](https://github.com/rust-lang/rust-clippy/pull/4348)
1349 * Move `type_repetition_in_bounds` to pedantic group [#4403](https://github.com/rust-lang/rust-clippy/pull/4403)
1350 * Move `cast_lossless` to pedantic group [#4539](https://github.com/rust-lang/rust-clippy/pull/4539)
1351 * `temporary_cstring_as_ptr` now catches more cases [#4425](https://github.com/rust-lang/rust-clippy/pull/4425)
1352 * `use_self` now works in constructors, too [#4525](https://github.com/rust-lang/rust-clippy/pull/4525)
1353 * `cargo_common_metadata` now checks for license files [#4518](https://github.com/rust-lang/rust-clippy/pull/4518)
1354 * `cognitive_complexity` now includes the measured complexity in the warning message [#4469](https://github.com/rust-lang/rust-clippy/pull/4469)
1355 * Fix false positives in `block_in_if_*` lints [#4458](https://github.com/rust-lang/rust-clippy/pull/4458)
1356 * Fix false positive in `cast_lossless` [#4473](https://github.com/rust-lang/rust-clippy/pull/4473)
1357 * Fix false positive in `clone_on_copy` [#4411](https://github.com/rust-lang/rust-clippy/pull/4411)
1358 * Fix false positive in `deref_addrof` [#4487](https://github.com/rust-lang/rust-clippy/pull/4487)
1359 * Fix false positive in `too_many_lines` [#4490](https://github.com/rust-lang/rust-clippy/pull/4490)
1360 * Fix false positive in `new_ret_no_self` [#4365](https://github.com/rust-lang/rust-clippy/pull/4365)
1361 * Fix false positive in `manual_swap` [#4478](https://github.com/rust-lang/rust-clippy/pull/4478)
1362 * Fix false positive in `missing_const_for_fn` [#4450](https://github.com/rust-lang/rust-clippy/pull/4450)
1363 * Fix false positive in `extra_unused_lifetimes` [#4477](https://github.com/rust-lang/rust-clippy/pull/4477)
1364 * Fix false positive in `inherent_to_string` [#4460](https://github.com/rust-lang/rust-clippy/pull/4460)
1365 * Fix false positive in `map_entry` [#4495](https://github.com/rust-lang/rust-clippy/pull/4495)
1366 * Fix false positive in `unused_unit` [#4445](https://github.com/rust-lang/rust-clippy/pull/4445)
1367 * Fix false positive in `redundant_pattern` [#4489](https://github.com/rust-lang/rust-clippy/pull/4489)
1368 * Fix false positive in `wrong_self_convention` [#4369](https://github.com/rust-lang/rust-clippy/pull/4369)
1369 * Improve various suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4558](https://github.com/rust-lang/rust-clippy/pull/4558)
1370 * Improve suggestions for `redundant_pattern_matching` [#4352](https://github.com/rust-lang/rust-clippy/pull/4352)
1371 * Improve suggestions for `explicit_write` [#4544](https://github.com/rust-lang/rust-clippy/pull/4544)
1372 * Improve suggestion for `or_fun_call` [#4522](https://github.com/rust-lang/rust-clippy/pull/4522)
1373 * Improve suggestion for `match_as_ref` [#4446](https://github.com/rust-lang/rust-clippy/pull/4446)
1374 * Improve suggestion for `unnecessary_fold_span` [#4382](https://github.com/rust-lang/rust-clippy/pull/4382)
1375 * Add suggestions for `unseparated_literal_suffix` [#4401](https://github.com/rust-lang/rust-clippy/pull/4401)
1376 * Add suggestions for `char_lit_as_u8` [#4418](https://github.com/rust-lang/rust-clippy/pull/4418)
1377
1378 ## Rust 1.38
1379
1380 Released 2019-09-26
1381
1382 [e3cb40e...3aea860](https://github.com/rust-lang/rust-clippy/compare/e3cb40e...3aea860)
1383
1384 * New Lints:
1385   * [`main_recursion`] [#4203](https://github.com/rust-lang/rust-clippy/pull/4203)
1386   * [`inherent_to_string`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
1387   * [`inherent_to_string_shadow_display`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
1388   * [`type_repetition_in_bounds`] [#3766](https://github.com/rust-lang/rust-clippy/pull/3766)
1389   * [`try_err`] [#4222](https://github.com/rust-lang/rust-clippy/pull/4222)
1390 * Move `{unnnecessary,panicking}_unwrap` out of nursery [#4307](https://github.com/rust-lang/rust-clippy/pull/4307)
1391 * Extend the `use_self` lint to suggest uses of `Self::Variant` [#4308](https://github.com/rust-lang/rust-clippy/pull/4308)
1392 * Improve suggestion for needless return [#4262](https://github.com/rust-lang/rust-clippy/pull/4262)
1393 * Add auto-fixable suggestion for `let_unit` [#4337](https://github.com/rust-lang/rust-clippy/pull/4337)
1394 * Fix false positive in `pub_enum_variant_names` and `enum_variant_names` [#4345](https://github.com/rust-lang/rust-clippy/pull/4345)
1395 * Fix false positive in `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
1396 * Fix false positive in `string_lit_as_bytes` [#4233](https://github.com/rust-lang/rust-clippy/pull/4233)
1397 * Fix false positive in `needless_lifetimes` [#4266](https://github.com/rust-lang/rust-clippy/pull/4266)
1398 * Fix false positive in `float_cmp` [#4275](https://github.com/rust-lang/rust-clippy/pull/4275)
1399 * Fix false positives in `needless_return` [#4274](https://github.com/rust-lang/rust-clippy/pull/4274)
1400 * Fix false negative in `match_same_arms` [#4246](https://github.com/rust-lang/rust-clippy/pull/4246)
1401 * Fix incorrect suggestion for `needless_bool` [#4335](https://github.com/rust-lang/rust-clippy/pull/4335)
1402 * Improve suggestion for `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
1403 * Improve suggestion for `single_char_literal` [#4361](https://github.com/rust-lang/rust-clippy/pull/4361)
1404 * Improve suggestion for `len_zero` [#4314](https://github.com/rust-lang/rust-clippy/pull/4314)
1405 * Fix ICE in `implicit_hasher` [#4268](https://github.com/rust-lang/rust-clippy/pull/4268)
1406 * Fix allow bug in `trivially_copy_pass_by_ref` [#4250](https://github.com/rust-lang/rust-clippy/pull/4250)
1407
1408 ## Rust 1.37
1409
1410 Released 2019-08-15
1411
1412 [082cfa7...e3cb40e](https://github.com/rust-lang/rust-clippy/compare/082cfa7...e3cb40e)
1413
1414 * New Lints:
1415   * [`checked_conversions`] [#4088](https://github.com/rust-lang/rust-clippy/pull/4088)
1416   * [`get_last_with_len`] [#3832](https://github.com/rust-lang/rust-clippy/pull/3832)
1417   * [`integer_division`] [#4195](https://github.com/rust-lang/rust-clippy/pull/4195)
1418 * Renamed Lint: `const_static_lifetime` is now called [`redundant_static_lifetimes`].
1419   The lint now covers statics in addition to consts [#4162](https://github.com/rust-lang/rust-clippy/pull/4162)
1420 * [`match_same_arms`] now warns for all identical arms, instead of only the first one [#4102](https://github.com/rust-lang/rust-clippy/pull/4102)
1421 * [`needless_return`] now works with void functions [#4220](https://github.com/rust-lang/rust-clippy/pull/4220)
1422 * Fix false positive in [`redundant_closure`] [#4190](https://github.com/rust-lang/rust-clippy/pull/4190)
1423 * Fix false positive in [`useless_attribute`] [#4107](https://github.com/rust-lang/rust-clippy/pull/4107)
1424 * Fix incorrect suggestion for [`float_cmp`] [#4214](https://github.com/rust-lang/rust-clippy/pull/4214)
1425 * Add suggestions for [`print_with_newline`] and [`write_with_newline`] [#4136](https://github.com/rust-lang/rust-clippy/pull/4136)
1426 * Improve suggestions for `option_map_unwrap_or_else` and `result_map_unwrap_or_else` [#4164](https://github.com/rust-lang/rust-clippy/pull/4164)
1427 * Improve suggestions for [`non_ascii_literal`] [#4119](https://github.com/rust-lang/rust-clippy/pull/4119)
1428 * Improve diagnostics for [`let_and_return`] [#4137](https://github.com/rust-lang/rust-clippy/pull/4137)
1429 * Improve diagnostics for [`trivially_copy_pass_by_ref`] [#4071](https://github.com/rust-lang/rust-clippy/pull/4071)
1430 * Add macro check for [`unreadable_literal`] [#4099](https://github.com/rust-lang/rust-clippy/pull/4099)
1431
1432 ## Rust 1.36
1433
1434 Released 2019-07-04
1435
1436 [eb9f9b1...082cfa7](https://github.com/rust-lang/rust-clippy/compare/eb9f9b1...082cfa7)
1437
1438 * New lints: [`find_map`], [`filter_map_next`] [#4039](https://github.com/rust-lang/rust-clippy/pull/4039)
1439 * New lint: [`path_buf_push_overwrite`] [#3954](https://github.com/rust-lang/rust-clippy/pull/3954)
1440 * Move `path_buf_push_overwrite` to the nursery [#4013](https://github.com/rust-lang/rust-clippy/pull/4013)
1441 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
1442 * Allow allowing of [`toplevel_ref_arg`] lint [#4007](https://github.com/rust-lang/rust-clippy/pull/4007)
1443 * Fix false negative in [`or_fun_call`] pertaining to nested constructors [#4084](https://github.com/rust-lang/rust-clippy/pull/4084)
1444 * Fix false positive in [`or_fun_call`] pertaining to enum variant constructors [#4018](https://github.com/rust-lang/rust-clippy/pull/4018)
1445 * Fix false positive in [`useless_let_if_seq`] pertaining to interior mutability [#4035](https://github.com/rust-lang/rust-clippy/pull/4035)
1446 * Fix false positive in [`redundant_closure`] pertaining to non-function types [#4008](https://github.com/rust-lang/rust-clippy/pull/4008)
1447 * Fix false positive in [`let_and_return`] pertaining to attributes on `let`s [#4024](https://github.com/rust-lang/rust-clippy/pull/4024)
1448 * Fix false positive in [`module_name_repetitions`] lint pertaining to attributes [#4006](https://github.com/rust-lang/rust-clippy/pull/4006)
1449 * Fix false positive on [`assertions_on_constants`] pertaining to `debug_assert!` [#3989](https://github.com/rust-lang/rust-clippy/pull/3989)
1450 * Improve suggestion in [`map_clone`] to suggest `.copied()` where applicable  [#3970](https://github.com/rust-lang/rust-clippy/pull/3970) [#4043](https://github.com/rust-lang/rust-clippy/pull/4043)
1451 * Improve suggestion for [`search_is_some`] [#4049](https://github.com/rust-lang/rust-clippy/pull/4049)
1452 * Improve suggestion applicability for [`naive_bytecount`] [#3984](https://github.com/rust-lang/rust-clippy/pull/3984)
1453 * Improve suggestion applicability for [`while_let_loop`] [#3975](https://github.com/rust-lang/rust-clippy/pull/3975)
1454 * Improve diagnostics for [`too_many_arguments`] [#4053](https://github.com/rust-lang/rust-clippy/pull/4053)
1455 * Improve diagnostics for [`cast_lossless`] [#4021](https://github.com/rust-lang/rust-clippy/pull/4021)
1456 * Deal with macro checks in desugarings better [#4082](https://github.com/rust-lang/rust-clippy/pull/4082)
1457 * Add macro check for [`unnecessary_cast`]  [#4026](https://github.com/rust-lang/rust-clippy/pull/4026)
1458 * Remove [`approx_constant`]'s documentation's "Known problems" section. [#4027](https://github.com/rust-lang/rust-clippy/pull/4027)
1459 * Fix ICE in [`suspicious_else_formatting`] [#3960](https://github.com/rust-lang/rust-clippy/pull/3960)
1460 * Fix ICE in [`decimal_literal_representation`] [#3931](https://github.com/rust-lang/rust-clippy/pull/3931)
1461
1462
1463 ## Rust 1.35
1464
1465 Released 2019-05-20
1466
1467 [1fac380..37f5c1e](https://github.com/rust-lang/rust-clippy/compare/1fac380...37f5c1e)
1468
1469 * New lint: `drop_bounds` to detect `T: Drop` bounds
1470 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
1471 * Rename `cyclomatic_complexity` to [`cognitive_complexity`], start work on making lint more practical for Rust code
1472 * Move [`get_unwrap`] to the restriction category
1473 * Improve suggestions for [`iter_cloned_collect`]
1474 * Improve suggestions for [`cast_lossless`] to suggest suffixed literals
1475 * Fix false positives in [`print_with_newline`] and [`write_with_newline`] pertaining to raw strings
1476 * Fix false positive in [`needless_range_loop`] pertaining to structs without a `.iter()`
1477 * Fix false positive in [`bool_comparison`] pertaining to non-bool types
1478 * Fix false positive in [`redundant_closure`] pertaining to differences in borrows
1479 * Fix false positive in `option_map_unwrap_or` on non-copy types
1480 * Fix false positives in [`missing_const_for_fn`] pertaining to macros and trait method impls
1481 * Fix false positive in [`needless_pass_by_value`] pertaining to procedural macros
1482 * Fix false positive in [`needless_continue`] pertaining to loop labels
1483 * Fix false positive for [`boxed_local`] pertaining to arguments moved into closures
1484 * Fix false positive for [`use_self`] in nested functions
1485 * Fix suggestion for [`expect_fun_call`] (https://github.com/rust-lang/rust-clippy/pull/3846)
1486 * Fix suggestion for [`explicit_counter_loop`] to deal with parenthesizing range variables
1487 * Fix suggestion for [`single_char_pattern`] to correctly escape single quotes
1488 * Avoid triggering [`redundant_closure`] in macros
1489 * ICE fixes: [#3805](https://github.com/rust-lang/rust-clippy/pull/3805), [#3772](https://github.com/rust-lang/rust-clippy/pull/3772), [#3741](https://github.com/rust-lang/rust-clippy/pull/3741)
1490
1491 ## Rust 1.34
1492
1493 Released 2019-04-10
1494
1495 [1b89724...1fac380](https://github.com/rust-lang/rust-clippy/compare/1b89724...1fac380)
1496
1497 * New lint: [`assertions_on_constants`] to detect for example `assert!(true)`
1498 * New lint: [`dbg_macro`] to detect uses of the `dbg!` macro
1499 * New lint: [`missing_const_for_fn`] that can suggest functions to be made `const`
1500 * New lint: [`too_many_lines`] to detect functions with excessive LOC. It can be
1501   configured using the `too-many-lines-threshold` configuration.
1502 * New lint: [`wildcard_enum_match_arm`] to check for wildcard enum matches using `_`
1503 * Expand `redundant_closure` to also work for methods (not only functions)
1504 * Fix ICEs in `vec_box`, `needless_pass_by_value` and `implicit_hasher`
1505 * Fix false positive in `cast_sign_loss`
1506 * Fix false positive in `integer_arithmetic`
1507 * Fix false positive in `unit_arg`
1508 * Fix false positives in `implicit_return`
1509 * Add suggestion to `explicit_write`
1510 * Improve suggestions for `question_mark` lint
1511 * Fix incorrect suggestion for `cast_lossless`
1512 * Fix incorrect suggestion for `expect_fun_call`
1513 * Fix incorrect suggestion for `needless_bool`
1514 * Fix incorrect suggestion for `needless_range_loop`
1515 * Fix incorrect suggestion for `use_self`
1516 * Fix incorrect suggestion for `while_let_on_iterator`
1517 * Clippy is now slightly easier to invoke in non-cargo contexts. See
1518   [#3665][pull3665] for more details.
1519 * We now have [improved documentation][adding_lints] on how to add new lints
1520
1521 ## Rust 1.33
1522
1523 Released 2019-02-26
1524
1525 [b2601be...1b89724](https://github.com/rust-lang/rust-clippy/compare/b2601be...1b89724)
1526
1527 * New lints: [`implicit_return`], [`vec_box`], [`cast_ref_to_mut`]
1528 * The `rust-clippy` repository is now part of the `rust-lang` org.
1529 * Rename `stutter` to `module_name_repetitions`
1530 * Merge `new_without_default_derive` into `new_without_default` lint
1531 * Move `large_digit_groups` from `style` group to `pedantic`
1532 * Expand `bool_comparison` to check for `<`, `<=`, `>`, `>=`, and `!=`
1533   comparisons against booleans
1534 * Expand `no_effect` to detect writes to constants such as `A_CONST.field = 2`
1535 * Expand `redundant_clone` to work on struct fields
1536 * Expand `suspicious_else_formatting` to detect `if .. {..} {..}`
1537 * Expand `use_self` to work on tuple structs and also in local macros
1538 * Fix ICE in `result_map_unit_fn` and `option_map_unit_fn`
1539 * Fix false positives in `implicit_return`
1540 * Fix false positives in `use_self`
1541 * Fix false negative in `clone_on_copy`
1542 * Fix false positive in `doc_markdown`
1543 * Fix false positive in `empty_loop`
1544 * Fix false positive in `if_same_then_else`
1545 * Fix false positive in `infinite_iter`
1546 * Fix false positive in `question_mark`
1547 * Fix false positive in `useless_asref`
1548 * Fix false positive in `wildcard_dependencies`
1549 * Fix false positive in `write_with_newline`
1550 * Add suggestion to `explicit_write`
1551 * Improve suggestions for `question_mark` lint
1552 * Fix incorrect suggestion for `get_unwrap`
1553
1554 ## Rust 1.32
1555
1556 Released 2019-01-17
1557
1558 [2e26fdc2...b2601be](https://github.com/rust-lang/rust-clippy/compare/2e26fdc2...b2601be)
1559
1560 * New lints: [`slow_vector_initialization`], [`mem_discriminant_non_enum`],
1561   [`redundant_clone`], [`wildcard_dependencies`],
1562   [`into_iter_on_ref`], `into_iter_on_array`, [`deprecated_cfg_attr`],
1563   [`mem_discriminant_non_enum`], [`cargo_common_metadata`]
1564 * Add support for `u128` and `i128` to integer related lints
1565 * Add float support to `mistyped_literal_suffixes`
1566 * Fix false positives in `use_self`
1567 * Fix false positives in `missing_comma`
1568 * Fix false positives in `new_ret_no_self`
1569 * Fix false positives in `possible_missing_comma`
1570 * Fix false positive in `integer_arithmetic` in constant items
1571 * Fix false positive in `needless_borrow`
1572 * Fix false positive in `out_of_bounds_indexing`
1573 * Fix false positive in `new_without_default_derive`
1574 * Fix false positive in `string_lit_as_bytes`
1575 * Fix false negative in `out_of_bounds_indexing`
1576 * Fix false negative in `use_self`. It will now also check existential types
1577 * Fix incorrect suggestion for `redundant_closure_call`
1578 * Fix various suggestions that contained expanded macros
1579 * Fix `bool_comparison` triggering 3 times on on on the same code
1580 * Expand `trivially_copy_pass_by_ref` to work on trait methods
1581 * Improve suggestion for `needless_range_loop`
1582 * Move `needless_pass_by_value` from `pedantic` group to `style`
1583
1584 ## Rust 1.31
1585
1586 Released 2018-12-06
1587
1588 [125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
1589
1590 * Clippy has been relicensed under a dual MIT / Apache license.
1591   See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
1592   information.
1593 * With Rust 1.31, Clippy is no longer available via crates.io. The recommended
1594   installation method is via `rustup component add clippy`.
1595 * New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
1596   [`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
1597 * Fix ICE in `if_let_redundant_pattern_matching`
1598 * Fix ICE in `needless_pass_by_value` when encountering a generic function
1599   argument with a lifetime parameter
1600 * Fix ICE in `needless_range_loop`
1601 * Fix ICE in `single_char_pattern` when encountering a constant value
1602 * Fix false positive in `assign_op_pattern`
1603 * Fix false positive in `boxed_local` on trait implementations
1604 * Fix false positive in `cmp_owned`
1605 * Fix false positive in `collapsible_if` when conditionals have comments
1606 * Fix false positive in `double_parens`
1607 * Fix false positive in `excessive_precision`
1608 * Fix false positive in `explicit_counter_loop`
1609 * Fix false positive in `fn_to_numeric_cast_with_truncation`
1610 * Fix false positive in `map_clone`
1611 * Fix false positive in `new_ret_no_self`
1612 * Fix false positive in `new_without_default` when `new` is unsafe
1613 * Fix false positive in `type_complexity` when using extern types
1614 * Fix false positive in `useless_format`
1615 * Fix false positive in `wrong_self_convention`
1616 * Fix incorrect suggestion for `excessive_precision`
1617 * Fix incorrect suggestion for `expect_fun_call`
1618 * Fix incorrect suggestion for `get_unwrap`
1619 * Fix incorrect suggestion for `useless_format`
1620 * `fn_to_numeric_cast_with_truncation` lint can be disabled again
1621 * Improve suggestions for `manual_memcpy`
1622 * Improve help message for `needless_lifetimes`
1623
1624 ## Rust 1.30
1625
1626 Released 2018-10-25
1627
1628 [14207503...125907ad](https://github.com/rust-lang/rust-clippy/compare/14207503...125907ad)
1629
1630 * Deprecate `assign_ops` lint
1631 * New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
1632   [`needless_collect`], [`copy_iterator`]
1633 * `cargo clippy -V` now includes the Clippy commit hash of the Rust
1634   Clippy component
1635 * Fix ICE in `implicit_hasher`
1636 * Fix ICE when encountering `println!("{}" a);`
1637 * Fix ICE when encountering a macro call in match statements
1638 * Fix false positive in `default_trait_access`
1639 * Fix false positive in `trivially_copy_pass_by_ref`
1640 * Fix false positive in `similar_names`
1641 * Fix false positive in `redundant_field_name`
1642 * Fix false positive in `expect_fun_call`
1643 * Fix false negative in `identity_conversion`
1644 * Fix false negative in `explicit_counter_loop`
1645 * Fix `range_plus_one` suggestion and false negative
1646 * `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
1647 * Fix `useless_attribute` to also whitelist `unused_extern_crates`
1648 * Fix incorrect suggestion for `single_char_pattern`
1649 * Improve suggestion for `identity_conversion` lint
1650 * Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
1651 * Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
1652 * Move `shadow_unrelated` from `restriction` group to `pedantic`
1653 * Move `indexing_slicing` from `pedantic` group to `restriction`
1654
1655 ## Rust 1.29
1656
1657 Released 2018-09-13
1658
1659 [v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
1660
1661 * :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
1662   :tada:
1663   You can now run `rustup component add clippy-preview` and then `cargo
1664   clippy` to run Clippy. This should put an end to the continuous nightly
1665   upgrades for Clippy users.
1666 * Clippy now follows the Rust versioning scheme instead of its own
1667 * Fix ICE when encountering a `while let (..) = x.iter()` construct
1668 * Fix false positives in `use_self`
1669 * Fix false positive in `trivially_copy_pass_by_ref`
1670 * Fix false positive in `useless_attribute` lint
1671 * Fix false positive in `print_literal`
1672 * Fix `use_self` regressions
1673 * Improve lint message for `neg_cmp_op_on_partial_ord`
1674 * Improve suggestion highlight for `single_char_pattern`
1675 * Improve suggestions for various print/write macro lints
1676 * Improve website header
1677
1678 ## 0.0.212 (2018-07-10)
1679 * Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
1680
1681 ## 0.0.211
1682 * Rustup to *rustc 1.28.0-nightly (e3bf634e0 2018-06-28)*
1683
1684 ## 0.0.210
1685 * Rustup to *rustc 1.28.0-nightly (01cc982e9 2018-06-24)*
1686
1687 ## 0.0.209
1688 * Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
1689
1690 ## 0.0.208
1691 * Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*
1692
1693 ## 0.0.207
1694 * Rustup to *rustc 1.28.0-nightly (2a0062974 2018-06-09)*
1695
1696 ## 0.0.206
1697 * Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)*
1698
1699 ## 0.0.205
1700 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)*
1701 * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint
1702
1703 ## 0.0.204
1704 * Rustup to *rustc 1.28.0-nightly (71e87be38 2018-05-22)*
1705
1706 ## 0.0.203
1707 * Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
1708 * Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
1709
1710 ## 0.0.202
1711 * Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*
1712
1713 ## 0.0.201
1714 * Rustup to *rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)*
1715
1716 ## 0.0.200
1717 * Rustup to *rustc 1.27.0-nightly (9fae15374 2018-05-13)*
1718
1719 ## 0.0.199
1720 * Rustup to *rustc 1.27.0-nightly (ff2ac35db 2018-05-12)*
1721
1722 ## 0.0.198
1723 * Rustup to *rustc 1.27.0-nightly (acd3871ba 2018-05-10)*
1724
1725 ## 0.0.197
1726 * Rustup to *rustc 1.27.0-nightly (428ea5f6b 2018-05-06)*
1727
1728 ## 0.0.196
1729 * Rustup to *rustc 1.27.0-nightly (e82261dfb 2018-05-03)*
1730
1731 ## 0.0.195
1732 * Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
1733
1734 ## 0.0.194
1735 * Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
1736 * New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
1737
1738 ## 0.0.193
1739 * Rustup to *rustc 1.27.0-nightly (eeea94c11 2018-04-06)*
1740
1741 ## 0.0.192
1742 * Rustup to *rustc 1.27.0-nightly (fb44b4c0e 2018-04-04)*
1743 * New lint: [`print_literal`]
1744
1745 ## 0.0.191
1746 * Rustup to *rustc 1.26.0-nightly (ae544ee1c 2018-03-29)*
1747 * Lint audit; categorize lints as style, correctness, complexity, pedantic, nursery, restriction.
1748
1749 ## 0.0.190
1750 * Fix a bunch of intermittent cargo bugs
1751
1752 ## 0.0.189
1753 * Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
1754
1755 ## 0.0.188
1756 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
1757 * New lint: [`while_immutable_condition`]
1758
1759 ## 0.0.187
1760 * Rustup to *rustc 1.26.0-nightly (322d7f7b9 2018-02-25)*
1761 * New lints: [`redundant_field_names`], [`suspicious_arithmetic_impl`], [`suspicious_op_assign_impl`]
1762
1763 ## 0.0.186
1764 * Rustup to *rustc 1.25.0-nightly (0c6091fbd 2018-02-04)*
1765 * Various false positive fixes
1766
1767 ## 0.0.185
1768 * Rustup to *rustc 1.25.0-nightly (56733bc9f 2018-02-01)*
1769 * New lint: [`question_mark`]
1770
1771 ## 0.0.184
1772 * Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)*
1773 * New lints: [`double_comparisons`], [`empty_line_after_outer_attr`]
1774
1775 ## 0.0.183
1776 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)*
1777 * New lint: [`misaligned_transmute`]
1778
1779 ## 0.0.182
1780 * Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
1781 * New lint: [`decimal_literal_representation`]
1782
1783 ## 0.0.181
1784 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
1785 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
1786 * Removed `unit_expr`
1787 * Various false positive fixes for [`needless_pass_by_value`]
1788
1789 ## 0.0.180
1790 * Rustup to *rustc 1.25.0-nightly (3f92e8d89 2018-01-14)*
1791
1792 ## 0.0.179
1793 * Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
1794
1795 ## 0.0.178
1796 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
1797
1798 ## 0.0.177
1799 * Rustup to *rustc 1.24.0-nightly (250b49205 2017-12-21)*
1800 * New lint: [`match_as_ref`]
1801
1802 ## 0.0.176
1803 * Rustup to *rustc 1.24.0-nightly (0077d128d 2017-12-14)*
1804
1805 ## 0.0.175
1806 * Rustup to *rustc 1.24.0-nightly (bb42071f6 2017-12-01)*
1807
1808 ## 0.0.174
1809 * Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
1810
1811 ## 0.0.173
1812 * Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*
1813
1814 ## 0.0.172
1815 * Rustup to *rustc 1.23.0-nightly (d0f8e2913 2017-11-16)*
1816
1817 ## 0.0.171
1818 * Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
1819
1820 ## 0.0.170
1821 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
1822
1823 ## 0.0.169
1824 * Rustup to *rustc 1.23.0-nightly (3b82e4c74 2017-11-05)*
1825 * New lints: [`just_underscores_and_digits`], `result_map_unwrap_or_else`, [`transmute_bytes_to_str`]
1826
1827 ## 0.0.168
1828 * Rustup to *rustc 1.23.0-nightly (f0fe716db 2017-10-30)*
1829
1830 ## 0.0.167
1831 * Rustup to *rustc 1.23.0-nightly (90ef3372e 2017-10-29)*
1832 * New lints: `const_static_lifetime`, [`erasing_op`], [`fallible_impl_from`], [`println_empty_string`], [`useless_asref`]
1833
1834 ## 0.0.166
1835 * Rustup to *rustc 1.22.0-nightly (b7960878b 2017-10-18)*
1836 * New lints: [`explicit_write`], `identity_conversion`, [`implicit_hasher`], `invalid_ref`, [`option_map_or_none`],
1837   [`range_minus_one`], [`range_plus_one`], [`transmute_int_to_bool`], [`transmute_int_to_char`],
1838   [`transmute_int_to_float`]
1839
1840 ## 0.0.165
1841 * Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
1842 * New lint: [`mut_range_bound`]
1843
1844 ## 0.0.164
1845 * Update to *rustc 1.22.0-nightly (6c476ce46 2017-09-25)*
1846 * New lint: [`int_plus_one`]
1847
1848 ## 0.0.163
1849 * Update to *rustc 1.22.0-nightly (14039a42a 2017-09-22)*
1850
1851 ## 0.0.162
1852 * Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
1853 * New lint: [`chars_last_cmp`]
1854 * Improved suggestions for [`needless_borrow`], [`ptr_arg`],
1855
1856 ## 0.0.161
1857 * Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
1858
1859 ## 0.0.160
1860 * Update to *rustc 1.22.0-nightly (dd08c3070 2017-09-12)*
1861
1862 ## 0.0.159
1863 * Update to *rustc 1.22.0-nightly (eba374fb2 2017-09-11)*
1864 * New lint: [`clone_on_ref_ptr`]
1865
1866 ## 0.0.158
1867 * New lint: [`manual_memcpy`]
1868 * [`cast_lossless`] no longer has redundant parentheses in its suggestions
1869 * Update to *rustc 1.22.0-nightly (dead08cb3 2017-09-08)*
1870
1871 ## 0.0.157 - 2017-09-04
1872 * Update to *rustc 1.22.0-nightly (981ce7d8d 2017-09-03)*
1873 * New lint: `unit_expr`
1874
1875 ## 0.0.156 - 2017-09-03
1876 * Update to *rustc 1.22.0-nightly (744dd6c1d 2017-09-02)*
1877
1878 ## 0.0.155
1879 * Update to *rustc 1.21.0-nightly (c11f689d2 2017-08-29)*
1880 * New lint: [`infinite_iter`], [`maybe_infinite_iter`], [`cast_lossless`]
1881
1882 ## 0.0.154
1883 * Update to *rustc 1.21.0-nightly (2c0558f63 2017-08-24)*
1884 * Fix [`use_self`] triggering inside derives
1885 * Add support for linting an entire workspace with `cargo clippy --all`
1886 * New lint: [`naive_bytecount`]
1887
1888 ## 0.0.153
1889 * Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)*
1890 * New lint: [`use_self`]
1891
1892 ## 0.0.152
1893 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)*
1894
1895 ## 0.0.151
1896 * Update to *rustc 1.21.0-nightly (13d94d5fa 2017-08-10)*
1897
1898 ## 0.0.150
1899 * Update to *rustc 1.21.0-nightly (215e0b10e 2017-08-08)*
1900
1901 ## 0.0.148
1902 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)*
1903 * New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`]
1904
1905 ## 0.0.147
1906 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)*
1907
1908 ## 0.0.146
1909 * Update to *rustc 1.21.0-nightly (52a330969 2017-07-27)*
1910 * Fixes false positives in `inline_always`
1911 * Fixes false negatives in `panic_params`
1912
1913 ## 0.0.145
1914 * Update to *rustc 1.20.0-nightly (afe145d22 2017-07-23)*
1915
1916 ## 0.0.144
1917 * Update to *rustc 1.20.0-nightly (086eaa78e 2017-07-15)*
1918
1919 ## 0.0.143
1920 * Update to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
1921 * Fix `cargo clippy` crashing on `dylib` projects
1922 * Fix false positives around `nested_while_let` and `never_loop`
1923
1924 ## 0.0.142
1925 * Update to *rustc 1.20.0-nightly (067971139 2017-07-02)*
1926
1927 ## 0.0.141
1928 * Rewrite of the `doc_markdown` lint.
1929 * Deprecated [`range_step_by_zero`]
1930 * New lint: [`iterator_step_by_zero`]
1931 * New lint: [`needless_borrowed_reference`]
1932 * Update to *rustc 1.20.0-nightly (69c65d296 2017-06-28)*
1933
1934 ## 0.0.140 - 2017-06-16
1935 * Update to *rustc 1.19.0-nightly (258ae6dd9 2017-06-15)*
1936
1937 ## 0.0.139 — 2017-06-10
1938 * Update to *rustc 1.19.0-nightly (4bf5c99af 2017-06-10)*
1939 * Fix bugs with for loop desugaring
1940 * Check for [`AsRef`]/[`AsMut`] arguments in [`wrong_self_convention`]
1941
1942 ## 0.0.138 — 2017-06-05
1943 * Update to *rustc 1.19.0-nightly (0418fa9d3 2017-06-04)*
1944
1945 ## 0.0.137 — 2017-06-05
1946 * Update to *rustc 1.19.0-nightly (6684d176c 2017-06-03)*
1947
1948 ## 0.0.136 — 2017—05—26
1949 * Update to *rustc 1.19.0-nightly (557967766 2017-05-26)*
1950
1951 ## 0.0.135 — 2017—05—24
1952 * Update to *rustc 1.19.0-nightly (5b13bff52 2017-05-23)*
1953
1954 ## 0.0.134 — 2017—05—19
1955 * Update to *rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)*
1956
1957 ## 0.0.133 — 2017—05—14
1958 * Update to *rustc 1.19.0-nightly (826d8f385 2017-05-13)*
1959
1960 ## 0.0.132 — 2017—05—05
1961 * Fix various bugs and some ices
1962
1963 ## 0.0.131 — 2017—05—04
1964 * Update to *rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)*
1965
1966 ## 0.0.130 — 2017—05—03
1967 * Update to *rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)*
1968
1969 ## 0.0.129 — 2017-05-01
1970 * Update to *rustc 1.19.0-nightly (06fb4d256 2017-04-30)*
1971
1972 ## 0.0.128 — 2017-04-28
1973 * Update to *rustc 1.18.0-nightly (94e884b63 2017-04-27)*
1974
1975 ## 0.0.127 — 2017-04-27
1976 * Update to *rustc 1.18.0-nightly (036983201 2017-04-26)*
1977 * New lint: [`needless_continue`]
1978
1979 ## 0.0.126 — 2017-04-24
1980 * Update to *rustc 1.18.0-nightly (2bd4b5c6d 2017-04-23)*
1981
1982 ## 0.0.125 — 2017-04-19
1983 * Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)*
1984
1985 ## 0.0.124 — 2017-04-16
1986 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
1987
1988 ## 0.0.123 — 2017-04-07
1989 * Fix various false positives
1990
1991 ## 0.0.122 — 2017-04-07
1992 * Rustup to *rustc 1.18.0-nightly (91ae22a01 2017-04-05)*
1993 * New lint: [`op_ref`]
1994
1995 ## 0.0.121 — 2017-03-21
1996 * Rustup to *rustc 1.17.0-nightly (134c4a0f0 2017-03-20)*
1997
1998 ## 0.0.120 — 2017-03-17
1999 * Rustup to *rustc 1.17.0-nightly (0aeb9c129 2017-03-15)*
2000
2001 ## 0.0.119 — 2017-03-13
2002 * Rustup to *rustc 1.17.0-nightly (824c9ebbd 2017-03-12)*
2003
2004 ## 0.0.118 — 2017-03-05
2005 * Rustup to *rustc 1.17.0-nightly (b1e31766d 2017-03-03)*
2006
2007 ## 0.0.117 — 2017-03-01
2008 * Rustup to *rustc 1.17.0-nightly (be760566c 2017-02-28)*
2009
2010 ## 0.0.116 — 2017-02-28
2011 * Fix `cargo clippy` on 64 bit windows systems
2012
2013 ## 0.0.115 — 2017-02-27
2014 * Rustup to *rustc 1.17.0-nightly (60a0edc6c 2017-02-26)*
2015 * New lints: [`zero_ptr`], [`never_loop`], [`mut_from_ref`]
2016
2017 ## 0.0.114 — 2017-02-08
2018 * Rustup to *rustc 1.17.0-nightly (c49d10207 2017-02-07)*
2019 * Tests are now ui tests (testing the exact output of rustc)
2020
2021 ## 0.0.113 — 2017-02-04
2022 * Rustup to *rustc 1.16.0-nightly (eedaa94e3 2017-02-02)*
2023 * New lint: [`large_enum_variant`]
2024 * `explicit_into_iter_loop` provides suggestions
2025
2026 ## 0.0.112 — 2017-01-27
2027 * Rustup to *rustc 1.16.0-nightly (df8debf6d 2017-01-25)*
2028
2029 ## 0.0.111 — 2017-01-21
2030 * Rustup to *rustc 1.16.0-nightly (a52da95ce 2017-01-20)*
2031
2032 ## 0.0.110 — 2017-01-20
2033 * Add badges and categories to `Cargo.toml`
2034
2035 ## 0.0.109 — 2017-01-19
2036 * Update to *rustc 1.16.0-nightly (c07a6ae77 2017-01-17)*
2037
2038 ## 0.0.108 — 2017-01-12
2039 * Update to *rustc 1.16.0-nightly (2782e8f8f 2017-01-12)*
2040
2041 ## 0.0.107 — 2017-01-11
2042 * Update regex dependency
2043 * Fix FP when matching `&&mut` by `&ref`
2044 * Reintroduce `for (_, x) in &mut hash_map` -> `for x in hash_map.values_mut()`
2045 * New lints: [`unused_io_amount`], [`forget_ref`], [`short_circuit_statement`]
2046
2047 ## 0.0.106 — 2017-01-04
2048 * Fix FP introduced by rustup in [`wrong_self_convention`]
2049
2050 ## 0.0.105 — 2017-01-04
2051 * Update to *rustc 1.16.0-nightly (468227129 2017-01-03)*
2052 * New lints: [`deref_addrof`], [`double_parens`], [`pub_enum_variant_names`]
2053 * Fix suggestion in [`new_without_default`]
2054 * FP fix in [`absurd_extreme_comparisons`]
2055
2056 ## 0.0.104 — 2016-12-15
2057 * Update to *rustc 1.15.0-nightly (8f02c429a 2016-12-15)*
2058
2059 ## 0.0.103 — 2016-11-25
2060 * Update to *rustc 1.15.0-nightly (d5814b03e 2016-11-23)*
2061
2062 ## 0.0.102 — 2016-11-24
2063 * Update to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
2064
2065 ## 0.0.101 — 2016-11-23
2066 * Update to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
2067 * New lint: [`string_extend_chars`]
2068
2069 ## 0.0.100 — 2016-11-20
2070 * Update to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
2071
2072 ## 0.0.99 — 2016-11-18
2073 * Update to rustc 1.15.0-nightly (0ed951993 2016-11-14)
2074 * New lint: [`get_unwrap`]
2075
2076 ## 0.0.98 — 2016-11-08
2077 * Fixes an issue due to a change in how cargo handles `--sysroot`, which broke `cargo clippy`
2078
2079 ## 0.0.97 — 2016-11-03
2080 * For convenience, `cargo clippy` defines a `cargo-clippy` feature. This was
2081   previously added for a short time under the name `clippy` but removed for
2082   compatibility.
2083 * `cargo clippy --help` is more helping (and less helpful :smile:)
2084 * Rustup to *rustc 1.14.0-nightly (5665bdf3e 2016-11-02)*
2085 * New lints: [`if_let_redundant_pattern_matching`], [`partialeq_ne_impl`]
2086
2087 ## 0.0.96 — 2016-10-22
2088 * Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)*
2089 * New lint: [`iter_skip_next`]
2090
2091 ## 0.0.95 — 2016-10-06
2092 * Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
2093
2094 ## 0.0.94 — 2016-10-04
2095 * Fixes bustage on Windows due to forbidden directory name
2096
2097 ## 0.0.93 — 2016-10-03
2098 * Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
2099 * `option_map_unwrap_or` and `option_map_unwrap_or_else` are now
2100   allowed by default.
2101 * New lint: [`explicit_into_iter_loop`]
2102
2103 ## 0.0.92 — 2016-09-30
2104 * Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
2105
2106 ## 0.0.91 — 2016-09-28
2107 * Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
2108
2109 ## 0.0.90 — 2016-09-09
2110 * Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
2111
2112 ## 0.0.89 — 2016-09-06
2113 * Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
2114
2115 ## 0.0.88 — 2016-09-04
2116 * Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)*
2117 * The following lints are not new but were only usable through the `clippy`
2118   lint groups: [`filter_next`], `for_loop_over_option`,
2119   `for_loop_over_result` and [`match_overlapping_arm`]. You should now be
2120   able to `#[allow/deny]` them individually and they are available directly
2121   through `cargo clippy`.
2122
2123 ## 0.0.87 — 2016-08-31
2124 * Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)*
2125 * New lints: [`builtin_type_shadow`]
2126 * Fix FP in [`zero_prefixed_literal`] and `0b`/`0o`
2127
2128 ## 0.0.86 — 2016-08-28
2129 * Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
2130 * New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
2131
2132 ## 0.0.85 — 2016-08-19
2133 * Fix ICE with [`useless_attribute`]
2134 * [`useless_attribute`] ignores `unused_imports` on `use` statements
2135
2136 ## 0.0.84 — 2016-08-18
2137 * Rustup to *rustc 1.13.0-nightly (aef6971ca 2016-08-17)*
2138
2139 ## 0.0.83 — 2016-08-17
2140 * Rustup to *rustc 1.12.0-nightly (1bf5fa326 2016-08-16)*
2141 * New lints: [`print_with_newline`], [`useless_attribute`]
2142
2143 ## 0.0.82 — 2016-08-17
2144 * Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)*
2145 * New lint: [`module_inception`]
2146
2147 ## 0.0.81 — 2016-08-14
2148 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)*
2149 * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`]
2150 * False positive fix in [`too_many_arguments`]
2151 * Addition of functionality to [`needless_borrow`]
2152 * Suggestions for [`clone_on_copy`]
2153 * Bug fix in [`wrong_self_convention`]
2154 * Doc improvements
2155
2156 ## 0.0.80 — 2016-07-31
2157 * Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)*
2158 * New lints: [`misrefactored_assign_op`], [`serde_api_misuse`]
2159
2160 ## 0.0.79 — 2016-07-10
2161 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
2162 * Major suggestions refactoring
2163
2164 ## 0.0.78 — 2016-07-02
2165 * Rustup to *rustc 1.11.0-nightly (01411937f 2016-07-01)*
2166 * New lints: [`wrong_transmute`], [`double_neg`], [`filter_map`]
2167 * For compatibility, `cargo clippy` does not defines the `clippy` feature
2168   introduced in 0.0.76 anymore
2169 * [`collapsible_if`] now considers `if let`
2170
2171 ## 0.0.77 — 2016-06-21
2172 * Rustup to *rustc 1.11.0-nightly (5522e678b 2016-06-20)*
2173 * New lints: `stutter` and [`iter_nth`]
2174
2175 ## 0.0.76 — 2016-06-10
2176 * Rustup to *rustc 1.11.0-nightly (7d2f75a95 2016-06-09)*
2177 * `cargo clippy` now automatically defines the `clippy` feature
2178 * New lint: [`not_unsafe_ptr_arg_deref`]
2179
2180 ## 0.0.75 — 2016-06-08
2181 * Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*
2182
2183 ## 0.0.74 — 2016-06-07
2184 * Fix bug with `cargo-clippy` JSON parsing
2185 * Add the `CLIPPY_DISABLE_DOCS_LINKS` environment variable to deactivate the
2186   “for further information visit *lint-link*” message.
2187
2188 ## 0.0.73 — 2016-06-05
2189 * Fix false positives in [`useless_let_if_seq`]
2190
2191 ## 0.0.72 — 2016-06-04
2192 * Fix false positives in [`useless_let_if_seq`]
2193
2194 ## 0.0.71 — 2016-05-31
2195 * Rustup to *rustc 1.11.0-nightly (a967611d8 2016-05-30)*
2196 * New lint: [`useless_let_if_seq`]
2197
2198 ## 0.0.70 — 2016-05-28
2199 * Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
2200 * [`invalid_regex`] and [`trivial_regex`] can now warn on `RegexSet::new`,
2201   `RegexBuilder::new` and byte regexes
2202
2203 ## 0.0.69 — 2016-05-20
2204 * Rustup to *rustc 1.10.0-nightly (476fe6eef 2016-05-21)*
2205 * [`used_underscore_binding`] has been made `Allow` temporarily
2206
2207 ## 0.0.68 — 2016-05-17
2208 * Rustup to *rustc 1.10.0-nightly (cd6a40017 2016-05-16)*
2209 * New lint: [`unnecessary_operation`]
2210
2211 ## 0.0.67 — 2016-05-12
2212 * Rustup to *rustc 1.10.0-nightly (22ac88f1a 2016-05-11)*
2213
2214 ## 0.0.66 — 2016-05-11
2215 * New `cargo clippy` subcommand
2216 * New lints: [`assign_op_pattern`], [`assign_ops`], [`needless_borrow`]
2217
2218 ## 0.0.65 — 2016-05-08
2219 * Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
2220 * New lints: [`float_arithmetic`], [`integer_arithmetic`]
2221
2222 ## 0.0.64 — 2016-04-26
2223 * Rustup to *rustc 1.10.0-nightly (645dd013a 2016-04-24)*
2224 * New lints: `temporary_cstring_as_ptr`, [`unsafe_removed_from_name`], and [`mem_forget`]
2225
2226 ## 0.0.63 — 2016-04-08
2227 * Rustup to *rustc 1.9.0-nightly (7979dd608 2016-04-07)*
2228
2229 ## 0.0.62 — 2016-04-07
2230 * Rustup to *rustc 1.9.0-nightly (bf5da36f1 2016-04-06)*
2231
2232 ## 0.0.61 — 2016-04-03
2233 * Rustup to *rustc 1.9.0-nightly (5ab11d72c 2016-04-02)*
2234 * New lint: [`invalid_upcast_comparisons`]
2235
2236 ## 0.0.60 — 2016-04-01
2237 * Rustup to *rustc 1.9.0-nightly (e1195c24b 2016-03-31)*
2238
2239 ## 0.0.59 — 2016-03-31
2240 * Rustup to *rustc 1.9.0-nightly (30a3849f2 2016-03-30)*
2241 * New lints: [`logic_bug`], [`nonminimal_bool`]
2242 * Fixed: [`match_same_arms`] now ignores arms with guards
2243 * Improved: [`useless_vec`] now warns on `for … in vec![…]`
2244
2245 ## 0.0.58 — 2016-03-27
2246 * Rustup to *rustc 1.9.0-nightly (d5a91e695 2016-03-26)*
2247 * New lint: [`doc_markdown`]
2248
2249 ## 0.0.57 — 2016-03-27
2250 * Update to *rustc 1.9.0-nightly (a1e29daf1 2016-03-25)*
2251 * Deprecated lints: [`str_to_string`], [`string_to_string`], [`unstable_as_slice`], [`unstable_as_mut_slice`]
2252 * New lint: [`crosspointer_transmute`]
2253
2254 ## 0.0.56 — 2016-03-23
2255 * Update to *rustc 1.9.0-nightly (0dcc413e4 2016-03-22)*
2256 * New lints: [`many_single_char_names`] and [`similar_names`]
2257
2258 ## 0.0.55 — 2016-03-21
2259 * Update to *rustc 1.9.0-nightly (02310fd31 2016-03-19)*
2260
2261 ## 0.0.54 — 2016-03-16
2262 * Update to *rustc 1.9.0-nightly (c66d2380a 2016-03-15)*
2263
2264 ## 0.0.53 — 2016-03-15
2265 * Add a [configuration file]
2266
2267 ## ~~0.0.52~~
2268
2269 ## 0.0.51 — 2016-03-13
2270 * Add `str` to types considered by [`len_zero`]
2271 * New lints: [`indexing_slicing`]
2272
2273 ## 0.0.50 — 2016-03-11
2274 * Update to *rustc 1.9.0-nightly (c9629d61c 2016-03-10)*
2275
2276 ## 0.0.49 — 2016-03-09
2277 * Update to *rustc 1.9.0-nightly (eabfc160f 2016-03-08)*
2278 * New lints: [`overflow_check_conditional`], `unused_label`, [`new_without_default`]
2279
2280 ## 0.0.48 — 2016-03-07
2281 * Fixed: ICE in [`needless_range_loop`] with globals
2282
2283 ## 0.0.47 — 2016-03-07
2284 * Update to *rustc 1.9.0-nightly (998a6720b 2016-03-07)*
2285 * New lint: [`redundant_closure_call`]
2286
2287 [`AsMut`]: https://doc.rust-lang.org/std/convert/trait.AsMut.html
2288 [`AsRef`]: https://doc.rust-lang.org/std/convert/trait.AsRef.html
2289 [configuration file]: ./rust-clippy#configuration
2290 [pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
2291 [adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/doc/adding_lints.md
2292 [`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
2293
2294 <!-- lint disable no-unused-definitions -->
2295 <!-- begin autogenerated links to lint list -->
2296 [`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
2297 [`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
2298 [`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
2299 [`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
2300 [`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
2301 [`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
2302 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
2303 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
2304 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
2305 [`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
2306 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
2307 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
2308 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
2309 [`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
2310 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
2311 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
2312 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
2313 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
2314 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
2315 [`box_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
2316 [`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
2317 [`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
2318 [`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
2319 [`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
2320 [`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
2321 [`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
2322 [`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
2323 [`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
2324 [`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
2325 [`cast_precision_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss
2326 [`cast_ptr_alignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment
2327 [`cast_ref_to_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ref_to_mut
2328 [`cast_sign_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
2329 [`char_lit_as_u8`]: https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
2330 [`chars_last_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
2331 [`chars_next_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
2332 [`checked_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions
2333 [`clone_double_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
2334 [`clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
2335 [`clone_on_ref_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_ref_ptr
2336 [`cloned_instead_of_copied`]: https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
2337 [`cmp_nan`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_nan
2338 [`cmp_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
2339 [`cmp_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
2340 [`cognitive_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
2341 [`collapsible_else_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
2342 [`collapsible_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
2343 [`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
2344 [`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
2345 [`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
2346 [`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
2347 [`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
2348 [`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
2349 [`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
2350 [`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
2351 [`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
2352 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
2353 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
2354 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
2355 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
2356 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
2357 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
2358 [`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
2359 [`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
2360 [`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
2361 [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
2362 [`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
2363 [`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
2364 [`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
2365 [`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
2366 [`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
2367 [`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
2368 [`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
2369 [`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
2370 [`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
2371 [`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
2372 [`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
2373 [`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
2374 [`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
2375 [`enum_clike_unportable_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant
2376 [`enum_glob_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
2377 [`enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
2378 [`eq_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
2379 [`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
2380 [`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
2381 [`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
2382 [`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
2383 [`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
2384 [`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
2385 [`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
2386 [`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
2387 [`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
2388 [`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop
2389 [`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
2390 [`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
2391 [`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
2392 [`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
2393 [`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
2394 [`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
2395 [`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
2396 [`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
2397 [`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
2398 [`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
2399 [`filter_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
2400 [`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
2401 [`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
2402 [`find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#find_map
2403 [`flat_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_identity
2404 [`flat_map_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
2405 [`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
2406 [`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
2407 [`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
2408 [`float_equality_without_abs`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_equality_without_abs
2409 [`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
2410 [`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
2411 [`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
2412 [`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
2413 [`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
2414 [`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
2415 [`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
2416 [`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
2417 [`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
2418 [`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
2419 [`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
2420 [`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
2421 [`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
2422 [`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
2423 [`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
2424 [`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
2425 [`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
2426 [`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
2427 [`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
2428 [`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
2429 [`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
2430 [`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
2431 [`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
2432 [`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
2433 [`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
2434 [`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub
2435 [`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
2436 [`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
2437 [`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
2438 [`indexing_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
2439 [`ineffective_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask
2440 [`inefficient_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
2441 [`infallible_destructuring_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#infallible_destructuring_match
2442 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
2443 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
2444 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
2445 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
2446 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
2447 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
2448 [`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
2449 [`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
2450 [`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
2451 [`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
2452 [`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
2453 [`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
2454 [`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
2455 [`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
2456 [`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
2457 [`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
2458 [`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
2459 [`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
2460 [`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
2461 [`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
2462 [`iter_next_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
2463 [`iter_next_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
2464 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
2465 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
2466 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
2467 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
2468 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
2469 [`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
2470 [`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
2471 [`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
2472 [`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
2473 [`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
2474 [`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
2475 [`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
2476 [`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
2477 [`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
2478 [`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
2479 [`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
2480 [`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
2481 [`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
2482 [`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
2483 [`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
2484 [`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
2485 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
2486 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
2487 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
2488 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
2489 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
2490 [`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
2491 [`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
2492 [`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
2493 [`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
2494 [`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
2495 [`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
2496 [`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
2497 [`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
2498 [`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
2499 [`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
2500 [`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
2501 [`map_collect_result_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_collect_result_unit
2502 [`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
2503 [`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
2504 [`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
2505 [`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
2506 [`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
2507 [`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
2508 [`match_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_bool
2509 [`match_like_matches_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
2510 [`match_on_vec_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
2511 [`match_overlapping_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
2512 [`match_ref_pats`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
2513 [`match_same_arms`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
2514 [`match_single_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
2515 [`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
2516 [`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
2517 [`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
2518 [`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
2519 [`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
2520 [`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
2521 [`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
2522 [`mem_replace_with_uninit`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
2523 [`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
2524 [`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
2525 [`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
2526 [`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
2527 [`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
2528 [`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
2529 [`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
2530 [`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
2531 [`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
2532 [`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
2533 [`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
2534 [`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
2535 [`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
2536 [`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
2537 [`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
2538 [`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
2539 [`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
2540 [`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
2541 [`must_use_candidate`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
2542 [`must_use_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_unit
2543 [`mut_from_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
2544 [`mut_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut
2545 [`mut_mutex_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mutex_lock
2546 [`mut_range_bound`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_range_bound
2547 [`mutable_key_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
2548 [`mutex_atomic`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
2549 [`mutex_integer`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer
2550 [`naive_bytecount`]: https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount
2551 [`needless_arbitrary_self_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
2552 [`needless_bitwise_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool
2553 [`needless_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
2554 [`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
2555 [`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
2556 [`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
2557 [`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
2558 [`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
2559 [`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
2560 [`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
2561 [`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
2562 [`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
2563 [`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
2564 [`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
2565 [`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
2566 [`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
2567 [`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
2568 [`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
2569 [`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
2570 [`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
2571 [`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
2572 [`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
2573 [`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
2574 [`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
2575 [`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
2576 [`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
2577 [`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
2578 [`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
2579 [`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
2580 [`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
2581 [`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
2582 [`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
2583 [`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
2584 [`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
2585 [`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
2586 [`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
2587 [`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
2588 [`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
2589 [`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
2590 [`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
2591 [`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
2592 [`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
2593 [`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
2594 [`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
2595 [`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
2596 [`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
2597 [`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
2598 [`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
2599 [`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
2600 [`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
2601 [`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
2602 [`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
2603 [`ptr_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
2604 [`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
2605 [`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
2606 [`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
2607 [`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
2608 [`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
2609 [`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
2610 [`range_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_step_by_zero
2611 [`range_zip_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_zip_with_len
2612 [`rc_buffer`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_buffer
2613 [`redundant_allocation`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_allocation
2614 [`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
2615 [`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
2616 [`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
2617 [`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
2618 [`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
2619 [`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
2620 [`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
2621 [`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
2622 [`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
2623 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
2624 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
2625 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
2626 [`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
2627 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
2628 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
2629 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
2630 [`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
2631 [`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
2632 [`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
2633 [`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
2634 [`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
2635 [`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
2636 [`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
2637 [`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
2638 [`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
2639 [`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
2640 [`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
2641 [`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
2642 [`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
2643 [`shadow_same`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
2644 [`shadow_unrelated`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
2645 [`short_circuit_statement`]: https://rust-lang.github.io/rust-clippy/master/index.html#short_circuit_statement
2646 [`should_assert_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_assert_eq
2647 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
2648 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
2649 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
2650 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
2651 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
2652 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
2653 [`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
2654 [`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
2655 [`size_of_in_element_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count
2656 [`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
2657 [`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
2658 [`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
2659 [`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
2660 [`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
2661 [`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
2662 [`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
2663 [`string_from_utf8_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_from_utf8_as_bytes
2664 [`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
2665 [`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
2666 [`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
2667 [`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
2668 [`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
2669 [`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
2670 [`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
2671 [`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
2672 [`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
2673 [`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
2674 [`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
2675 [`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
2676 [`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
2677 [`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
2678 [`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
2679 [`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
2680 [`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
2681 [`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
2682 [`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
2683 [`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
2684 [`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
2685 [`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
2686 [`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
2687 [`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
2688 [`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
2689 [`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
2690 [`transmute_ptr_to_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
2691 [`transmute_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
2692 [`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
2693 [`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
2694 [`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
2695 [`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
2696 [`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
2697 [`type_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
2698 [`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
2699 [`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops
2700 [`unicode_not_nfc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unicode_not_nfc
2701 [`unimplemented`]: https://rust-lang.github.io/rust-clippy/master/index.html#unimplemented
2702 [`uninit_assumed_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
2703 [`unit_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
2704 [`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
2705 [`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
2706 [`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
2707 [`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
2708 [`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
2709 [`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
2710 [`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
2711 [`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
2712 [`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
2713 [`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
2714 [`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
2715 [`unnecessary_wraps`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
2716 [`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
2717 [`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
2718 [`unnested_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
2719 [`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
2720 [`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
2721 [`unsafe_derive_deserialize`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
2722 [`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
2723 [`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
2724 [`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
2725 [`unsound_collection_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsound_collection_transmute
2726 [`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
2727 [`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
2728 [`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
2729 [`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
2730 [`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
2731 [`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
2732 [`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
2733 [`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
2734 [`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
2735 [`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
2736 [`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
2737 [`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
2738 [`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
2739 [`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
2740 [`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
2741 [`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
2742 [`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
2743 [`useless_format`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
2744 [`useless_let_if_seq`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_let_if_seq
2745 [`useless_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute
2746 [`useless_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
2747 [`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
2748 [`vec_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
2749 [`vec_resize_to_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_resize_to_zero
2750 [`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
2751 [`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
2752 [`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
2753 [`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
2754 [`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
2755 [`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
2756 [`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
2757 [`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
2758 [`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
2759 [`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
2760 [`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
2761 [`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline
2762 [`writeln_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
2763 [`wrong_pub_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_pub_self_convention
2764 [`wrong_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
2765 [`wrong_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_transmute
2766 [`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
2767 [`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
2768 [`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
2769 [`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
2770 [`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
2771 <!-- end autogenerated links to lint list -->