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