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