]> git.lizzy.rs Git - rust.git/blob - CHANGELOG.md
Changelog for Rust 1.66 :santa:
[rust.git] / CHANGELOG.md
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4 See [Changelog Update](book/src/development/infrastructure/changelog_update.md) if you want to update this
5 document.
6
7 ## Unreleased / Beta / In Rust Nightly
8
9 [4f142aa1...master](https://github.com/rust-lang/rust-clippy/compare/4f142aa1...master)
10
11 ## Rust 1.66
12
13 Current stable, released 2022-11-03
14
15 [b52fb523...4f142aa1](https://github.com/rust-lang/rust-clippy/compare/b52fb523...4f142aa1)
16
17 ### New Lints
18
19 * [`manual_clamp`]
20   [#9484](https://github.com/rust-lang/rust-clippy/pull/9484)
21 * [`missing_trait_methods`]
22   [#9670](https://github.com/rust-lang/rust-clippy/pull/9670)
23 * [`unused_format_specs`]
24   [#9637](https://github.com/rust-lang/rust-clippy/pull/9637)
25 * [`iter_kv_map`]
26   [#9409](https://github.com/rust-lang/rust-clippy/pull/9409)
27 * [`manual_filter`]
28   [#9451](https://github.com/rust-lang/rust-clippy/pull/9451)
29 * [`box_default`]
30   [#9511](https://github.com/rust-lang/rust-clippy/pull/9511)
31 * [`implicit_saturating_add`]
32   [#9549](https://github.com/rust-lang/rust-clippy/pull/9549)
33 * [`as_ptr_cast_mut`]
34   [#9572](https://github.com/rust-lang/rust-clippy/pull/9572)
35 * [`disallowed_macros`]
36   [#9495](https://github.com/rust-lang/rust-clippy/pull/9495)
37 * [`partial_pub_fields`]
38   [#9658](https://github.com/rust-lang/rust-clippy/pull/9658)
39 * [`uninlined_format_args`]
40   [#9233](https://github.com/rust-lang/rust-clippy/pull/9233)
41 * [`cast_nan_to_int`]
42   [#9617](https://github.com/rust-lang/rust-clippy/pull/9617)
43
44 ### Moves and Deprecations
45
46 * `positional_named_format_parameters` was uplifted to rustc under the new name
47   `named_arguments_used_positionally`
48   [#8518](https://github.com/rust-lang/rust-clippy/pull/8518)
49 * Moved [`implicit_saturating_sub`] to `style` (Now warn-by-default)
50   [#9584](https://github.com/rust-lang/rust-clippy/pull/9584)
51 * Moved `derive_partial_eq_without_eq` to `nursery` (now allow-by-default)
52   [#9536](https://github.com/rust-lang/rust-clippy/pull/9536)
53
54 ### Enhancements
55
56 * [`nonstandard_macro_braces`]: Now includes `matches!()` in the default lint config
57   [#9471](https://github.com/rust-lang/rust-clippy/pull/9471)
58 * [`suboptimal_flops`]: Now supports multiplication and subtraction operations
59   [#9581](https://github.com/rust-lang/rust-clippy/pull/9581)
60 * [`arithmetic_side_effects`]: Now detects cases with literals behind references
61   [#9587](https://github.com/rust-lang/rust-clippy/pull/9587)
62 * [`upper_case_acronyms`]: Now also checks enum names
63   [#9580](https://github.com/rust-lang/rust-clippy/pull/9580)
64 * [`needless_borrowed_reference`]: Now lints nested patterns
65   [#9573](https://github.com/rust-lang/rust-clippy/pull/9573)
66 * [`unnecessary_cast`]: Now works for non-trivial non-literal expressions
67   [#9576](https://github.com/rust-lang/rust-clippy/pull/9576)
68 * [`arithmetic_side_effects`]: Now detects operations with custom types
69   [#9559](https://github.com/rust-lang/rust-clippy/pull/9559)
70 * [`disallowed_methods`], [`disallowed_types`]: Not correctly lints types, functions and macros
71   with the same path
72   [#9495](https://github.com/rust-lang/rust-clippy/pull/9495)
73 * [`self_named_module_files`], [`mod_module_files`]: Now take remapped path prefixes into account
74   [#9475](https://github.com/rust-lang/rust-clippy/pull/9475)
75 * [`bool_to_int_with_if`]: Now detects the inverse if case
76   [#9476](https://github.com/rust-lang/rust-clippy/pull/9476)
77
78 ### False Positive Fixes
79
80 * [`arithmetic_side_effects`]: Now allows operations that can't overflow
81   [#9474](https://github.com/rust-lang/rust-clippy/pull/9474)
82 * [`unnecessary_lazy_evaluations`]: No longer lints in external macros
83   [#9486](https://github.com/rust-lang/rust-clippy/pull/9486)
84 * [`needless_borrow`], [`explicit_auto_deref`]: No longer lint on unions that require the reference
85   [#9490](https://github.com/rust-lang/rust-clippy/pull/9490)
86 * [`almost_complete_letter_range`]: No longer lints in external macros
87   [#9467](https://github.com/rust-lang/rust-clippy/pull/9467)
88 * [`drop_copy`]: No longer lints on idiomatic cases in match arms 
89   [#9491](https://github.com/rust-lang/rust-clippy/pull/9491)
90 * [`question_mark`]: No longer lints in const context
91   [#9487](https://github.com/rust-lang/rust-clippy/pull/9487)
92 * [`collapsible_if`]: Suggestion now work in macros
93   [#9410](https://github.com/rust-lang/rust-clippy/pull/9410)
94 * [`std_instead_of_core`]: No longer triggers on unstable modules
95   [#9545](https://github.com/rust-lang/rust-clippy/pull/9545)
96 * [`unused_peekable`]: No longer lints, if the peak is done in a closure or function
97   [#9465](https://github.com/rust-lang/rust-clippy/pull/9465)
98 * [`useless_attribute`]: No longer lints on `#[allow]` attributes for [`unsafe_removed_from_name`]
99   [#9593](https://github.com/rust-lang/rust-clippy/pull/9593)
100 * [`unnecessary_lazy_evaluations`]: No longer suggest switching to early evaluation when type has
101   custom `Drop` implementation
102   [#9551](https://github.com/rust-lang/rust-clippy/pull/9551)
103 * [`unnecessary_cast`]: No longer lints on negative hexadecimal literals when cast as floats
104   [#9609](https://github.com/rust-lang/rust-clippy/pull/9609)
105 * [`use_self`]: No longer lints in proc macros
106   [#9454](https://github.com/rust-lang/rust-clippy/pull/9454)
107 * [`never_loop`]: Now takes `let ... else` statements into consideration.
108   [#9496](https://github.com/rust-lang/rust-clippy/pull/9496)
109 * [`default_numeric_fallback`]: Now ignores constants
110   [#9636](https://github.com/rust-lang/rust-clippy/pull/9636)
111 * [`uninit_vec`]: No longer lints `Vec::set_len(0)`
112   [#9519](https://github.com/rust-lang/rust-clippy/pull/9519)
113 * [`arithmetic_side_effects`]: Now ignores references
114   [9507](https://github.com/rust-lang/rust-clippy/pull/9507)
115 * [`large_stack_arrays`]: No longer lints inside static items
116   [#9466](https://github.com/rust-lang/rust-clippy/pull/9466)
117 * [`ref_option_ref`]: No longer lints if the inner reference is mutable
118   [#9684](https://github.com/rust-lang/rust-clippy/pull/9684)
119 * [`ptr_arg`]: No longer lints if the argument is used as an incomplete trait object
120   [#9645](https://github.com/rust-lang/rust-clippy/pull/9645)
121 * [`should_implement_trait`]: Now also works for `default` methods
122   [#9546](https://github.com/rust-lang/rust-clippy/pull/9546)
123
124 ### Suggestion Fixes/Improvements
125
126 * [`derivable_impls`]: The suggestion is now machine applicable
127   [#9429](https://github.com/rust-lang/rust-clippy/pull/9429)
128 * [`match_single_binding`]: The suggestion now handles scrutinies with side effects better
129   [#9601](https://github.com/rust-lang/rust-clippy/pull/9601)
130 * [`zero_prefixed_literal`]: Only suggests using octal numbers, if this is possible
131   [#9652](https://github.com/rust-lang/rust-clippy/pull/9652)
132 * [`rc_buffer`]: The suggestion is no longer machine applicable to avoid semantic changes
133   [#9633](https://github.com/rust-lang/rust-clippy/pull/9633)
134 * [`print_literal`], [`write_literal`], [`uninlined_format_args`]: The suggestion now ignores
135   comments after the macro call.
136   [#9586](https://github.com/rust-lang/rust-clippy/pull/9586)
137 * [`expect_fun_call`]:Improved the suggestion for `format!` calls with captured variables
138   [#9586](https://github.com/rust-lang/rust-clippy/pull/9586)
139 * [`nonstandard_macro_braces`]: The suggestion is now machine applicable and will no longer
140   replace brackets inside the macro argument.
141   [#9499](https://github.com/rust-lang/rust-clippy/pull/9499)
142 * [`from_over_into`]: The suggestion is now a machine applicable and contains explanations
143   [#9649](https://github.com/rust-lang/rust-clippy/pull/9649)
144 * [`needless_return`]: The automatic suggestion now removes all required semicolons
145   [#9497](https://github.com/rust-lang/rust-clippy/pull/9497)
146 * [`to_string_in_format_args`]: The suggestion now keeps parenthesis around values
147   [#9590](https://github.com/rust-lang/rust-clippy/pull/9590)
148 * [`manual_assert`]: The suggestion now preserves comments
149   [#9479](https://github.com/rust-lang/rust-clippy/pull/9479)
150 * [`redundant_allocation`]: The suggestion applicability is now marked `MaybeIncorrect` to
151   avoid semantic changes
152   [#9634](https://github.com/rust-lang/rust-clippy/pull/9634)
153 * [`assertions_on_result_states`]: The suggestion has been corrected, for cases where the
154   `assert!` is not in a statement.
155   [#9453](https://github.com/rust-lang/rust-clippy/pull/9453)
156 * [`nonminimal_bool`]: The suggestion no longer expands macros
157   [#9457](https://github.com/rust-lang/rust-clippy/pull/9457)
158 * [`collapsible_match`]: Now specifies field names, when a struct is destructed
159   [#9685](https://github.com/rust-lang/rust-clippy/pull/9685)
160 * [`unnecessary_cast`]: The suggestion now adds parenthesis for negative numbers
161   [#9577](https://github.com/rust-lang/rust-clippy/pull/9577)
162 * [`redundant_closure`]: The suggestion now works for `impl FnMut` arguments
163   [#9556](https://github.com/rust-lang/rust-clippy/pull/9556)
164
165 ### ICE Fixes
166
167 * [`unnecessary_to_owned`]: Avoid ICEs in favor of false negatives if information is missing
168   [#9505](https://github.com/rust-lang/rust-clippy/pull/9505)
169 * [`manual_range_contains`]: No longer ICEs on values behind references
170   [#9627](https://github.com/rust-lang/rust-clippy/pull/9627)
171 * [`needless_pass_by_value`]: No longer ICEs on unsized `dyn Fn` arguments
172   [#9531](https://github.com/rust-lang/rust-clippy/pull/9531)
173 * `*_interior_mutable_const` lints: no longer ICE on const unions containing `!Freeze` types
174
175 ### Others
176
177 * Released `rustc_tools_util` for version information on `Crates.io`. (Further adjustments will
178   not be published as part of this changelog)
179
180 ## Rust 1.65
181
182 Released 2022-11-03
183
184 [3c7e7dbc...b52fb523](https://github.com/rust-lang/rust-clippy/compare/3c7e7dbc...b52fb523)
185
186 ### Important Changes
187
188 * Clippy now has an `--explain <LINT>` command to show the lint description in the console
189   [#8952](https://github.com/rust-lang/rust-clippy/pull/8952)
190
191 ### New Lints
192
193 * [`unused_peekable`]
194   [#9258](https://github.com/rust-lang/rust-clippy/pull/9258)
195 * [`collapsible_str_replace`]
196   [#9269](https://github.com/rust-lang/rust-clippy/pull/9269)
197 * [`manual_string_new`]
198   [#9295](https://github.com/rust-lang/rust-clippy/pull/9295)
199 * [`iter_on_empty_collections`]
200   [#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
201 * [`iter_on_single_items`]
202   [#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
203 * [`bool_to_int_with_if`]
204   [#9412](https://github.com/rust-lang/rust-clippy/pull/9412)
205 * [`multi_assignments`]
206   [#9379](https://github.com/rust-lang/rust-clippy/pull/9379)
207 * [`result_large_err`]
208   [#9373](https://github.com/rust-lang/rust-clippy/pull/9373)
209 * [`partialeq_to_none`]
210   [#9288](https://github.com/rust-lang/rust-clippy/pull/9288)
211 * [`suspicious_to_owned`]
212   [#8984](https://github.com/rust-lang/rust-clippy/pull/8984)
213 * [`cast_slice_from_raw_parts`]
214   [#9247](https://github.com/rust-lang/rust-clippy/pull/9247)
215 * [`manual_instant_elapsed`]
216   [#9264](https://github.com/rust-lang/rust-clippy/pull/9264)
217
218 ### Moves and Deprecations
219
220 * Moved [`significant_drop_in_scrutinee`] to `nursery` (now allow-by-default)
221   [#9302](https://github.com/rust-lang/rust-clippy/pull/9302)
222 * Rename `logic_bug` to [`overly_complex_bool_expr`]
223   [#9306](https://github.com/rust-lang/rust-clippy/pull/9306)
224 * Rename `arithmetic` to [`arithmetic_side_effects`]
225   [#9443](https://github.com/rust-lang/rust-clippy/pull/9443)
226 * Moved [`only_used_in_recursion`] to complexity (now warn-by-default)
227   [#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
228 * Moved [`assertions_on_result_states`] to restriction (now allow-by-default)
229   [#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
230 * Renamed `blacklisted_name` to [`disallowed_names`]
231   [#8974](https://github.com/rust-lang/rust-clippy/pull/8974)
232
233 ### Enhancements
234
235 * [`option_if_let_else`]: Now also checks for match expressions
236   [#8696](https://github.com/rust-lang/rust-clippy/pull/8696)
237 * [`explicit_auto_deref`]: Now lints on implicit returns in closures
238   [#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
239 * [`needless_borrow`]: Now considers trait implementations
240   [#9136](https://github.com/rust-lang/rust-clippy/pull/9136)
241 * [`suboptimal_flops`], [`imprecise_flops`]: Now lint on constant expressions
242   [#9404](https://github.com/rust-lang/rust-clippy/pull/9404)
243 * [`if_let_mutex`]: Now detects mutex behind references and warns about deadlocks
244   [#9318](https://github.com/rust-lang/rust-clippy/pull/9318)
245
246 ### False Positive Fixes
247
248 * [`unit_arg`] [`default_trait_access`] [`missing_docs_in_private_items`]: No longer
249   trigger in code generated from proc-macros
250   [#8694](https://github.com/rust-lang/rust-clippy/pull/8694)
251 * [`unwrap_used`]: Now lints uses of `unwrap_err`
252   [#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
253 * [`expect_used`]: Now lints uses of `expect_err`
254   [#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
255 * [`transmute_undefined_repr`]: Now longer lints if the first field is compatible
256   with the other type
257   [#9287](https://github.com/rust-lang/rust-clippy/pull/9287)
258 * [`unnecessary_to_owned`]: No longer lints, if type change cased errors in
259   the caller function
260   [#9424](https://github.com/rust-lang/rust-clippy/pull/9424)
261 * [`match_like_matches_macro`]: No longer lints, if there are comments inside the
262   match expression
263   [#9276](https://github.com/rust-lang/rust-clippy/pull/9276)
264 * [`partialeq_to_none`]: No longer trigger in code generated from macros
265   [#9389](https://github.com/rust-lang/rust-clippy/pull/9389)
266 * [`arithmetic_side_effects`]: No longer lints expressions that only use literals
267   [#9365](https://github.com/rust-lang/rust-clippy/pull/9365)
268 * [`explicit_auto_deref`]: Now ignores references on block expressions when the type
269   is `Sized`, on `dyn Trait` returns and when the suggestion is non-trivial
270   [#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
271 * [`trait_duplication_in_bounds`]: Now better tracks bounds to avoid false positives
272   [#9167](https://github.com/rust-lang/rust-clippy/pull/9167)
273 * [`format_in_format_args`]: Now suggests cases where the result is formatted again
274   [#9349](https://github.com/rust-lang/rust-clippy/pull/9349)
275 * [`only_used_in_recursion`]: No longer lints on function without recursions and
276   takes external functions into account
277   [#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
278 * [`missing_const_for_fn`]: No longer lints in proc-macros
279   [#9308](https://github.com/rust-lang/rust-clippy/pull/9308)
280 * [`non_ascii_literal`]: Allow non-ascii comments in tests and make sure `#[allow]`
281   attributes work in tests
282   [#9327](https://github.com/rust-lang/rust-clippy/pull/9327)
283 * [`question_mark`]: No longer lint `if let`s with subpatterns
284   [#9348](https://github.com/rust-lang/rust-clippy/pull/9348)
285 * [`needless_collect`]: No longer lints in loops
286   [#8992](https://github.com/rust-lang/rust-clippy/pull/8992)
287 * [`mut_mutex_lock`]: No longer lints if the mutex is behind an immutable reference
288   [#9418](https://github.com/rust-lang/rust-clippy/pull/9418)
289 * [`needless_return`]: Now ignores returns with arguments
290   [#9381](https://github.com/rust-lang/rust-clippy/pull/9381)
291 * [`range_plus_one`], [`range_minus_one`]: Now ignores code with macros
292   [#9446](https://github.com/rust-lang/rust-clippy/pull/9446)
293 * [`assertions_on_result_states`]: No longer lints on the unit type
294   [#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
295
296 ### Suggestion Fixes/Improvements
297
298 * [`unwrap_or_else_default`]: Now suggests `unwrap_or_default()` for empty strings
299   [#9421](https://github.com/rust-lang/rust-clippy/pull/9421)
300 * [`if_then_some_else_none`]: Now also suggests `bool::then_some`
301   [#9289](https://github.com/rust-lang/rust-clippy/pull/9289)
302 * [`redundant_closure_call`]: The suggestion now works for async closures
303   [#9053](https://github.com/rust-lang/rust-clippy/pull/9053)
304 * [`suboptimal_flops`]: Now suggests parenthesis when they are required
305   [#9394](https://github.com/rust-lang/rust-clippy/pull/9394)
306 * [`case_sensitive_file_extension_comparisons`]: Now suggests `map_or(..)` instead of `map(..).unwrap_or`
307   [#9341](https://github.com/rust-lang/rust-clippy/pull/9341)
308 * Deprecated configuration values can now be updated automatically
309   [#9252](https://github.com/rust-lang/rust-clippy/pull/9252)
310 * [`or_fun_call`]: Now suggest `Entry::or_default` for `Entry::or_insert(Default::default())`
311   [#9342](https://github.com/rust-lang/rust-clippy/pull/9342)
312 * [`unwrap_used`]: Only suggests `expect` if [`expect_used`] is allowed
313   [#9223](https://github.com/rust-lang/rust-clippy/pull/9223)
314
315 ### ICE Fixes
316
317 * Fix ICE in [`useless_format`] for literals
318   [#9406](https://github.com/rust-lang/rust-clippy/pull/9406)
319 * Fix infinite loop in [`vec_init_then_push`]
320   [#9441](https://github.com/rust-lang/rust-clippy/pull/9441)
321 * Fix ICE when reading literals with weird proc-macro spans
322   [#9303](https://github.com/rust-lang/rust-clippy/pull/9303)
323
324 ## Rust 1.64
325
326 Released 2022-09-22
327
328 [d7b5cbf0...3c7e7dbc](https://github.com/rust-lang/rust-clippy/compare/d7b5cbf0...3c7e7dbc)
329
330 ### New Lints
331
332 * [`arithmetic_side_effects`]
333   [#9130](https://github.com/rust-lang/rust-clippy/pull/9130)
334 * [`invalid_utf8_in_unchecked`]
335   [#9105](https://github.com/rust-lang/rust-clippy/pull/9105)
336 * [`assertions_on_result_states`]
337   [#9225](https://github.com/rust-lang/rust-clippy/pull/9225)
338 * [`manual_find`]
339   [#8649](https://github.com/rust-lang/rust-clippy/pull/8649)
340 * [`manual_retain`]
341   [#8972](https://github.com/rust-lang/rust-clippy/pull/8972)
342 * [`default_instead_of_iter_empty`]
343   [#8989](https://github.com/rust-lang/rust-clippy/pull/8989)
344 * [`manual_rem_euclid`]
345   [#9031](https://github.com/rust-lang/rust-clippy/pull/9031)
346 * [`obfuscated_if_else`]
347   [#9148](https://github.com/rust-lang/rust-clippy/pull/9148)
348 * [`std_instead_of_core`]
349   [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
350 * [`std_instead_of_alloc`]
351   [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
352 * [`alloc_instead_of_core`]
353   [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
354 * [`explicit_auto_deref`]
355   [#8355](https://github.com/rust-lang/rust-clippy/pull/8355)
356
357
358 ### Moves and Deprecations
359
360 * Moved [`format_push_string`] to `restriction` (now allow-by-default)
361   [#9161](https://github.com/rust-lang/rust-clippy/pull/9161)
362
363 ### Enhancements
364
365 * [`significant_drop_in_scrutinee`]: Now gives more context in the lint message
366   [#8981](https://github.com/rust-lang/rust-clippy/pull/8981)
367 * [`single_match`], [`single_match_else`]: Now catches more `Option` cases
368   [#8985](https://github.com/rust-lang/rust-clippy/pull/8985)
369 * [`unused_async`]: Now works for async methods
370   [#9025](https://github.com/rust-lang/rust-clippy/pull/9025)
371 * [`manual_filter_map`], [`manual_find_map`]: Now lint more expressions
372   [#8958](https://github.com/rust-lang/rust-clippy/pull/8958)
373 * [`question_mark`]: Now works for simple `if let` expressions
374   [#8356](https://github.com/rust-lang/rust-clippy/pull/8356)
375 * [`undocumented_unsafe_blocks`]: Now finds comments before the start of closures
376   [#9117](https://github.com/rust-lang/rust-clippy/pull/9117)
377 * [`trait_duplication_in_bounds`]: Now catches duplicate bounds in where clauses
378   [#8703](https://github.com/rust-lang/rust-clippy/pull/8703)
379 * [`shadow_reuse`], [`shadow_same`], [`shadow_unrelated`]: Now lint in const blocks
380   [#9124](https://github.com/rust-lang/rust-clippy/pull/9124)
381 * [`slow_vector_initialization`]: Now detects cases with `vec.capacity()`
382   [#8953](https://github.com/rust-lang/rust-clippy/pull/8953)
383 * [`unused_self`]: Now respects the `avoid-breaking-exported-api` config option
384   [#9199](https://github.com/rust-lang/rust-clippy/pull/9199)
385 * [`box_collection`]: Now supports all std collections
386   [#9170](https://github.com/rust-lang/rust-clippy/pull/9170)
387
388 ### False Positive Fixes
389
390 * [`significant_drop_in_scrutinee`]: Now ignores calls to `IntoIterator::into_iter`
391   [#9140](https://github.com/rust-lang/rust-clippy/pull/9140)
392 * [`while_let_loop`]: Now ignores cases when the significant drop order would change
393   [#8981](https://github.com/rust-lang/rust-clippy/pull/8981)
394 * [`branches_sharing_code`]: Now ignores cases where moved variables have a significant
395   drop or variable modifications can affect the conditions
396   [#9138](https://github.com/rust-lang/rust-clippy/pull/9138)
397 * [`let_underscore_lock`]: Now ignores bindings that aren't locked
398   [#8990](https://github.com/rust-lang/rust-clippy/pull/8990)
399 * [`trivially_copy_pass_by_ref`]: Now tracks lifetimes and ignores cases where unsafe
400   pointers are used
401   [#8639](https://github.com/rust-lang/rust-clippy/pull/8639)
402 * [`let_unit_value`]: No longer ignores `#[allow]` attributes on the value
403   [#9082](https://github.com/rust-lang/rust-clippy/pull/9082)
404 * [`declare_interior_mutable_const`]: Now ignores the `thread_local!` macro
405   [#9015](https://github.com/rust-lang/rust-clippy/pull/9015)
406 * [`if_same_then_else`]: Now ignores branches with `todo!` and `unimplemented!`
407   [#9006](https://github.com/rust-lang/rust-clippy/pull/9006)
408 * [`enum_variant_names`]: Now ignores names with `_` prefixes
409   [#9032](https://github.com/rust-lang/rust-clippy/pull/9032)
410 * [`let_unit_value`]: Now ignores cases, where the unit type is manually specified
411   [#9056](https://github.com/rust-lang/rust-clippy/pull/9056)
412 * [`match_same_arms`]: Now ignores branches with `todo!`
413   [#9207](https://github.com/rust-lang/rust-clippy/pull/9207)
414 * [`assign_op_pattern`]: Ignores cases that break borrowing rules
415   [#9214](https://github.com/rust-lang/rust-clippy/pull/9214)
416 * [`extra_unused_lifetimes`]: No longer triggers in derive macros
417   [#9037](https://github.com/rust-lang/rust-clippy/pull/9037)
418 * [`mismatching_type_param_order`]: Now ignores complicated generic parameters
419   [#9146](https://github.com/rust-lang/rust-clippy/pull/9146)
420 * [`equatable_if_let`]: No longer lints in macros
421   [#9074](https://github.com/rust-lang/rust-clippy/pull/9074)
422 * [`new_without_default`]: Now ignores generics and lifetime parameters on `fn new`
423   [#9115](https://github.com/rust-lang/rust-clippy/pull/9115)
424 * [`needless_borrow`]: Now ignores cases that result in the execution of different traits
425   [#9096](https://github.com/rust-lang/rust-clippy/pull/9096)
426 * [`declare_interior_mutable_const`]: No longer triggers in thread-local initializers
427   [#9246](https://github.com/rust-lang/rust-clippy/pull/9246)
428
429 ### Suggestion Fixes/Improvements
430
431 * [`type_repetition_in_bounds`]: The suggestion now works with maybe bounds
432   [#9132](https://github.com/rust-lang/rust-clippy/pull/9132)
433 * [`transmute_ptr_to_ref`]: Now suggests `pointer::cast` when possible
434   [#8939](https://github.com/rust-lang/rust-clippy/pull/8939)
435 * [`useless_format`]: Now suggests the correct variable name
436   [#9237](https://github.com/rust-lang/rust-clippy/pull/9237)
437 * [`or_fun_call`]: The lint emission will now only span over the `unwrap_or` call
438   [#9144](https://github.com/rust-lang/rust-clippy/pull/9144)
439 * [`neg_multiply`]: Now suggests adding parentheses around suggestion if needed
440   [#9026](https://github.com/rust-lang/rust-clippy/pull/9026)
441 * [`unnecessary_lazy_evaluations`]: Now suggest for `bool::then_some` for lazy evaluation
442   [#9099](https://github.com/rust-lang/rust-clippy/pull/9099)
443 * [`manual_flatten`]: Improved message for long code snippets
444   [#9156](https://github.com/rust-lang/rust-clippy/pull/9156)
445 * [`explicit_counter_loop`]: The suggestion is now machine applicable
446   [#9149](https://github.com/rust-lang/rust-clippy/pull/9149)
447 * [`needless_borrow`]: Now keeps parentheses around fields, when needed
448   [#9210](https://github.com/rust-lang/rust-clippy/pull/9210)
449 * [`while_let_on_iterator`]: The suggestion now works in `FnOnce` closures
450   [#9134](https://github.com/rust-lang/rust-clippy/pull/9134)
451
452 ### ICE Fixes
453
454 * Fix ICEs related to `#![feature(generic_const_exprs)]` usage
455   [#9241](https://github.com/rust-lang/rust-clippy/pull/9241)
456 * Fix ICEs related to reference lints
457   [#9093](https://github.com/rust-lang/rust-clippy/pull/9093)
458 * [`question_mark`]: Fix ICE on zero field tuple structs
459   [#9244](https://github.com/rust-lang/rust-clippy/pull/9244)
460
461 ### Documentation Improvements
462
463 * [`needless_option_take`]: Now includes a "What it does" and "Why is this bad?" section.
464   [#9022](https://github.com/rust-lang/rust-clippy/pull/9022)
465
466 ### Others
467
468 * Using `--cap-lints=allow` and only `--force-warn`ing some will now work with Clippy's driver
469   [#9036](https://github.com/rust-lang/rust-clippy/pull/9036)
470 * Clippy now tries to read the `rust-version` from `Cargo.toml` to identify the
471   minimum supported rust version
472   [#8774](https://github.com/rust-lang/rust-clippy/pull/8774)
473
474 ## Rust 1.63
475
476 Released 2022-08-11
477
478 [7c21f91b...d7b5cbf0](https://github.com/rust-lang/rust-clippy/compare/7c21f91b...d7b5cbf0)
479
480 ### New Lints
481
482 * [`borrow_deref_ref`]
483   [#7930](https://github.com/rust-lang/rust-clippy/pull/7930)
484 * [`doc_link_with_quotes`]
485   [#8385](https://github.com/rust-lang/rust-clippy/pull/8385)
486 * [`no_effect_replace`]
487   [#8754](https://github.com/rust-lang/rust-clippy/pull/8754)
488 * [`rc_clone_in_vec_init`]
489   [#8769](https://github.com/rust-lang/rust-clippy/pull/8769)
490 * [`derive_partial_eq_without_eq`]
491   [#8796](https://github.com/rust-lang/rust-clippy/pull/8796)
492 * [`mismatching_type_param_order`]
493   [#8831](https://github.com/rust-lang/rust-clippy/pull/8831)
494 * [`duplicate_mod`] [#8832](https://github.com/rust-lang/rust-clippy/pull/8832)
495 * [`unused_rounding`]
496   [#8866](https://github.com/rust-lang/rust-clippy/pull/8866)
497 * [`get_first`] [#8882](https://github.com/rust-lang/rust-clippy/pull/8882)
498 * [`swap_ptr_to_ref`]
499   [#8916](https://github.com/rust-lang/rust-clippy/pull/8916)
500 * [`almost_complete_letter_range`]
501   [#8918](https://github.com/rust-lang/rust-clippy/pull/8918)
502 * [`needless_parens_on_range_literals`]
503   [#8933](https://github.com/rust-lang/rust-clippy/pull/8933)
504 * [`as_underscore`] [#8934](https://github.com/rust-lang/rust-clippy/pull/8934)
505
506 ### Moves and Deprecations
507
508 * Rename `eval_order_dependence` to [`mixed_read_write_in_expression`], move to
509   `nursery` [#8621](https://github.com/rust-lang/rust-clippy/pull/8621)
510
511 ### Enhancements
512
513 * [`undocumented_unsafe_blocks`]: Now also lints on unsafe trait implementations
514   [#8761](https://github.com/rust-lang/rust-clippy/pull/8761)
515 * [`empty_line_after_outer_attr`]: Now also lints on argumentless macros
516   [#8790](https://github.com/rust-lang/rust-clippy/pull/8790)
517 * [`expect_used`]: Now can be disabled in tests with the `allow-expect-in-tests`
518   option [#8802](https://github.com/rust-lang/rust-clippy/pull/8802)
519 * [`unwrap_used`]: Now can be disabled in tests with the `allow-unwrap-in-tests`
520   option [#8802](https://github.com/rust-lang/rust-clippy/pull/8802)
521 * [`disallowed_methods`]: Now also lints indirect usages
522   [#8852](https://github.com/rust-lang/rust-clippy/pull/8852)
523 * [`get_last_with_len`]: Now also lints `VecDeque` and any deref to slice
524   [#8862](https://github.com/rust-lang/rust-clippy/pull/8862)
525 * [`manual_range_contains`]: Now also lints on chains of `&&` and `||`
526   [#8884](https://github.com/rust-lang/rust-clippy/pull/8884)
527 * [`rc_clone_in_vec_init`]: Now also lints on `Weak`
528   [#8885](https://github.com/rust-lang/rust-clippy/pull/8885)
529 * [`dbg_macro`]: Introduce `allow-dbg-in-tests` config option
530   [#8897](https://github.com/rust-lang/rust-clippy/pull/8897)
531 * [`use_self`]: Now also lints on `TupleStruct` and `Struct` patterns
532   [#8899](https://github.com/rust-lang/rust-clippy/pull/8899)
533 * [`manual_find_map`] and [`manual_filter_map`]: Now also lints on more complex
534   method chains inside `map`
535   [#8930](https://github.com/rust-lang/rust-clippy/pull/8930)
536 * [`needless_return`]: Now also lints on macro expressions in return statements
537   [#8932](https://github.com/rust-lang/rust-clippy/pull/8932)
538 * [`doc_markdown`]: Users can now indicate, that the `doc-valid-idents` config
539   should extend the default and not replace it
540   [#8944](https://github.com/rust-lang/rust-clippy/pull/8944)
541 * [`disallowed_names`]: Users can now indicate, that the `disallowed-names`
542   config should extend the default and not replace it
543   [#8944](https://github.com/rust-lang/rust-clippy/pull/8944)
544 * [`never_loop`]: Now checks for `continue` in struct expression
545   [#9002](https://github.com/rust-lang/rust-clippy/pull/9002)
546
547 ### False Positive Fixes
548
549 * [`useless_transmute`]: No longer lints on types with erased regions
550   [#8564](https://github.com/rust-lang/rust-clippy/pull/8564)
551 * [`vec_init_then_push`]: No longer lints when further extended
552   [#8699](https://github.com/rust-lang/rust-clippy/pull/8699)
553 * [`cmp_owned`]: No longer lints on `From::from` for `Copy` types
554   [#8807](https://github.com/rust-lang/rust-clippy/pull/8807)
555 * [`redundant_allocation`]: No longer lints on fat pointers that would become
556   thin pointers [#8813](https://github.com/rust-lang/rust-clippy/pull/8813)
557 * [`derive_partial_eq_without_eq`]:
558     * Handle differing predicates applied by `#[derive(PartialEq)]` and
559       `#[derive(Eq)]`
560       [#8869](https://github.com/rust-lang/rust-clippy/pull/8869)
561     * No longer lints on non-public types and better handles generics
562       [#8950](https://github.com/rust-lang/rust-clippy/pull/8950)
563 * [`empty_line_after_outer_attr`]: No longer lints empty lines in inner
564   string values [#8892](https://github.com/rust-lang/rust-clippy/pull/8892)
565 * [`branches_sharing_code`]: No longer lints when using different binding names
566   [#8901](https://github.com/rust-lang/rust-clippy/pull/8901)
567 * [`significant_drop_in_scrutinee`]: No longer lints on Try `?` and `await`
568   desugared expressions [#8902](https://github.com/rust-lang/rust-clippy/pull/8902)
569 * [`checked_conversions`]: No longer lints in `const` contexts
570   [#8907](https://github.com/rust-lang/rust-clippy/pull/8907)
571 * [`iter_overeager_cloned`]: No longer lints on `.cloned().flatten()` when
572   `T::Item` doesn't implement `IntoIterator`
573   [#8960](https://github.com/rust-lang/rust-clippy/pull/8960)
574
575 ### Suggestion Fixes/Improvements
576
577 * [`vec_init_then_push`]: Suggest to remove `mut` binding when possible
578   [#8699](https://github.com/rust-lang/rust-clippy/pull/8699)
579 * [`manual_range_contains`]: Fix suggestion for integers with different signs
580   [#8763](https://github.com/rust-lang/rust-clippy/pull/8763)
581 * [`identity_op`]: Add parenthesis to suggestions where required
582   [#8786](https://github.com/rust-lang/rust-clippy/pull/8786)
583 * [`cast_lossless`]: No longer gives wrong suggestion on `usize`/`isize`->`f64`
584   [#8778](https://github.com/rust-lang/rust-clippy/pull/8778)
585 * [`rc_clone_in_vec_init`]: Add suggestion
586   [#8814](https://github.com/rust-lang/rust-clippy/pull/8814)
587 * The "unknown field" error messages for config files now wraps the field names
588   [#8823](https://github.com/rust-lang/rust-clippy/pull/8823)
589 * [`cast_abs_to_unsigned`]: Do not remove cast if it's required
590   [#8876](https://github.com/rust-lang/rust-clippy/pull/8876)
591 * [`significant_drop_in_scrutinee`]: Improve lint message for types that are not
592   references and not trivially clone-able
593   [#8902](https://github.com/rust-lang/rust-clippy/pull/8902)
594 * [`for_loops_over_fallibles`]: Now suggests the correct variant of `iter()`,
595   `iter_mut()` or `into_iter()`
596   [#8941](https://github.com/rust-lang/rust-clippy/pull/8941)
597
598 ### ICE Fixes
599
600 * Fix ICE in [`let_unit_value`] when calling a `static`/`const` callable type
601   [#8835](https://github.com/rust-lang/rust-clippy/pull/8835)
602 * Fix ICEs on callable `static`/`const`s
603   [#8896](https://github.com/rust-lang/rust-clippy/pull/8896)
604 * [`needless_late_init`]
605   [#8912](https://github.com/rust-lang/rust-clippy/pull/8912)
606 * Fix ICE in shadow lints
607   [#8913](https://github.com/rust-lang/rust-clippy/pull/8913)
608
609 ### Documentation Improvements
610
611 * Clippy has a [Book](https://doc.rust-lang.org/nightly/clippy/) now!
612   [#7359](https://github.com/rust-lang/rust-clippy/pull/7359)
613 * Add a *copy lint name*-button to Clippy's lint list
614   [#8839](https://github.com/rust-lang/rust-clippy/pull/8839)
615 * Display past names of renamed lints on Clippy's lint list
616   [#8843](https://github.com/rust-lang/rust-clippy/pull/8843)
617 * Add the ability to show the lint output in the lint list
618   [#8947](https://github.com/rust-lang/rust-clippy/pull/8947)
619
620 ## Rust 1.62
621
622 Released 2022-06-30
623
624 [d0cf3481...7c21f91b](https://github.com/rust-lang/rust-clippy/compare/d0cf3481...7c21f91b)
625
626 ### New Lints
627
628 * [`large_include_file`]
629   [#8727](https://github.com/rust-lang/rust-clippy/pull/8727)
630 * [`cast_abs_to_unsigned`]
631   [#8635](https://github.com/rust-lang/rust-clippy/pull/8635)
632 * [`err_expect`]
633   [#8606](https://github.com/rust-lang/rust-clippy/pull/8606)
634 * [`unnecessary_owned_empty_strings`]
635   [#8660](https://github.com/rust-lang/rust-clippy/pull/8660)
636 * [`empty_structs_with_brackets`]
637   [#8594](https://github.com/rust-lang/rust-clippy/pull/8594)
638 * [`crate_in_macro_def`]
639   [#8576](https://github.com/rust-lang/rust-clippy/pull/8576)
640 * [`needless_option_take`]
641   [#8665](https://github.com/rust-lang/rust-clippy/pull/8665)
642 * [`bytes_count_to_len`]
643   [#8711](https://github.com/rust-lang/rust-clippy/pull/8711)
644 * [`is_digit_ascii_radix`]
645   [#8624](https://github.com/rust-lang/rust-clippy/pull/8624)
646 * [`await_holding_invalid_type`]
647   [#8707](https://github.com/rust-lang/rust-clippy/pull/8707)
648 * [`trim_split_whitespace`]
649   [#8575](https://github.com/rust-lang/rust-clippy/pull/8575)
650 * [`pub_use`]
651   [#8670](https://github.com/rust-lang/rust-clippy/pull/8670)
652 * [`format_push_string`]
653   [#8626](https://github.com/rust-lang/rust-clippy/pull/8626)
654 * [`empty_drop`]
655   [#8571](https://github.com/rust-lang/rust-clippy/pull/8571)
656 * [`drop_non_drop`]
657   [#8630](https://github.com/rust-lang/rust-clippy/pull/8630)
658 * [`forget_non_drop`]
659   [#8630](https://github.com/rust-lang/rust-clippy/pull/8630)
660
661 ### Moves and Deprecations
662
663 * Move [`only_used_in_recursion`] to `nursery` (now allow-by-default)
664   [#8783](https://github.com/rust-lang/rust-clippy/pull/8783)
665 * Move [`stable_sort_primitive`] to `pedantic` (now allow-by-default)
666   [#8716](https://github.com/rust-lang/rust-clippy/pull/8716)
667
668 ### Enhancements
669
670 * Remove overlap between [`manual_split_once`] and [`needless_splitn`]
671   [#8631](https://github.com/rust-lang/rust-clippy/pull/8631)
672 * [`map_identity`]: Now checks for needless `map_err`
673   [#8487](https://github.com/rust-lang/rust-clippy/pull/8487)
674 * [`extra_unused_lifetimes`]: Now checks for impl lifetimes
675   [#8737](https://github.com/rust-lang/rust-clippy/pull/8737)
676 * [`cast_possible_truncation`]: Now catches more cases with larger shift or divide operations
677   [#8687](https://github.com/rust-lang/rust-clippy/pull/8687)
678 * [`identity_op`]: Now checks for modulo expressions
679   [#8519](https://github.com/rust-lang/rust-clippy/pull/8519)
680 * [`panic`]: No longer lint in constant context
681   [#8592](https://github.com/rust-lang/rust-clippy/pull/8592)
682 * [`manual_split_once`]: Now lints manual iteration of `splitn`
683   [#8717](https://github.com/rust-lang/rust-clippy/pull/8717)
684 * [`self_named_module_files`], [`mod_module_files`]: Now handle relative module paths
685   [#8611](https://github.com/rust-lang/rust-clippy/pull/8611)
686 * [`unsound_collection_transmute`]: Now has better size and alignment checks
687   [#8648](https://github.com/rust-lang/rust-clippy/pull/8648)
688 * [`unnested_or_patterns`]: Ignore cases, where the suggestion would be longer
689   [#8619](https://github.com/rust-lang/rust-clippy/pull/8619)
690
691 ### False Positive Fixes
692
693 * [`rest_pat_in_fully_bound_structs`]: Now ignores structs marked with `#[non_exhaustive]`
694   [#8690](https://github.com/rust-lang/rust-clippy/pull/8690)
695 * [`needless_late_init`]: No longer lints `if let` statements, `let mut` bindings or instances that
696   changes the drop order significantly
697   [#8617](https://github.com/rust-lang/rust-clippy/pull/8617)
698 * [`unnecessary_cast`]: No longer lints to casts to aliased or non-primitive types
699   [#8596](https://github.com/rust-lang/rust-clippy/pull/8596)
700 * [`init_numbered_fields`]: No longer lints type aliases
701   [#8780](https://github.com/rust-lang/rust-clippy/pull/8780)
702 * [`needless_option_as_deref`]: No longer lints for `as_deref_mut` on `Option` values that can't be moved
703   [#8646](https://github.com/rust-lang/rust-clippy/pull/8646)
704 * [`mistyped_literal_suffixes`]: Now ignores float literals without an exponent
705   [#8742](https://github.com/rust-lang/rust-clippy/pull/8742)
706 * [`undocumented_unsafe_blocks`]: Now ignores unsafe blocks from proc-macros and works better for sub-expressions
707   [#8450](https://github.com/rust-lang/rust-clippy/pull/8450)
708 * [`same_functions_in_if_condition`]: Now allows different constants, even if they have the same value
709   [#8673](https://github.com/rust-lang/rust-clippy/pull/8673)
710 * [`needless_match`]: Now checks for more complex types and ignores type coercion
711   [#8549](https://github.com/rust-lang/rust-clippy/pull/8549)
712 * [`assertions_on_constants`]: Now ignores constants from `cfg!` macros
713   [#8614](https://github.com/rust-lang/rust-clippy/pull/8614)
714 * [`indexing_slicing`]: Fix false positives with constant indices in
715   [#8588](https://github.com/rust-lang/rust-clippy/pull/8588)
716 * [`iter_with_drain`]: Now ignores iterator references
717   [#8668](https://github.com/rust-lang/rust-clippy/pull/8668)
718 * [`useless_attribute`]: Now allows [`redundant_pub_crate`] on `use` items
719   [#8743](https://github.com/rust-lang/rust-clippy/pull/8743)
720 * [`cast_ptr_alignment`]: Now ignores expressions, when used for unaligned reads and writes
721   [#8632](https://github.com/rust-lang/rust-clippy/pull/8632)
722 * [`wrong_self_convention`]: Now allows `&mut self` and no self as arguments for `is_*` methods
723   [#8738](https://github.com/rust-lang/rust-clippy/pull/8738)
724 * [`mut_from_ref`]: Only lint in unsafe code
725   [#8647](https://github.com/rust-lang/rust-clippy/pull/8647)
726 * [`redundant_pub_crate`]: Now allows macro exports
727   [#8736](https://github.com/rust-lang/rust-clippy/pull/8736)
728 * [`needless_match`]: Ignores cases where the else block expression is different
729   [#8700](https://github.com/rust-lang/rust-clippy/pull/8700)
730 * [`transmute_int_to_char`]: Now allows transmutations in `const` code
731   [#8610](https://github.com/rust-lang/rust-clippy/pull/8610)
732 * [`manual_non_exhaustive`]: Ignores cases, where the enum value is used
733   [#8645](https://github.com/rust-lang/rust-clippy/pull/8645)
734 * [`redundant_closure`]: Now ignores coerced closure
735   [#8431](https://github.com/rust-lang/rust-clippy/pull/8431)
736 * [`identity_op`]: Is now ignored in cases where extra brackets would be needed
737   [#8730](https://github.com/rust-lang/rust-clippy/pull/8730)
738 * [`let_unit_value`]: Now ignores cases which are used for type inference
739   [#8563](https://github.com/rust-lang/rust-clippy/pull/8563)
740
741 ### Suggestion Fixes/Improvements
742
743 * [`manual_split_once`]: Fixed incorrect suggestions for single result accesses
744   [#8631](https://github.com/rust-lang/rust-clippy/pull/8631)
745 * [`bytes_nth`]: Fix typos in the diagnostic message
746   [#8403](https://github.com/rust-lang/rust-clippy/pull/8403)
747 * [`mistyped_literal_suffixes`]: Now suggests the correct integer types
748   [#8742](https://github.com/rust-lang/rust-clippy/pull/8742)
749 * [`unnecessary_to_owned`]: Fixed suggestion based on the configured msrv
750   [#8692](https://github.com/rust-lang/rust-clippy/pull/8692)
751 * [`single_element_loop`]: Improve lint for Edition 2021 arrays
752   [#8616](https://github.com/rust-lang/rust-clippy/pull/8616)
753 * [`manual_bits`]: Now includes a cast for proper type conversion, when needed
754   [#8677](https://github.com/rust-lang/rust-clippy/pull/8677)
755 * [`option_map_unit_fn`], [`result_map_unit_fn`]: Fix some incorrect suggestions
756   [#8584](https://github.com/rust-lang/rust-clippy/pull/8584)
757 * [`collapsible_else_if`]: Add whitespace in suggestion
758   [#8729](https://github.com/rust-lang/rust-clippy/pull/8729)
759 * [`transmute_bytes_to_str`]: Now suggest `from_utf8_unchecked` in `const` context
760   [#8612](https://github.com/rust-lang/rust-clippy/pull/8612)
761 * [`map_clone`]: Improve message and suggestion based on the msrv
762   [#8688](https://github.com/rust-lang/rust-clippy/pull/8688)
763 * [`needless_late_init`]: Now shows the `let` statement where it was first initialized
764   [#8779](https://github.com/rust-lang/rust-clippy/pull/8779)
765
766 ### ICE Fixes
767
768 * [`only_used_in_recursion`]
769   [#8691](https://github.com/rust-lang/rust-clippy/pull/8691)
770 * [`cast_slice_different_sizes`]
771   [#8720](https://github.com/rust-lang/rust-clippy/pull/8720)
772 * [`iter_overeager_cloned`]
773   [#8602](https://github.com/rust-lang/rust-clippy/pull/8602)
774 * [`undocumented_unsafe_blocks`]
775   [#8686](https://github.com/rust-lang/rust-clippy/pull/8686)
776
777 ## Rust 1.61
778
779 Released 2022-05-19
780
781 [57b3c4b...d0cf3481](https://github.com/rust-lang/rust-clippy/compare/57b3c4b...d0cf3481)
782
783 ### New Lints
784
785 * [`only_used_in_recursion`]
786   [#8422](https://github.com/rust-lang/rust-clippy/pull/8422)
787 * [`cast_enum_truncation`]
788   [#8381](https://github.com/rust-lang/rust-clippy/pull/8381)
789 * [`missing_spin_loop`]
790   [#8174](https://github.com/rust-lang/rust-clippy/pull/8174)
791 * [`deref_by_slicing`]
792   [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
793 * [`needless_match`]
794   [#8471](https://github.com/rust-lang/rust-clippy/pull/8471)
795 * [`allow_attributes_without_reason`] (Requires `#![feature(lint_reasons)]`)
796   [#8504](https://github.com/rust-lang/rust-clippy/pull/8504)
797 * [`print_in_format_impl`]
798   [#8253](https://github.com/rust-lang/rust-clippy/pull/8253)
799 * [`unnecessary_find_map`]
800   [#8489](https://github.com/rust-lang/rust-clippy/pull/8489)
801 * [`or_then_unwrap`]
802   [#8561](https://github.com/rust-lang/rust-clippy/pull/8561)
803 * [`unnecessary_join`]
804   [#8579](https://github.com/rust-lang/rust-clippy/pull/8579)
805 * [`iter_with_drain`]
806   [#8483](https://github.com/rust-lang/rust-clippy/pull/8483)
807 * [`cast_enum_constructor`]
808   [#8562](https://github.com/rust-lang/rust-clippy/pull/8562)
809 * [`cast_slice_different_sizes`]
810   [#8445](https://github.com/rust-lang/rust-clippy/pull/8445)
811
812 ### Moves and Deprecations
813
814 * Moved [`transmute_undefined_repr`] to `nursery` (now allow-by-default)
815   [#8432](https://github.com/rust-lang/rust-clippy/pull/8432)
816 * Moved [`try_err`] to `restriction`
817   [#8544](https://github.com/rust-lang/rust-clippy/pull/8544)
818 * Move [`iter_with_drain`] to `nursery`
819   [#8541](https://github.com/rust-lang/rust-clippy/pull/8541)
820 * Renamed `to_string_in_display` to [`recursive_format_impl`]
821   [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
822
823 ### Enhancements
824
825 * [`dbg_macro`]: The lint level can now be set with crate attributes and works inside macros
826   [#8411](https://github.com/rust-lang/rust-clippy/pull/8411)
827 * [`ptr_as_ptr`]: Now works inside macros
828   [#8442](https://github.com/rust-lang/rust-clippy/pull/8442)
829 * [`use_self`]: Now works for variants in match expressions
830   [#8456](https://github.com/rust-lang/rust-clippy/pull/8456)
831 * [`await_holding_lock`]: Now lints for `parking_lot::{Mutex, RwLock}`
832   [#8419](https://github.com/rust-lang/rust-clippy/pull/8419)
833 * [`recursive_format_impl`]: Now checks for format calls on `self`
834   [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
835
836 ### False Positive Fixes
837
838 * [`new_without_default`]: No longer lints for `new()` methods with `#[doc(hidden)]`
839   [#8472](https://github.com/rust-lang/rust-clippy/pull/8472)
840 * [`transmute_undefined_repr`]: No longer lints for single field structs with `#[repr(C)]`,
841   generic parameters, wide pointers, unions, tuples and allow several forms of type erasure
842   [#8425](https://github.com/rust-lang/rust-clippy/pull/8425)
843   [#8553](https://github.com/rust-lang/rust-clippy/pull/8553)
844   [#8440](https://github.com/rust-lang/rust-clippy/pull/8440)
845   [#8547](https://github.com/rust-lang/rust-clippy/pull/8547)
846 * [`match_single_binding`], [`match_same_arms`], [`match_as_ref`], [`match_bool`]: No longer
847   lint `match` expressions with `cfg`ed arms
848   [#8443](https://github.com/rust-lang/rust-clippy/pull/8443)
849 * [`single_component_path_imports`]: No longer lint on macros
850   [#8537](https://github.com/rust-lang/rust-clippy/pull/8537)
851 * [`ptr_arg`]: Allow `&mut` arguments for `Cow<_>`
852   [#8552](https://github.com/rust-lang/rust-clippy/pull/8552)
853 * [`needless_borrow`]: No longer lints for method calls
854   [#8441](https://github.com/rust-lang/rust-clippy/pull/8441)
855 * [`match_same_arms`]: Now ensures that interposing arm patterns don't overlap
856   [#8232](https://github.com/rust-lang/rust-clippy/pull/8232)
857 * [`default_trait_access`]: Now allows `Default::default` in update expressions
858   [#8433](https://github.com/rust-lang/rust-clippy/pull/8433)
859
860 ### Suggestion Fixes/Improvements
861
862 * [`redundant_slicing`]: Fixed suggestion for a method calls
863   [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
864 * [`map_flatten`]: Long suggestions will now be split up into two help messages
865   [#8520](https://github.com/rust-lang/rust-clippy/pull/8520)
866 * [`unnecessary_lazy_evaluations`]: Now shows suggestions for longer code snippets
867   [#8543](https://github.com/rust-lang/rust-clippy/pull/8543)
868 * [`unnecessary_sort_by`]: Now suggests `Reverse` including the path
869   [#8462](https://github.com/rust-lang/rust-clippy/pull/8462)
870 * [`search_is_some`]: More suggestions are now `MachineApplicable`
871   [#8536](https://github.com/rust-lang/rust-clippy/pull/8536)
872
873 ### Documentation Improvements
874
875 * [`new_without_default`]: Document `pub` requirement for the struct and fields
876   [#8429](https://github.com/rust-lang/rust-clippy/pull/8429)
877
878 ## Rust 1.60
879
880 Released 2022-04-07
881
882 [0eff589...57b3c4b](https://github.com/rust-lang/rust-clippy/compare/0eff589...57b3c4b)
883
884 ### New Lints
885
886 * [`single_char_lifetime_names`]
887   [#8236](https://github.com/rust-lang/rust-clippy/pull/8236)
888 * [`iter_overeager_cloned`]
889   [#8203](https://github.com/rust-lang/rust-clippy/pull/8203)
890 * [`transmute_undefined_repr`]
891   [#8398](https://github.com/rust-lang/rust-clippy/pull/8398)
892 * [`default_union_representation`]
893   [#8289](https://github.com/rust-lang/rust-clippy/pull/8289)
894 * [`manual_bits`]
895   [#8213](https://github.com/rust-lang/rust-clippy/pull/8213)
896 * [`borrow_as_ptr`]
897   [#8210](https://github.com/rust-lang/rust-clippy/pull/8210)
898
899 ### Moves and Deprecations
900
901 * Moved [`disallowed_methods`] and [`disallowed_types`] to `style` (now warn-by-default)
902   [#8261](https://github.com/rust-lang/rust-clippy/pull/8261)
903 * Rename `ref_in_deref` to [`needless_borrow`]
904   [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
905 * Moved [`mutex_atomic`] to `nursery` (now allow-by-default)
906   [#8260](https://github.com/rust-lang/rust-clippy/pull/8260)
907
908 ### Enhancements
909
910 * [`ptr_arg`]: Now takes the argument usage into account and lints for mutable references
911   [#8271](https://github.com/rust-lang/rust-clippy/pull/8271)
912 * [`unused_io_amount`]: Now supports async read and write traits
913   [#8179](https://github.com/rust-lang/rust-clippy/pull/8179)
914 * [`while_let_on_iterator`]: Improved detection to catch more cases
915   [#8221](https://github.com/rust-lang/rust-clippy/pull/8221)
916 * [`trait_duplication_in_bounds`]: Now covers trait functions with `Self` bounds
917   [#8252](https://github.com/rust-lang/rust-clippy/pull/8252)
918 * [`unwrap_used`]: Now works for `.get(i).unwrap()` and `.get_mut(i).unwrap()`
919   [#8372](https://github.com/rust-lang/rust-clippy/pull/8372)
920 * [`map_clone`]: The suggestion takes `msrv` into account
921   [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
922 * [`manual_bits`] and [`borrow_as_ptr`]: Now track the `clippy::msrv` attribute
923   [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
924 * [`disallowed_methods`]: Now works for methods on primitive types
925   [#8112](https://github.com/rust-lang/rust-clippy/pull/8112)
926 * [`not_unsafe_ptr_arg_deref`]: Now works for type aliases
927   [#8273](https://github.com/rust-lang/rust-clippy/pull/8273)
928 * [`needless_question_mark`]: Now works for async functions
929   [#8311](https://github.com/rust-lang/rust-clippy/pull/8311)
930 * [`iter_not_returning_iterator`]: Now handles type projections
931   [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
932 * [`wrong_self_convention`]: Now detects wrong `self` references in more cases
933   [#8208](https://github.com/rust-lang/rust-clippy/pull/8208)
934 * [`single_match`]: Now works for `match` statements with tuples
935   [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
936
937 ### False Positive Fixes
938
939 * [`erasing_op`]: No longer triggers if the output type changes
940   [#8204](https://github.com/rust-lang/rust-clippy/pull/8204)
941 * [`if_same_then_else`]: No longer triggers for `if let` statements
942   [#8297](https://github.com/rust-lang/rust-clippy/pull/8297)
943 * [`manual_memcpy`]: No longer lints on `VecDeque`
944   [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
945 * [`trait_duplication_in_bounds`]: Now takes path segments into account
946   [#8315](https://github.com/rust-lang/rust-clippy/pull/8315)
947 * [`deref_addrof`]: No longer lints when the dereference or borrow occurs in different a context
948   [#8268](https://github.com/rust-lang/rust-clippy/pull/8268)
949 * [`type_repetition_in_bounds`]: Now checks for full equality to prevent false positives
950   [#8224](https://github.com/rust-lang/rust-clippy/pull/8224)
951 * [`ptr_arg`]: No longer lint for mutable references in traits
952   [#8369](https://github.com/rust-lang/rust-clippy/pull/8369)
953 * [`implicit_clone`]: No longer lints for double references
954   [#8231](https://github.com/rust-lang/rust-clippy/pull/8231)
955 * [`needless_lifetimes`]: No longer lints lifetimes for explicit `self` types
956   [#8278](https://github.com/rust-lang/rust-clippy/pull/8278)
957 * [`op_ref`]: No longer lints in `BinOp` impl if that can cause recursion
958   [#8298](https://github.com/rust-lang/rust-clippy/pull/8298)
959 * [`enum_variant_names`]: No longer triggers for empty variant names
960   [#8329](https://github.com/rust-lang/rust-clippy/pull/8329)
961 * [`redundant_closure`]: No longer lints for `Arc<T>` or `Rc<T>`
962   [#8193](https://github.com/rust-lang/rust-clippy/pull/8193)
963 * [`iter_not_returning_iterator`]: No longer lints on trait implementations but therefore on trait definitions
964   [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
965 * [`single_match`]: No longer lints on exhaustive enum patterns without a wildcard
966   [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
967 * [`manual_swap`]: No longer lints on cases that involve automatic dereferences
968   [#8220](https://github.com/rust-lang/rust-clippy/pull/8220)
969 * [`useless_format`]: Now works for implicit named arguments
970   [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
971
972 ### Suggestion Fixes/Improvements
973
974 * [`needless_borrow`]: Prevent mutable borrows being moved and suggest removing the borrow on method calls
975   [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
976 * [`chars_next_cmp`]: Correctly escapes the suggestion
977   [#8376](https://github.com/rust-lang/rust-clippy/pull/8376)
978 * [`explicit_write`]: Add suggestions for `write!`s with format arguments
979   [#8365](https://github.com/rust-lang/rust-clippy/pull/8365)
980 * [`manual_memcpy`]: Suggests `copy_from_slice` when applicable
981   [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
982 * [`or_fun_call`]: Improved suggestion display for long arguments
983   [#8292](https://github.com/rust-lang/rust-clippy/pull/8292)
984 * [`unnecessary_cast`]: Now correctly includes the sign
985   [#8350](https://github.com/rust-lang/rust-clippy/pull/8350)
986 * [`cmp_owned`]: No longer flips the comparison order
987   [#8299](https://github.com/rust-lang/rust-clippy/pull/8299)
988 * [`explicit_counter_loop`]: Now correctly suggests `iter()` on references
989   [#8382](https://github.com/rust-lang/rust-clippy/pull/8382)
990
991 ### ICE Fixes
992
993 * [`manual_split_once`]
994   [#8250](https://github.com/rust-lang/rust-clippy/pull/8250)
995
996 ### Documentation Improvements
997
998 * [`map_flatten`]: Add documentation for the `Option` type
999   [#8354](https://github.com/rust-lang/rust-clippy/pull/8354)
1000 * Document that Clippy's driver might use a different code generation than rustc
1001   [#8037](https://github.com/rust-lang/rust-clippy/pull/8037)
1002 * Clippy's lint list will now automatically focus the search box
1003   [#8343](https://github.com/rust-lang/rust-clippy/pull/8343)
1004
1005 ### Others
1006
1007 * Clippy now warns if we find multiple Clippy config files exist
1008   [#8326](https://github.com/rust-lang/rust-clippy/pull/8326)
1009
1010 ## Rust 1.59
1011
1012 Released 2022-02-24
1013
1014 [e181011...0eff589](https://github.com/rust-lang/rust-clippy/compare/e181011...0eff589)
1015
1016 ### New Lints
1017
1018 * [`index_refutable_slice`]
1019   [#7643](https://github.com/rust-lang/rust-clippy/pull/7643)
1020 * [`needless_splitn`]
1021   [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
1022 * [`unnecessary_to_owned`]
1023   [#7978](https://github.com/rust-lang/rust-clippy/pull/7978)
1024 * [`needless_late_init`]
1025   [#7995](https://github.com/rust-lang/rust-clippy/pull/7995)
1026 * [`octal_escapes`] [#8007](https://github.com/rust-lang/rust-clippy/pull/8007)
1027 * [`return_self_not_must_use`]
1028   [#8071](https://github.com/rust-lang/rust-clippy/pull/8071)
1029 * [`init_numbered_fields`]
1030   [#8170](https://github.com/rust-lang/rust-clippy/pull/8170)
1031
1032 ### Moves and Deprecations
1033
1034 * Move `if_then_panic` to `pedantic` and rename to [`manual_assert`] (now
1035   allow-by-default) [#7810](https://github.com/rust-lang/rust-clippy/pull/7810)
1036 * Rename `disallow_type` to [`disallowed_types`] and `disallowed_method` to
1037   [`disallowed_methods`]
1038   [#7984](https://github.com/rust-lang/rust-clippy/pull/7984)
1039 * Move [`map_flatten`] to `complexity` (now warn-by-default)
1040   [#8054](https://github.com/rust-lang/rust-clippy/pull/8054)
1041
1042 ### Enhancements
1043
1044 * [`match_overlapping_arm`]: Fix false negative where after included ranges,
1045   overlapping ranges weren't linted anymore
1046   [#7909](https://github.com/rust-lang/rust-clippy/pull/7909)
1047 * [`deprecated_cfg_attr`]: Now takes the specified MSRV into account
1048   [#7944](https://github.com/rust-lang/rust-clippy/pull/7944)
1049 * [`cast_lossless`]: Now also lints for `bool` to integer casts
1050   [#7948](https://github.com/rust-lang/rust-clippy/pull/7948)
1051 * [`let_underscore_lock`]: Also emit lints for the `parking_lot` crate
1052   [#7957](https://github.com/rust-lang/rust-clippy/pull/7957)
1053 * [`needless_borrow`]
1054   [#7977](https://github.com/rust-lang/rust-clippy/pull/7977)
1055     * Lint when a borrow is auto-dereffed more than once
1056     * Lint in the trailing expression of a block for a match arm
1057 * [`strlen_on_c_strings`]
1058   [8001](https://github.com/rust-lang/rust-clippy/pull/8001)
1059     * Lint when used without a fully-qualified path
1060     * Suggest removing the surrounding unsafe block when possible
1061 * [`non_ascii_literal`]: Now also lints on `char`s, not just `string`s
1062   [#8034](https://github.com/rust-lang/rust-clippy/pull/8034)
1063 * [`single_char_pattern`]: Now also lints on `split_inclusive`, `split_once`,
1064   `rsplit_once`, `replace`, and `replacen`
1065   [#8077](https://github.com/rust-lang/rust-clippy/pull/8077)
1066 * [`unwrap_or_else_default`]: Now also lints on `std` constructors like
1067   `Vec::new`, `HashSet::new`, and `HashMap::new`
1068   [#8163](https://github.com/rust-lang/rust-clippy/pull/8163)
1069 * [`shadow_reuse`]: Now also lints on shadowed `if let` bindings, instead of
1070   [`shadow_unrelated`]
1071   [#8165](https://github.com/rust-lang/rust-clippy/pull/8165)
1072
1073 ### False Positive Fixes
1074
1075 * [`or_fun_call`], [`unnecessary_lazy_evaluations`]: Improve heuristics, so that
1076   cheap functions (e.g. calling `.len()` on a `Vec`) won't get linted anymore
1077   [#7639](https://github.com/rust-lang/rust-clippy/pull/7639)
1078 * [`manual_split_once`]: No longer suggests code changing the original behavior
1079   [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
1080 * Don't show [`no_effect`] or [`unnecessary_operation`] warning for unit struct
1081   implementing `FnOnce`
1082   [#7898](https://github.com/rust-lang/rust-clippy/pull/7898)
1083 * [`semicolon_if_nothing_returned`]: Fixed a bug, where the lint wrongly
1084   triggered on `let-else` statements
1085   [#7955](https://github.com/rust-lang/rust-clippy/pull/7955)
1086 * [`if_then_some_else_none`]: No longer lints if there is an early return
1087   [#7980](https://github.com/rust-lang/rust-clippy/pull/7980)
1088 * [`needless_collect`]: No longer suggests removal of `collect` when removal
1089   would create code requiring mutably borrowing a value multiple times
1090   [#7982](https://github.com/rust-lang/rust-clippy/pull/7982)
1091 * [`shadow_same`]: Fix false positive for `async` function's params
1092   [#7997](https://github.com/rust-lang/rust-clippy/pull/7997)
1093 * [`suboptimal_flops`]: No longer triggers in constant functions
1094   [#8009](https://github.com/rust-lang/rust-clippy/pull/8009)
1095 * [`type_complexity`]: No longer lints on associated types in traits
1096   [#8030](https://github.com/rust-lang/rust-clippy/pull/8030)
1097 * [`question_mark`]: No longer lints if returned object is not local
1098   [#8080](https://github.com/rust-lang/rust-clippy/pull/8080)
1099 * [`option_if_let_else`]: No longer lint on complex sub-patterns
1100   [#8086](https://github.com/rust-lang/rust-clippy/pull/8086)
1101 * [`blocks_in_if_conditions`]: No longer lints on empty closures
1102   [#8100](https://github.com/rust-lang/rust-clippy/pull/8100)
1103 * [`enum_variant_names`]: No longer lint when first prefix is only a substring
1104   of a camel-case word
1105   [#8127](https://github.com/rust-lang/rust-clippy/pull/8127)
1106 * [`identity_op`]: Only lint on integral operands
1107   [#8183](https://github.com/rust-lang/rust-clippy/pull/8183)
1108
1109 ### Suggestion Fixes/Improvements
1110
1111 * [`search_is_some`]: Fix suggestion for `any()` not taking item by reference
1112   [#7463](https://github.com/rust-lang/rust-clippy/pull/7463)
1113 * [`almost_swapped`]: Now detects if there is a `no_std` or `no_core` attribute
1114   and adapts the suggestion accordingly
1115   [#7877](https://github.com/rust-lang/rust-clippy/pull/7877)
1116 * [`redundant_pattern_matching`]: Fix suggestion for deref expressions
1117   [#7949](https://github.com/rust-lang/rust-clippy/pull/7949)
1118 * [`explicit_counter_loop`]: Now also produces a suggestion for non-`usize`
1119   types [#7950](https://github.com/rust-lang/rust-clippy/pull/7950)
1120 * [`manual_map`]: Fix suggestion when used with unsafe functions and blocks
1121   [#7968](https://github.com/rust-lang/rust-clippy/pull/7968)
1122 * [`option_map_or_none`]: Suggest `map` over `and_then` when possible
1123   [#7971](https://github.com/rust-lang/rust-clippy/pull/7971)
1124 * [`option_if_let_else`]: No longer expands macros in the suggestion
1125   [#7974](https://github.com/rust-lang/rust-clippy/pull/7974)
1126 * [`iter_cloned_collect`]: Suggest `copied` over `cloned` when possible
1127   [#8006](https://github.com/rust-lang/rust-clippy/pull/8006)
1128 * [`doc_markdown`]: No longer uses inline hints to improve readability of
1129   suggestion [#8011](https://github.com/rust-lang/rust-clippy/pull/8011)
1130 * [`needless_question_mark`]: Now better explains the suggestion
1131   [#8028](https://github.com/rust-lang/rust-clippy/pull/8028)
1132 * [`single_char_pattern`]: Escape backslash `\` in suggestion
1133   [#8067](https://github.com/rust-lang/rust-clippy/pull/8067)
1134 * [`needless_bool`]: Suggest `a != b` over `!(a == b)`
1135   [#8117](https://github.com/rust-lang/rust-clippy/pull/8117)
1136 * [`iter_skip_next`]: Suggest to add a `mut` if it is necessary in order to
1137   apply this lints suggestion
1138   [#8133](https://github.com/rust-lang/rust-clippy/pull/8133)
1139 * [`neg_multiply`]: Now produces a suggestion
1140   [#8144](https://github.com/rust-lang/rust-clippy/pull/8144)
1141 * [`needless_return`]: Now suggests the unit type `()` over an empty block `{}`
1142   in match arms [#8185](https://github.com/rust-lang/rust-clippy/pull/8185)
1143 * [`suboptimal_flops`]: Now gives a syntactically correct suggestion for
1144   `to_radians` and `to_degrees`
1145   [#8187](https://github.com/rust-lang/rust-clippy/pull/8187)
1146
1147 ### ICE Fixes
1148
1149 * [`undocumented_unsafe_blocks`]
1150   [#7945](https://github.com/rust-lang/rust-clippy/pull/7945)
1151   [#7988](https://github.com/rust-lang/rust-clippy/pull/7988)
1152 * [`unnecessary_cast`]
1153   [#8167](https://github.com/rust-lang/rust-clippy/pull/8167)
1154
1155 ### Documentation Improvements
1156
1157 * [`print_stdout`], [`print_stderr`], [`dbg_macro`]: Document how the lint level
1158   can be changed crate-wide
1159   [#8040](https://github.com/rust-lang/rust-clippy/pull/8040)
1160 * Added a note to the `README` that config changes don't apply to already
1161   compiled code [#8175](https://github.com/rust-lang/rust-clippy/pull/8175)
1162
1163 ### Others
1164
1165 * [Clippy's lint
1166   list](https://rust-lang.github.io/rust-clippy/master/index.html) now displays
1167   the version a lint was added. :tada:
1168   [#7813](https://github.com/rust-lang/rust-clippy/pull/7813)
1169 * New and improved issue templates
1170   [#8032](https://github.com/rust-lang/rust-clippy/pull/8032)
1171 * _Dev:_ Add `cargo dev lint` command, to run your modified Clippy version on a
1172   file [#7917](https://github.com/rust-lang/rust-clippy/pull/7917)
1173
1174 ## Rust 1.58
1175
1176 Released 2022-01-13
1177
1178 [00e31fa...e181011](https://github.com/rust-lang/rust-clippy/compare/00e31fa...e181011)
1179
1180 ### Rust 1.58.1
1181
1182 * Move [`non_send_fields_in_send_ty`] to `nursery` (now allow-by-default)
1183   [#8075](https://github.com/rust-lang/rust-clippy/pull/8075)
1184 * [`useless_format`]: Handle implicit named arguments
1185   [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
1186
1187 ### New lints
1188
1189 * [`transmute_num_to_bytes`]
1190   [#7805](https://github.com/rust-lang/rust-clippy/pull/7805)
1191 * [`match_str_case_mismatch`]
1192   [#7806](https://github.com/rust-lang/rust-clippy/pull/7806)
1193 * [`format_in_format_args`], [`to_string_in_format_args`]
1194   [#7743](https://github.com/rust-lang/rust-clippy/pull/7743)
1195 * [`uninit_vec`]
1196   [#7682](https://github.com/rust-lang/rust-clippy/pull/7682)
1197 * [`fn_to_numeric_cast_any`]
1198   [#7705](https://github.com/rust-lang/rust-clippy/pull/7705)
1199 * [`undocumented_unsafe_blocks`]
1200   [#7748](https://github.com/rust-lang/rust-clippy/pull/7748)
1201 * [`trailing_empty_array`]
1202   [#7838](https://github.com/rust-lang/rust-clippy/pull/7838)
1203 * [`string_slice`]
1204   [#7878](https://github.com/rust-lang/rust-clippy/pull/7878)
1205
1206 ### Moves or deprecations of lints
1207
1208 * Move [`non_send_fields_in_send_ty`] to `suspicious`
1209   [#7874](https://github.com/rust-lang/rust-clippy/pull/7874)
1210 * Move [`non_ascii_literal`] to `restriction`
1211   [#7907](https://github.com/rust-lang/rust-clippy/pull/7907)
1212
1213 ### Changes that expand what code existing lints cover
1214
1215 * [`question_mark`] now covers `Result`
1216   [#7840](https://github.com/rust-lang/rust-clippy/pull/7840)
1217 * Make [`useless_format`] recognize bare `format!("")`
1218   [#7801](https://github.com/rust-lang/rust-clippy/pull/7801)
1219 * Lint on underscored variables with no side effects in [`no_effect`]
1220   [#7775](https://github.com/rust-lang/rust-clippy/pull/7775)
1221 * Expand [`match_ref_pats`] to check for multiple reference patterns
1222   [#7800](https://github.com/rust-lang/rust-clippy/pull/7800)
1223
1224 ### False positive fixes
1225
1226 * Fix false positive of [`implicit_saturating_sub`] with `else` clause
1227   [#7832](https://github.com/rust-lang/rust-clippy/pull/7832)
1228 * Fix [`question_mark`] when there is call in conditional predicate
1229   [#7860](https://github.com/rust-lang/rust-clippy/pull/7860)
1230 * [`mut_mut`] no longer lints when type is defined in external macros
1231   [#7795](https://github.com/rust-lang/rust-clippy/pull/7795)
1232 * Avoid [`eq_op`] in test functions
1233   [#7811](https://github.com/rust-lang/rust-clippy/pull/7811)
1234 * [`cast_possible_truncation`] no longer lints when cast is coming from `signum`
1235   method call [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
1236 * [`match_str_case_mismatch`] no longer lints on uncased characters
1237   [#7865](https://github.com/rust-lang/rust-clippy/pull/7865)
1238 * [`ptr_arg`] no longer lints references to type aliases
1239   [#7890](https://github.com/rust-lang/rust-clippy/pull/7890)
1240 * [`missing_safety_doc`] now also accepts "implementation safety" headers
1241   [#7856](https://github.com/rust-lang/rust-clippy/pull/7856)
1242 * [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]`
1243   attribute [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
1244 * [`if_not_else`] now ignores else-if statements
1245   [#7895](https://github.com/rust-lang/rust-clippy/pull/7895)
1246 * Avoid linting [`cast_possible_truncation`] on bit-reducing operations
1247   [#7819](https://github.com/rust-lang/rust-clippy/pull/7819)
1248 * Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are
1249   involved [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
1250 * [`unnecessary_sort_by`] now checks if argument implements `Ord` trait
1251   [#7824](https://github.com/rust-lang/rust-clippy/pull/7824)
1252 * Fix false positive in [`match_overlapping_arm`]
1253   [#7847](https://github.com/rust-lang/rust-clippy/pull/7847)
1254 * Prevent [`needless_lifetimes`] false positive in `async` function definition
1255   [#7901](https://github.com/rust-lang/rust-clippy/pull/7901)
1256
1257 ### Suggestion fixes/improvements
1258
1259 * Keep an initial `::` when [`doc_markdown`] suggests to use ticks
1260   [#7916](https://github.com/rust-lang/rust-clippy/pull/7916)
1261 * Add a machine applicable suggestion for the [`doc_markdown`] missing backticks
1262   lint [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
1263 * [`equatable_if_let`] no longer expands macros in the suggestion
1264   [#7788](https://github.com/rust-lang/rust-clippy/pull/7788)
1265 * Make [`shadow_reuse`] suggestion less verbose
1266   [#7782](https://github.com/rust-lang/rust-clippy/pull/7782)
1267
1268 ### ICE fixes
1269
1270 * Fix ICE in [`enum_variant_names`]
1271   [#7873](https://github.com/rust-lang/rust-clippy/pull/7873)
1272 * Fix ICE in [`undocumented_unsafe_blocks`]
1273   [#7891](https://github.com/rust-lang/rust-clippy/pull/7891)
1274
1275 ### Documentation improvements
1276
1277 * Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`],
1278   [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
1279   [#7827](https://github.com/rust-lang/rust-clippy/pull/7827)
1280 * Fix typo in example for [`match_result_ok`]
1281   [#7815](https://github.com/rust-lang/rust-clippy/pull/7815)
1282
1283 ### Others
1284
1285 * Allow giving reasons for [`disallowed_types`]
1286   [#7791](https://github.com/rust-lang/rust-clippy/pull/7791)
1287 * Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust
1288   2021. [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
1289 * Fix regression in [`semicolon_if_nothing_returned`] on macros containing while
1290   loops [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
1291 * Added a new configuration `literal-suffix-style` to enforce a certain style
1292   writing [`unseparated_literal_suffix`]
1293   [#7726](https://github.com/rust-lang/rust-clippy/pull/7726)
1294
1295 ## Rust 1.57
1296
1297 Released 2021-12-02
1298
1299 [7bfc26e...00e31fa](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...00e31fa)
1300
1301 ### New Lints
1302
1303 * [`negative_feature_names`]
1304   [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
1305 * [`redundant_feature_names`]
1306   [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
1307 * [`mod_module_files`]
1308   [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
1309 * [`self_named_module_files`]
1310   [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
1311 * [`manual_split_once`]
1312   [#7565](https://github.com/rust-lang/rust-clippy/pull/7565)
1313 * [`derivable_impls`]
1314   [#7570](https://github.com/rust-lang/rust-clippy/pull/7570)
1315 * [`needless_option_as_deref`]
1316   [#7596](https://github.com/rust-lang/rust-clippy/pull/7596)
1317 * [`iter_not_returning_iterator`]
1318   [#7610](https://github.com/rust-lang/rust-clippy/pull/7610)
1319 * [`same_name_method`]
1320   [#7653](https://github.com/rust-lang/rust-clippy/pull/7653)
1321 * [`manual_assert`] [#7669](https://github.com/rust-lang/rust-clippy/pull/7669)
1322 * [`non_send_fields_in_send_ty`]
1323   [#7709](https://github.com/rust-lang/rust-clippy/pull/7709)
1324 * [`equatable_if_let`]
1325   [#7762](https://github.com/rust-lang/rust-clippy/pull/7762)
1326
1327 ### Moves and Deprecations
1328
1329 * Move [`shadow_unrelated`] to `restriction`
1330   [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
1331 * Move [`option_if_let_else`] to `nursery`
1332   [#7568](https://github.com/rust-lang/rust-clippy/pull/7568)
1333 * Move [`branches_sharing_code`] to `nursery`
1334   [#7595](https://github.com/rust-lang/rust-clippy/pull/7595)
1335 * Rename `if_let_some_result` to [`match_result_ok`] which now also handles
1336   `while let` cases [#7608](https://github.com/rust-lang/rust-clippy/pull/7608)
1337 * Move [`many_single_char_names`] to `pedantic`
1338   [#7671](https://github.com/rust-lang/rust-clippy/pull/7671)
1339 * Move [`float_cmp`] to `pedantic`
1340   [#7692](https://github.com/rust-lang/rust-clippy/pull/7692)
1341 * Rename `box_vec` to [`box_collection`] and lint on more general cases
1342   [#7693](https://github.com/rust-lang/rust-clippy/pull/7693)
1343 * Uplift `invalid_atomic_ordering` to rustc
1344   [rust-lang/rust#84039](https://github.com/rust-lang/rust/pull/84039)
1345
1346 ### Enhancements
1347
1348 * Rewrite the `shadow*` lints, so that they find a lot more shadows and are not
1349   limited to certain patterns
1350   [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
1351 * The `avoid-breaking-exported-api` configuration now also works for
1352   [`box_collection`], [`redundant_allocation`], [`rc_buffer`], [`vec_box`],
1353   [`option_option`], [`linkedlist`], [`rc_mutex`]
1354   [#7560](https://github.com/rust-lang/rust-clippy/pull/7560)
1355 * [`unnecessary_unwrap`]: Now also checks for `expect`s
1356   [#7584](https://github.com/rust-lang/rust-clippy/pull/7584)
1357 * [`disallowed_methods`]: Allow adding a reason that will be displayed with the
1358   lint message
1359   [#7621](https://github.com/rust-lang/rust-clippy/pull/7621)
1360 * [`approx_constant`]: Now checks the MSRV for `LOG10_2` and `LOG2_10`
1361   [#7629](https://github.com/rust-lang/rust-clippy/pull/7629)
1362 * [`approx_constant`]: Add `TAU`
1363   [#7642](https://github.com/rust-lang/rust-clippy/pull/7642)
1364 * [`needless_borrow`]: Now also lints on needless mutable borrows
1365   [#7657](https://github.com/rust-lang/rust-clippy/pull/7657)
1366 * [`missing_safety_doc`]: Now also lints on unsafe traits
1367   [#7734](https://github.com/rust-lang/rust-clippy/pull/7734)
1368
1369 ### False Positive Fixes
1370
1371 * [`manual_map`]: No longer lints when the option is borrowed in the match and
1372   also consumed in the arm
1373   [#7531](https://github.com/rust-lang/rust-clippy/pull/7531)
1374 * [`filter_next`]: No longer lints if `filter` method is not the
1375   `Iterator::filter` method
1376   [#7562](https://github.com/rust-lang/rust-clippy/pull/7562)
1377 * [`manual_flatten`]: No longer lints if expression is used after `if let`
1378   [#7566](https://github.com/rust-lang/rust-clippy/pull/7566)
1379 * [`option_if_let_else`]: Multiple fixes
1380   [#7573](https://github.com/rust-lang/rust-clippy/pull/7573)
1381     * `break` and `continue` statements local to the would-be closure are
1382       allowed
1383     * Don't lint in const contexts
1384     * Don't lint when yield expressions are used
1385     * Don't lint when the captures made by the would-be closure conflict with
1386       the other branch
1387     * Don't lint when a field of a local is used when the type could be
1388       potentially moved from
1389     * In some cases, don't lint when scrutinee expression conflicts with the
1390       captures of the would-be closure
1391 * [`redundant_allocation`]: No longer lints on `Box<Box<dyn T>>` which replaces
1392   wide pointers with thin pointers
1393   [#7592](https://github.com/rust-lang/rust-clippy/pull/7592)
1394 * [`bool_assert_comparison`]: No longer lints on types that do not implement the
1395   `Not` trait with `Output = bool`
1396   [#7605](https://github.com/rust-lang/rust-clippy/pull/7605)
1397 * [`mut_range_bound`]: No longer lints on range bound mutations, that are
1398   immediately followed by a `break;`
1399   [#7607](https://github.com/rust-lang/rust-clippy/pull/7607)
1400 * [`mutable_key_type`]: Improve accuracy and document remaining false positives
1401   and false negatives
1402   [#7640](https://github.com/rust-lang/rust-clippy/pull/7640)
1403 * [`redundant_closure`]: Rewrite the lint to fix various false positives and
1404   false negatives [#7661](https://github.com/rust-lang/rust-clippy/pull/7661)
1405 * [`large_enum_variant`]: No longer wrongly identifies the second largest
1406   variant [#7677](https://github.com/rust-lang/rust-clippy/pull/7677)
1407 * [`needless_return`]: No longer lints on let-else expressions
1408   [#7685](https://github.com/rust-lang/rust-clippy/pull/7685)
1409 * [`suspicious_else_formatting`]: No longer lints in proc-macros
1410   [#7707](https://github.com/rust-lang/rust-clippy/pull/7707)
1411 * [`excessive_precision`]: No longer lints when in some cases the float was
1412   already written in the shortest form
1413   [#7722](https://github.com/rust-lang/rust-clippy/pull/7722)
1414 * [`doc_markdown`]: No longer lints on intra-doc links
1415   [#7772](https://github.com/rust-lang/rust-clippy/pull/7772)
1416
1417 ### Suggestion Fixes/Improvements
1418
1419 * [`unnecessary_operation`]: Recommend using an `assert!` instead of using a
1420   function call in an indexing operation
1421   [#7453](https://github.com/rust-lang/rust-clippy/pull/7453)
1422 * [`manual_split_once`]: Produce semantically equivalent suggestion when
1423   `rsplitn` is used [#7663](https://github.com/rust-lang/rust-clippy/pull/7663)
1424 * [`while_let_on_iterator`]: Produce correct suggestion when using `&mut`
1425   [#7690](https://github.com/rust-lang/rust-clippy/pull/7690)
1426 * [`manual_assert`]: No better handles complex conditions
1427   [#7741](https://github.com/rust-lang/rust-clippy/pull/7741)
1428 * Correctly handle signs in exponents in numeric literals lints
1429   [#7747](https://github.com/rust-lang/rust-clippy/pull/7747)
1430 * [`suspicious_map`]: Now also suggests to use `inspect` as an alternative
1431   [#7770](https://github.com/rust-lang/rust-clippy/pull/7770)
1432 * Drop exponent from suggestion if it is 0 in numeric literals lints
1433   [#7774](https://github.com/rust-lang/rust-clippy/pull/7774)
1434
1435 ### ICE Fixes
1436
1437 * [`implicit_hasher`]
1438   [#7761](https://github.com/rust-lang/rust-clippy/pull/7761)
1439
1440 ### Others
1441
1442 * Clippy now uses the 2021
1443   [Edition!](https://www.youtube.com/watch?v=q0aNduqb2Ro)
1444   [#7664](https://github.com/rust-lang/rust-clippy/pull/7664)
1445
1446 ## Rust 1.56
1447
1448 Released 2021-10-21
1449
1450 [74d1561...7bfc26e](https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e)
1451
1452 ### New Lints
1453
1454 * [`unwrap_or_else_default`]
1455   [#7516](https://github.com/rust-lang/rust-clippy/pull/7516)
1456
1457 ### Enhancements
1458
1459 * [`needless_continue`]: Now also lints in `loop { continue; }` case
1460   [#7477](https://github.com/rust-lang/rust-clippy/pull/7477)
1461 * [`disallowed_types`]: Now also primitive types can be disallowed
1462   [#7488](https://github.com/rust-lang/rust-clippy/pull/7488)
1463 * [`manual_swap`]: Now also lints on xor swaps
1464   [#7506](https://github.com/rust-lang/rust-clippy/pull/7506)
1465 * [`map_flatten`]: Now also lints on the `Result` type
1466   [#7522](https://github.com/rust-lang/rust-clippy/pull/7522)
1467 * [`no_effect`]: Now also lints on inclusive ranges
1468   [#7556](https://github.com/rust-lang/rust-clippy/pull/7556)
1469
1470 ### False Positive Fixes
1471
1472 * [`nonstandard_macro_braces`]: No longer lints on similar named nested macros
1473   [#7478](https://github.com/rust-lang/rust-clippy/pull/7478)
1474 * [`too_many_lines`]: No longer lints in closures to avoid duplicated diagnostics
1475   [#7534](https://github.com/rust-lang/rust-clippy/pull/7534)
1476 * [`similar_names`]: No longer complains about `iter` and `item` being too
1477   similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546)
1478
1479 ### Suggestion Fixes/Improvements
1480
1481 * [`similar_names`]: No longer suggests to insert or add an underscore as a fix
1482   [#7221](https://github.com/rust-lang/rust-clippy/pull/7221)
1483 * [`new_without_default`]: No longer shows the full qualified type path when
1484   suggesting adding a `Default` implementation
1485   [#7493](https://github.com/rust-lang/rust-clippy/pull/7493)
1486 * [`while_let_on_iterator`]: Now suggests re-borrowing mutable references
1487   [#7520](https://github.com/rust-lang/rust-clippy/pull/7520)
1488 * [`extend_with_drain`]: Improve code suggestion for mutable and immutable
1489   references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533)
1490 * [`trivially_copy_pass_by_ref`]: Now properly handles `Self` type
1491   [#7535](https://github.com/rust-lang/rust-clippy/pull/7535)
1492 * [`never_loop`]: Now suggests using `if let` instead of a `for` loop when
1493   applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541)
1494
1495 ### Documentation Improvements
1496
1497 * Clippy now uses a lint to generate its lint documentation. [Lints all the way
1498   down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down).
1499   [#7502](https://github.com/rust-lang/rust-clippy/pull/7502)
1500 * Reworked Clippy's website:
1501   [#7172](https://github.com/rust-lang/rust-clippy/issues/7172)
1502   [#7279](https://github.com/rust-lang/rust-clippy/pull/7279)
1503   * Added applicability information about lints
1504   * Added a link to jump into the implementation
1505   * Improved loading times
1506   * Adapted some styling
1507 * `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag
1508   [#7492](https://github.com/rust-lang/rust-clippy/pull/7492)
1509 * [`unnested_or_patterns`]: Removed `or_patterns` feature gate in the code
1510   example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507)
1511
1512 ## Rust 1.55
1513
1514 Released 2021-09-09
1515
1516 [3ae8faf...74d1561](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561)
1517
1518 ### Important Changes
1519
1520 * Stabilized `cargo clippy --fix` :tada:
1521   [#7405](https://github.com/rust-lang/rust-clippy/pull/7405)
1522
1523 ### New Lints
1524
1525 * [`rc_mutex`]
1526   [#7316](https://github.com/rust-lang/rust-clippy/pull/7316)
1527 * [`nonstandard_macro_braces`]
1528   [#7299](https://github.com/rust-lang/rust-clippy/pull/7299)
1529 * [`strlen_on_c_strings`]
1530   [#7243](https://github.com/rust-lang/rust-clippy/pull/7243)
1531 * [`self_named_constructors`]
1532   [#7403](https://github.com/rust-lang/rust-clippy/pull/7403)
1533 * [`disallowed_script_idents`]
1534   [#7400](https://github.com/rust-lang/rust-clippy/pull/7400)
1535 * [`disallowed_types`]
1536   [#7315](https://github.com/rust-lang/rust-clippy/pull/7315)
1537 * [`missing_enforced_import_renames`]
1538   [#7300](https://github.com/rust-lang/rust-clippy/pull/7300)
1539 * [`extend_with_drain`]
1540   [#7270](https://github.com/rust-lang/rust-clippy/pull/7270)
1541
1542 ### Moves and Deprecations
1543
1544 * Moved [`from_iter_instead_of_collect`] to `pedantic`
1545   [#7375](https://github.com/rust-lang/rust-clippy/pull/7375)
1546 * Added `suspicious` as a new lint group for *code that is most likely wrong or useless*
1547   [#7350](https://github.com/rust-lang/rust-clippy/pull/7350)
1548   * Moved [`blanket_clippy_restriction_lints`] to `suspicious`
1549   * Moved [`empty_loop`] to `suspicious`
1550   * Moved [`eval_order_dependence`] to `suspicious`
1551   * Moved [`float_equality_without_abs`] to `suspicious`
1552   * Moved [`for_loops_over_fallibles`] to `suspicious`
1553   * Moved [`misrefactored_assign_op`] to `suspicious`
1554   * Moved [`mut_range_bound`] to `suspicious`
1555   * Moved [`mutable_key_type`] to `suspicious`
1556   * Moved [`suspicious_arithmetic_impl`] to `suspicious`
1557   * Moved [`suspicious_assignment_formatting`] to `suspicious`
1558   * Moved [`suspicious_else_formatting`] to `suspicious`
1559   * Moved [`suspicious_map`] to `suspicious`
1560   * Moved [`suspicious_op_assign_impl`] to `suspicious`
1561   * Moved [`suspicious_unary_op_formatting`] to `suspicious`
1562
1563 ### Enhancements
1564
1565 * [`while_let_on_iterator`]: Now suggests `&mut iter` inside closures
1566   [#7262](https://github.com/rust-lang/rust-clippy/pull/7262)
1567 * [`doc_markdown`]:
1568   * Now detects unbalanced ticks
1569     [#7357](https://github.com/rust-lang/rust-clippy/pull/7357)
1570   * Add `FreeBSD` to the default configuration as an allowed identifier
1571     [#7334](https://github.com/rust-lang/rust-clippy/pull/7334)
1572 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]: Now allows wildcards for enums with unstable
1573   or hidden variants
1574   [#7407](https://github.com/rust-lang/rust-clippy/pull/7407)
1575 * [`redundant_allocation`]: Now additionally supports the `Arc<>` type
1576   [#7308](https://github.com/rust-lang/rust-clippy/pull/7308)
1577 * [`disallowed_names`]: Now allows disallowed names in test code
1578   [#7379](https://github.com/rust-lang/rust-clippy/pull/7379)
1579 * [`redundant_closure`]: Suggests `&mut` for `FnMut`
1580   [#7437](https://github.com/rust-lang/rust-clippy/pull/7437)
1581 * [`disallowed_methods`], [`disallowed_types`]: The configuration values `disallowed-method` and `disallowed-type`
1582   no longer require fully qualified paths
1583   [#7345](https://github.com/rust-lang/rust-clippy/pull/7345)
1584 * [`zst_offset`]: Fixed lint invocation after it was accidentally suppressed
1585   [#7396](https://github.com/rust-lang/rust-clippy/pull/7396)
1586
1587 ### False Positive Fixes
1588
1589 * [`default_numeric_fallback`]: No longer lints on float literals as function arguments
1590   [#7446](https://github.com/rust-lang/rust-clippy/pull/7446)
1591 * [`use_self`]: No longer lints on type parameters
1592   [#7288](https://github.com/rust-lang/rust-clippy/pull/7288)
1593 * [`unimplemented`]: Now ignores the `assert` and `debug_assert` macros
1594   [#7439](https://github.com/rust-lang/rust-clippy/pull/7439)
1595 * [`branches_sharing_code`]: Now always checks for block expressions
1596   [#7462](https://github.com/rust-lang/rust-clippy/pull/7462)
1597 * [`field_reassign_with_default`]: No longer triggers in macros
1598   [#7160](https://github.com/rust-lang/rust-clippy/pull/7160)
1599 * [`redundant_clone`]: No longer lints on required clones for borrowed data
1600   [#7346](https://github.com/rust-lang/rust-clippy/pull/7346)
1601 * [`default_numeric_fallback`]: No longer triggers in external macros
1602   [#7325](https://github.com/rust-lang/rust-clippy/pull/7325)
1603 * [`needless_bool`]: No longer lints in macros
1604   [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
1605 * [`useless_format`]: No longer triggers when additional text is being appended
1606   [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
1607 * [`assertions_on_constants`]: `cfg!(...)` is no longer considered to be a constant
1608   [#7319](https://github.com/rust-lang/rust-clippy/pull/7319)
1609
1610 ### Suggestion Fixes/Improvements
1611
1612 * [`needless_collect`]: Now show correct lint messages for shadowed values
1613   [#7289](https://github.com/rust-lang/rust-clippy/pull/7289)
1614 * [`wrong_pub_self_convention`]: The deprecated message now suggest the correct configuration value
1615   [#7382](https://github.com/rust-lang/rust-clippy/pull/7382)
1616 * [`semicolon_if_nothing_returned`]: Allow missing semicolon in blocks with only one expression
1617   [#7326](https://github.com/rust-lang/rust-clippy/pull/7326)
1618
1619 ### ICE Fixes
1620
1621 * [`zero_sized_map_values`]
1622   [#7470](https://github.com/rust-lang/rust-clippy/pull/7470)
1623 * [`redundant_pattern_matching`]
1624   [#7471](https://github.com/rust-lang/rust-clippy/pull/7471)
1625 * [`modulo_one`]
1626   [#7473](https://github.com/rust-lang/rust-clippy/pull/7473)
1627 * [`use_self`]
1628   [#7428](https://github.com/rust-lang/rust-clippy/pull/7428)
1629
1630 ## Rust 1.54
1631
1632 Released 2021-07-29
1633
1634 [7c7683c...3ae8faf](https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf)
1635
1636 ### New Lints
1637
1638 - [`ref_binding_to_reference`]
1639   [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
1640 - [`needless_bitwise_bool`]
1641   [#7133](https://github.com/rust-lang/rust-clippy/pull/7133)
1642 - [`unused_async`] [#7225](https://github.com/rust-lang/rust-clippy/pull/7225)
1643 - [`manual_str_repeat`]
1644   [#7265](https://github.com/rust-lang/rust-clippy/pull/7265)
1645 - [`suspicious_splitn`]
1646   [#7292](https://github.com/rust-lang/rust-clippy/pull/7292)
1647
1648 ### Moves and Deprecations
1649
1650 - Deprecate `pub_enum_variant_names` and `wrong_pub_self_convention` in favor of
1651   the new `avoid-breaking-exported-api` config option (see
1652   [Enhancements](#1-54-enhancements))
1653   [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
1654 - Move [`inconsistent_struct_constructor`] to `pedantic`
1655   [#7193](https://github.com/rust-lang/rust-clippy/pull/7193)
1656 - Move [`needless_borrow`] to `style` (now warn-by-default)
1657   [#7254](https://github.com/rust-lang/rust-clippy/pull/7254)
1658 - Move [`suspicious_operation_groupings`] to `nursery`
1659   [#7266](https://github.com/rust-lang/rust-clippy/pull/7266)
1660 - Move [`semicolon_if_nothing_returned`] to `pedantic`
1661   [#7268](https://github.com/rust-lang/rust-clippy/pull/7268)
1662
1663 ### Enhancements <a name="1-54-enhancements"></a>
1664
1665 - [`while_let_on_iterator`]: Now also lints in nested loops
1666   [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
1667 - [`single_char_pattern`]: Now also lints on `strip_prefix` and `strip_suffix`
1668   [#7156](https://github.com/rust-lang/rust-clippy/pull/7156)
1669 - [`needless_collect`]: Now also lints on assignments with type annotations
1670   [#7163](https://github.com/rust-lang/rust-clippy/pull/7163)
1671 - [`if_then_some_else_none`]: Now works with the MSRV config
1672   [#7177](https://github.com/rust-lang/rust-clippy/pull/7177)
1673 - Add `avoid-breaking-exported-api` config option for the lints
1674   [`enum_variant_names`], [`large_types_passed_by_value`],
1675   [`trivially_copy_pass_by_ref`], [`unnecessary_wraps`],
1676   [`upper_case_acronyms`], and [`wrong_self_convention`]. We recommend to set
1677   this configuration option to `false` before a major release (1.0/2.0/...) to
1678   clean up the API [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
1679 - [`needless_collect`]: Now lints on even more data structures
1680   [#7188](https://github.com/rust-lang/rust-clippy/pull/7188)
1681 - [`missing_docs_in_private_items`]: No longer sees `#[<name> = "<value>"]` like
1682   attributes as sufficient documentation
1683   [#7281](https://github.com/rust-lang/rust-clippy/pull/7281)
1684 - [`needless_collect`], [`short_circuit_statement`], [`unnecessary_operation`]:
1685   Now work as expected when used with `allow`
1686   [#7282](https://github.com/rust-lang/rust-clippy/pull/7282)
1687
1688 ### False Positive Fixes
1689
1690 - [`implicit_return`]: Now takes all diverging functions in account to avoid
1691   false positives [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
1692 - [`while_let_on_iterator`]: No longer lints when the iterator is a struct field
1693   and the struct is used in the loop
1694   [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
1695 - [`multiple_inherent_impl`]: No longer lints with generic arguments
1696   [#7089](https://github.com/rust-lang/rust-clippy/pull/7089)
1697 - [`comparison_chain`]: No longer lints in a `const` context
1698   [#7118](https://github.com/rust-lang/rust-clippy/pull/7118)
1699 - [`while_immutable_condition`]: Fix false positive where mutation in the loop
1700   variable wasn't picked up
1701   [#7144](https://github.com/rust-lang/rust-clippy/pull/7144)
1702 - [`default_trait_access`]: No longer lints in macros
1703   [#7150](https://github.com/rust-lang/rust-clippy/pull/7150)
1704 - [`needless_question_mark`]: No longer lints when the inner value is implicitly
1705   dereferenced [#7165](https://github.com/rust-lang/rust-clippy/pull/7165)
1706 - [`unused_unit`]: No longer lints when multiple macro contexts are involved
1707   [#7167](https://github.com/rust-lang/rust-clippy/pull/7167)
1708 - [`eval_order_dependence`]: Fix false positive in async context
1709   [#7174](https://github.com/rust-lang/rust-clippy/pull/7174)
1710 - [`unnecessary_filter_map`]: No longer lints if the `filter_map` changes the
1711   type [#7175](https://github.com/rust-lang/rust-clippy/pull/7175)
1712 - [`wrong_self_convention`]: No longer lints in trait implementations of
1713   non-`Copy` types [#7182](https://github.com/rust-lang/rust-clippy/pull/7182)
1714 - [`suboptimal_flops`]: No longer lints on `powi(2)`
1715   [#7201](https://github.com/rust-lang/rust-clippy/pull/7201)
1716 - [`wrong_self_convention`]: No longer lints if there is no implicit `self`
1717   [#7215](https://github.com/rust-lang/rust-clippy/pull/7215)
1718 - [`option_if_let_else`]: No longer lints on `else if let` pattern
1719   [#7216](https://github.com/rust-lang/rust-clippy/pull/7216)
1720 - [`use_self`], [`useless_conversion`]: Fix false positives when generic
1721   arguments are involved
1722   [#7223](https://github.com/rust-lang/rust-clippy/pull/7223)
1723 - [`manual_unwrap_or`]: Fix false positive with deref coercion
1724   [#7233](https://github.com/rust-lang/rust-clippy/pull/7233)
1725 - [`similar_names`]: No longer lints on `wparam`/`lparam`
1726   [#7255](https://github.com/rust-lang/rust-clippy/pull/7255)
1727 - [`redundant_closure`]: No longer lints on using the `vec![]` macro in a
1728   closure [#7263](https://github.com/rust-lang/rust-clippy/pull/7263)
1729
1730 ### Suggestion Fixes/Improvements
1731
1732 - [`implicit_return`]
1733   [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
1734     - Fix suggestion for async functions
1735     - Improve suggestion with macros
1736     - Suggest to change `break` to `return` when appropriate
1737 - [`while_let_on_iterator`]: Now suggests `&mut iter` when necessary
1738   [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
1739 - [`match_single_binding`]: Improve suggestion when match scrutinee has side
1740   effects [#7095](https://github.com/rust-lang/rust-clippy/pull/7095)
1741 - [`needless_borrow`]: Now suggests to also change usage sites as needed
1742   [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
1743 - [`write_with_newline`]: Improve suggestion when only `\n` is written to the
1744   buffer [#7183](https://github.com/rust-lang/rust-clippy/pull/7183)
1745 - [`from_iter_instead_of_collect`]: The suggestion is now auto applicable also
1746   when a `<_ as Trait>::_` is involved
1747   [#7264](https://github.com/rust-lang/rust-clippy/pull/7264)
1748 - [`not_unsafe_ptr_arg_deref`]: Improved error message
1749   [#7294](https://github.com/rust-lang/rust-clippy/pull/7294)
1750
1751 ### ICE Fixes
1752
1753 - Fix ICE when running Clippy on `libstd`
1754   [#7140](https://github.com/rust-lang/rust-clippy/pull/7140)
1755 - [`implicit_return`]
1756   [#7242](https://github.com/rust-lang/rust-clippy/pull/7242)
1757
1758 ## Rust 1.53
1759
1760 Released 2021-06-17
1761
1762 [6ed6f1e...7c7683c](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...7c7683c)
1763
1764 ### New Lints
1765
1766 * [`option_filter_map`]
1767   [#6342](https://github.com/rust-lang/rust-clippy/pull/6342)
1768 * [`branches_sharing_code`]
1769   [#6463](https://github.com/rust-lang/rust-clippy/pull/6463)
1770 * [`needless_for_each`]
1771   [#6706](https://github.com/rust-lang/rust-clippy/pull/6706)
1772 * [`if_then_some_else_none`]
1773   [#6859](https://github.com/rust-lang/rust-clippy/pull/6859)
1774 * [`non_octal_unix_permissions`]
1775   [#7001](https://github.com/rust-lang/rust-clippy/pull/7001)
1776 * [`unnecessary_self_imports`]
1777   [#7072](https://github.com/rust-lang/rust-clippy/pull/7072)
1778 * [`bool_assert_comparison`]
1779   [#7083](https://github.com/rust-lang/rust-clippy/pull/7083)
1780 * [`cloned_instead_of_copied`]
1781   [#7098](https://github.com/rust-lang/rust-clippy/pull/7098)
1782 * [`flat_map_option`]
1783   [#7101](https://github.com/rust-lang/rust-clippy/pull/7101)
1784
1785 ### Moves and Deprecations
1786
1787 * Deprecate [`filter_map`] lint
1788   [#7059](https://github.com/rust-lang/rust-clippy/pull/7059)
1789 * Move [`transmute_ptr_to_ptr`] to `pedantic`
1790   [#7102](https://github.com/rust-lang/rust-clippy/pull/7102)
1791
1792 ### Enhancements
1793
1794 * [`mem_replace_with_default`]: Also lint on common std constructors
1795   [#6820](https://github.com/rust-lang/rust-clippy/pull/6820)
1796 * [`wrong_self_convention`]: Also lint on `to_*_mut` methods
1797   [#6828](https://github.com/rust-lang/rust-clippy/pull/6828)
1798 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]:
1799   [#6863](https://github.com/rust-lang/rust-clippy/pull/6863)
1800     * Attempt to find a common path prefix in suggestion
1801     * Don't lint on `Option` and `Result`
1802     * Consider `Self` prefix
1803 * [`explicit_deref_methods`]: Also lint on chained `deref` calls
1804   [#6865](https://github.com/rust-lang/rust-clippy/pull/6865)
1805 * [`or_fun_call`]: Also lint on `unsafe` blocks
1806   [#6928](https://github.com/rust-lang/rust-clippy/pull/6928)
1807 * [`vec_box`], [`linkedlist`], [`option_option`]: Also lint in `const` and
1808   `static` items [#6938](https://github.com/rust-lang/rust-clippy/pull/6938)
1809 * [`search_is_some`]: Also check for `is_none`
1810   [#6942](https://github.com/rust-lang/rust-clippy/pull/6942)
1811 * [`string_lit_as_bytes`]: Also lint on `into_bytes`
1812   [#6959](https://github.com/rust-lang/rust-clippy/pull/6959)
1813 * [`len_without_is_empty`]: Also lint if function signatures of `len` and
1814   `is_empty` don't match
1815   [#6980](https://github.com/rust-lang/rust-clippy/pull/6980)
1816 * [`redundant_pattern_matching`]: Also lint if the pattern is a `&` pattern
1817   [#6991](https://github.com/rust-lang/rust-clippy/pull/6991)
1818 * [`clone_on_copy`]: Also lint on chained method calls taking `self` by value
1819   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1820 * [`missing_panics_doc`]: Also lint on `assert_eq!` and `assert_ne!`
1821   [#7029](https://github.com/rust-lang/rust-clippy/pull/7029)
1822 * [`needless_return`]: Also lint in `async` functions
1823   [#7067](https://github.com/rust-lang/rust-clippy/pull/7067)
1824 * [`unused_io_amount`]: Also lint on expressions like `_.read().ok()?`
1825   [#7100](https://github.com/rust-lang/rust-clippy/pull/7100)
1826 * [`iter_cloned_collect`]: Also lint on large arrays, since const-generics are
1827   now stable [#7138](https://github.com/rust-lang/rust-clippy/pull/7138)
1828
1829 ### False Positive Fixes
1830
1831 * [`upper_case_acronyms`]: No longer lints on public items
1832   [#6805](https://github.com/rust-lang/rust-clippy/pull/6805)
1833 * [`suspicious_map`]: No longer lints when side effects may occur inside the
1834   `map` call [#6831](https://github.com/rust-lang/rust-clippy/pull/6831)
1835 * [`manual_map`], [`manual_unwrap_or`]: No longer lints in `const` functions
1836   [#6917](https://github.com/rust-lang/rust-clippy/pull/6917)
1837 * [`wrong_self_convention`]: Now respects `Copy` types
1838   [#6924](https://github.com/rust-lang/rust-clippy/pull/6924)
1839 * [`needless_question_mark`]: No longer lints if the `?` and the `Some(..)` come
1840   from different macro contexts [#6935](https://github.com/rust-lang/rust-clippy/pull/6935)
1841 * [`map_entry`]: Better detect if the entry API can be used
1842   [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
1843 * [`or_fun_call`]: No longer lints on some `len` function calls
1844   [#6950](https://github.com/rust-lang/rust-clippy/pull/6950)
1845 * [`new_ret_no_self`]: No longer lints when `Self` is returned with different
1846   generic arguments [#6952](https://github.com/rust-lang/rust-clippy/pull/6952)
1847 * [`upper_case_acronyms`]: No longer lints on public items
1848   [#6981](https://github.com/rust-lang/rust-clippy/pull/6981)
1849 * [`explicit_into_iter_loop`]: Only lint when `into_iter` is an implementation
1850   of `IntoIterator` [#6982](https://github.com/rust-lang/rust-clippy/pull/6982)
1851 * [`expl_impl_clone_on_copy`]: Take generic constraints into account before
1852   suggesting to use `derive` instead
1853   [#6993](https://github.com/rust-lang/rust-clippy/pull/6993)
1854 * [`missing_panics_doc`]: No longer lints when only debug-assertions are used
1855   [#6996](https://github.com/rust-lang/rust-clippy/pull/6996)
1856 * [`clone_on_copy`]: Only lint when using the `Clone` trait
1857   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1858 * [`wrong_self_convention`]: No longer lints inside a trait implementation
1859   [#7002](https://github.com/rust-lang/rust-clippy/pull/7002)
1860 * [`redundant_clone`]: No longer lints when the cloned value is modified while
1861   the clone is in use
1862   [#7011](https://github.com/rust-lang/rust-clippy/pull/7011)
1863 * [`same_item_push`]: No longer lints if the `Vec` is used in the loop body
1864   [#7018](https://github.com/rust-lang/rust-clippy/pull/7018)
1865 * [`cargo_common_metadata`]: Remove author requirement
1866   [#7026](https://github.com/rust-lang/rust-clippy/pull/7026)
1867 * [`panic_in_result_fn`]: No longer lints on `debug_assert` family
1868   [#7060](https://github.com/rust-lang/rust-clippy/pull/7060)
1869 * [`panic`]: No longer wrongfully lints on `debug_assert` with message
1870   [#7063](https://github.com/rust-lang/rust-clippy/pull/7063)
1871 * [`wrong_self_convention`]: No longer lints in trait implementations where no
1872   `self` is involved [#7064](https://github.com/rust-lang/rust-clippy/pull/7064)
1873 * [`missing_const_for_fn`]: No longer lints when unstable `const` function is
1874   involved [#7076](https://github.com/rust-lang/rust-clippy/pull/7076)
1875 * [`suspicious_else_formatting`]: Allow Allman style braces
1876   [#7087](https://github.com/rust-lang/rust-clippy/pull/7087)
1877 * [`inconsistent_struct_constructor`]: No longer lints in macros
1878   [#7097](https://github.com/rust-lang/rust-clippy/pull/7097)
1879 * [`single_component_path_imports`]: No longer lints on macro re-exports
1880   [#7120](https://github.com/rust-lang/rust-clippy/pull/7120)
1881
1882 ### Suggestion Fixes/Improvements
1883
1884 * [`redundant_pattern_matching`]: Add a note when applying this lint would
1885   change the drop order
1886   [#6568](https://github.com/rust-lang/rust-clippy/pull/6568)
1887 * [`write_literal`], [`print_literal`]: Add auto-applicable suggestion
1888   [#6821](https://github.com/rust-lang/rust-clippy/pull/6821)
1889 * [`manual_map`]: Fix suggestion for complex `if let ... else` chains
1890   [#6856](https://github.com/rust-lang/rust-clippy/pull/6856)
1891 * [`inconsistent_struct_constructor`]: Make lint description and message clearer
1892   [#6892](https://github.com/rust-lang/rust-clippy/pull/6892)
1893 * [`map_entry`]: Now suggests `or_insert`, `insert_with` or `match _.entry(_)`
1894   as appropriate [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
1895 * [`manual_flatten`]: Suggest to insert `copied` if necessary
1896   [#6962](https://github.com/rust-lang/rust-clippy/pull/6962)
1897 * [`redundant_slicing`]: Fix suggestion when a re-borrow might be required or
1898   when the value is from a macro call
1899   [#6975](https://github.com/rust-lang/rust-clippy/pull/6975)
1900 * [`match_wildcard_for_single_variants`]: Fix suggestion for hidden variant
1901   [#6988](https://github.com/rust-lang/rust-clippy/pull/6988)
1902 * [`clone_on_copy`]: Correct suggestion when the cloned value is a macro call
1903   [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1904 * [`manual_map`]: Fix suggestion at the end of an if chain
1905   [#7004](https://github.com/rust-lang/rust-clippy/pull/7004)
1906 * Fix needless parenthesis output in multiple lint suggestions
1907   [#7013](https://github.com/rust-lang/rust-clippy/pull/7013)
1908 * [`needless_collect`]: Better explanation in the lint message
1909   [#7020](https://github.com/rust-lang/rust-clippy/pull/7020)
1910 * [`useless_vec`]: Now considers mutability
1911   [#7036](https://github.com/rust-lang/rust-clippy/pull/7036)
1912 * [`useless_format`]: Wrap the content in braces if necessary
1913   [#7092](https://github.com/rust-lang/rust-clippy/pull/7092)
1914 * [`single_match`]: Don't suggest an equality check for types which don't
1915   implement `PartialEq`
1916   [#7093](https://github.com/rust-lang/rust-clippy/pull/7093)
1917 * [`from_over_into`]: Mention type in help message
1918   [#7099](https://github.com/rust-lang/rust-clippy/pull/7099)
1919 * [`manual_unwrap_or`]: Fix invalid code suggestion due to a macro call
1920   [#7136](https://github.com/rust-lang/rust-clippy/pull/7136)
1921
1922 ### ICE Fixes
1923
1924 * [`macro_use_imports`]
1925   [#7022](https://github.com/rust-lang/rust-clippy/pull/7022)
1926 * [`missing_panics_doc`]
1927   [#7034](https://github.com/rust-lang/rust-clippy/pull/7034)
1928 * [`tabs_in_doc_comments`]
1929   [#7039](https://github.com/rust-lang/rust-clippy/pull/7039)
1930 * [`missing_const_for_fn`]
1931   [#7128](https://github.com/rust-lang/rust-clippy/pull/7128)
1932
1933 ### Others
1934
1935 * [Clippy's lint
1936   list](https://rust-lang.github.io/rust-clippy/master/index.html) now supports
1937   themes [#7030](https://github.com/rust-lang/rust-clippy/pull/7030)
1938 * Lints that were uplifted to `rustc` now mention the new `rustc` name in the
1939   deprecation warning
1940   [#7056](https://github.com/rust-lang/rust-clippy/pull/7056)
1941
1942 ## Rust 1.52
1943
1944 Released 2021-05-06
1945
1946 [3e41797...6ed6f1e](https://github.com/rust-lang/rust-clippy/compare/3e41797...6ed6f1e)
1947
1948 ### New Lints
1949
1950 * [`from_str_radix_10`]
1951   [#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
1952 * [`implicit_clone`]
1953   [#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
1954 * [`semicolon_if_nothing_returned`]
1955   [#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
1956 * [`manual_flatten`]
1957   [#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
1958 * [`inconsistent_struct_constructor`]
1959   [#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
1960 * [`iter_count`]
1961   [#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
1962 * [`default_numeric_fallback`]
1963   [#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
1964 * [`bytes_nth`]
1965   [#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
1966 * [`filter_map_identity`]
1967   [#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
1968 * [`manual_map`]
1969   [#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
1970
1971 ### Moves and Deprecations
1972
1973 * Moved [`upper_case_acronyms`] to `pedantic`
1974   [#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
1975 * Moved [`manual_map`] to `nursery`
1976   [#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
1977 * Moved [`unnecessary_wraps`] to `pedantic`
1978   [#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
1979 * Moved [`trivial_regex`] to `nursery`
1980   [#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
1981 * Moved [`naive_bytecount`] to `pedantic`
1982   [#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
1983 * Moved [`upper_case_acronyms`] to `style`
1984   [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
1985 * Moved [`manual_map`] to `style`
1986   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1987
1988 ### Enhancements
1989
1990 * [`disallowed_methods`]: Now supports functions in addition to methods
1991   [#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
1992 * [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
1993   trigger the lint if there is more than one uppercase character next to each other
1994   [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
1995 * [`collapsible_match`]: Now supports block comparison with different value names
1996   [#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
1997 * [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
1998   [#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
1999 * Improved value usage detection in closures
2000   [#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
2001
2002 ### False Positive Fixes
2003
2004 * [`use_self`]: No longer lints in macros
2005   [#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
2006 * [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
2007   [#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
2008 * [`missing_inline_in_public_items`]: No longer lints for procedural macros
2009   [#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
2010 * [`inherent_to_string`]: No longer lints on functions with function generics
2011   [#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
2012 * [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
2013   [#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
2014 * [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
2015   [#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
2016 * [`collapsible_if`]: No longer lints on if statements with attributes
2017   [#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
2018 * [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
2019   [#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
2020 * [`redundant_closure`]: Now ignores macros
2021   [#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
2022 * [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
2023   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
2024 * [`vec_init_then_push`]: Fixed false positives for loops and if statements
2025   [#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
2026 * [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
2027   the `len` method as well as the type definition.
2028   [#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
2029 * [`let_underscore_drop`]: Only lints on types which implement `Drop`
2030   [#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
2031 * [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
2032   [#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
2033 * [`cargo_common_metadata`]: No longer lints if
2034   [`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
2035   is defined in the manifest
2036   [#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
2037
2038 ### Suggestion Fixes/Improvements
2039
2040 * [`collapsible_match`]: Fixed lint message capitalization
2041   [#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
2042 * [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
2043   [#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
2044 * [`manual_map`]: No longer expands macros in the suggestions
2045   [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
2046 * Aligned Clippy's lint messages with the rustc dev guide
2047   [#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
2048
2049 ### ICE Fixes
2050
2051 * [`zero_sized_map_values`]
2052   [#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
2053
2054 ### Documentation Improvements
2055
2056 * [`useless_format`]: Improved the documentation example
2057   [#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
2058 * Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
2059   [#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
2060
2061 ### Others
2062 * Running `cargo clippy` after `cargo check` now works as expected
2063   (`cargo clippy` and `cargo check` no longer shares the same build cache)
2064   [#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
2065 * Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
2066   [#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
2067 * Extracted Clippy's `utils` module into the new `clippy_utils` crate
2068   [#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
2069 * Clippy lintcheck tool improvements
2070   [#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
2071   [#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
2072   [#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
2073   [#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
2074   [#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
2075   [#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
2076
2077 ## Rust 1.51
2078
2079 Released 2021-03-25
2080
2081 [4911ab1...3e41797](https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797)
2082
2083 ### New Lints
2084
2085 * [`upper_case_acronyms`]
2086   [#6475](https://github.com/rust-lang/rust-clippy/pull/6475)
2087 * [`from_over_into`] [#6476](https://github.com/rust-lang/rust-clippy/pull/6476)
2088 * [`case_sensitive_file_extension_comparisons`]
2089   [#6500](https://github.com/rust-lang/rust-clippy/pull/6500)
2090 * [`needless_question_mark`]
2091   [#6507](https://github.com/rust-lang/rust-clippy/pull/6507)
2092 * [`missing_panics_doc`]
2093   [#6523](https://github.com/rust-lang/rust-clippy/pull/6523)
2094 * [`redundant_slicing`]
2095   [#6528](https://github.com/rust-lang/rust-clippy/pull/6528)
2096 * [`vec_init_then_push`]
2097   [#6538](https://github.com/rust-lang/rust-clippy/pull/6538)
2098 * [`ptr_as_ptr`] [#6542](https://github.com/rust-lang/rust-clippy/pull/6542)
2099 * [`collapsible_else_if`] (split out from `collapsible_if`)
2100   [#6544](https://github.com/rust-lang/rust-clippy/pull/6544)
2101 * [`inspect_for_each`] [#6577](https://github.com/rust-lang/rust-clippy/pull/6577)
2102 * [`manual_filter_map`]
2103   [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
2104 * [`exhaustive_enums`]
2105   [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
2106 * [`exhaustive_structs`]
2107   [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
2108
2109 ### Moves and Deprecations
2110
2111 * Replace [`find_map`] with [`manual_find_map`]
2112   [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
2113 * `unknown_clippy_lints` Now integrated in the `unknown_lints` rustc lint
2114   [#6653](https://github.com/rust-lang/rust-clippy/pull/6653)
2115
2116 ### Enhancements
2117
2118 * [`ptr_arg`] Now also suggests to use `&Path` instead of `&PathBuf`
2119   [#6506](https://github.com/rust-lang/rust-clippy/pull/6506)
2120 * [`cast_ptr_alignment`] Also lint when the `pointer::cast` method is used
2121   [#6557](https://github.com/rust-lang/rust-clippy/pull/6557)
2122 * [`collapsible_match`] Now also deals with `&` and `*` operators in the `match`
2123   scrutinee [#6619](https://github.com/rust-lang/rust-clippy/pull/6619)
2124
2125 ### False Positive Fixes
2126
2127 * [`similar_names`] Ignore underscore prefixed names
2128   [#6403](https://github.com/rust-lang/rust-clippy/pull/6403)
2129 * [`print_literal`] and [`write_literal`] No longer lint numeric literals
2130   [#6408](https://github.com/rust-lang/rust-clippy/pull/6408)
2131 * [`large_enum_variant`] No longer lints in external macros
2132   [#6485](https://github.com/rust-lang/rust-clippy/pull/6485)
2133 * [`empty_enum`] Only lint if `never_type` feature is enabled
2134   [#6513](https://github.com/rust-lang/rust-clippy/pull/6513)
2135 * [`field_reassign_with_default`] No longer lints in macros
2136   [#6553](https://github.com/rust-lang/rust-clippy/pull/6553)
2137 * [`size_of_in_element_count`] No longer lints when dividing by element size
2138   [#6578](https://github.com/rust-lang/rust-clippy/pull/6578)
2139 * [`needless_return`] No longer lints in macros
2140   [#6586](https://github.com/rust-lang/rust-clippy/pull/6586)
2141 * [`match_overlapping_arm`] No longer lint when first arm is completely included
2142   in second arm [#6603](https://github.com/rust-lang/rust-clippy/pull/6603)
2143 * [`doc_markdown`] Add `WebGL` to the default configuration as an allowed
2144   identifier [#6605](https://github.com/rust-lang/rust-clippy/pull/6605)
2145
2146 ### Suggestion Fixes/Improvements
2147
2148 * [`field_reassign_with_default`] Don't expand macro in lint suggestion
2149   [#6531](https://github.com/rust-lang/rust-clippy/pull/6531)
2150 * [`match_like_matches_macro`] Strip references in suggestion
2151   [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
2152 * [`single_match`] Suggest `if` over `if let` when possible
2153   [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
2154 * `ref_in_deref` Use parentheses correctly in suggestion
2155   [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
2156 * [`stable_sort_primitive`] Clarify error message
2157   [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
2158
2159 ### ICE Fixes
2160
2161 * [`zero_sized_map_values`]
2162   [#6582](https://github.com/rust-lang/rust-clippy/pull/6582)
2163
2164 ### Documentation Improvements
2165
2166 * Improve search performance on the Clippy website and make it possible to
2167   directly search for lints on the GitHub issue tracker
2168   [#6483](https://github.com/rust-lang/rust-clippy/pull/6483)
2169 * Clean up `README.md` by removing outdated paragraph
2170   [#6488](https://github.com/rust-lang/rust-clippy/pull/6488)
2171 * [`await_holding_refcell_ref`] and [`await_holding_lock`]
2172   [#6585](https://github.com/rust-lang/rust-clippy/pull/6585)
2173 * [`as_conversions`] [#6608](https://github.com/rust-lang/rust-clippy/pull/6608)
2174
2175 ### Others
2176
2177 * Clippy now has a [Roadmap] for 2021. If you like to get involved in a bigger
2178   project, take a look at the [Roadmap project page]. All issues listed there
2179   are actively mentored
2180   [#6462](https://github.com/rust-lang/rust-clippy/pull/6462)
2181 * The Clippy version number now corresponds to the Rust version number
2182   [#6526](https://github.com/rust-lang/rust-clippy/pull/6526)
2183 * Fix oversight which caused Clippy to lint deps in some environments, where
2184   `CLIPPY_TESTS=true` was set somewhere
2185   [#6575](https://github.com/rust-lang/rust-clippy/pull/6575)
2186 * Add `cargo dev-lintcheck` tool to the Clippy Dev Tool
2187   [#6469](https://github.com/rust-lang/rust-clippy/pull/6469)
2188
2189 [Roadmap]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/proposals/roadmap-2021.md
2190 [Roadmap project page]: https://github.com/rust-lang/rust-clippy/projects/3
2191
2192 ## Rust 1.50
2193
2194 Released 2021-02-11
2195
2196 [b20d4c1...4bd77a1](https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1)
2197
2198 ### New Lints
2199
2200 * [`suspicious_operation_groupings`] [#6086](https://github.com/rust-lang/rust-clippy/pull/6086)
2201 * [`size_of_in_element_count`] [#6394](https://github.com/rust-lang/rust-clippy/pull/6394)
2202 * [`unnecessary_wraps`] [#6070](https://github.com/rust-lang/rust-clippy/pull/6070)
2203 * [`let_underscore_drop`] [#6305](https://github.com/rust-lang/rust-clippy/pull/6305)
2204 * [`collapsible_match`] [#6402](https://github.com/rust-lang/rust-clippy/pull/6402)
2205 * [`redundant_else`] [#6330](https://github.com/rust-lang/rust-clippy/pull/6330)
2206 * [`zero_sized_map_values`] [#6218](https://github.com/rust-lang/rust-clippy/pull/6218)
2207 * [`print_stderr`] [#6367](https://github.com/rust-lang/rust-clippy/pull/6367)
2208 * [`string_from_utf8_as_bytes`] [#6134](https://github.com/rust-lang/rust-clippy/pull/6134)
2209
2210 ### Moves and Deprecations
2211
2212 * Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
2213   as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
2214 * Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panics`
2215   [#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
2216 * Move [`map_err_ignore`] to `restriction`
2217   [#6416](https://github.com/rust-lang/rust-clippy/pull/6416)
2218 * Move [`await_holding_refcell_ref`] to `pedantic`
2219   [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
2220 * Move [`await_holding_lock`] to `pedantic`
2221   [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
2222
2223 ### Enhancements
2224
2225 * Add the `unreadable-literal-lint-fractions` configuration to disable
2226   the `unreadable_literal` lint for fractions
2227   [#6421](https://github.com/rust-lang/rust-clippy/pull/6421)
2228 * [`clone_on_copy`]: Now shows the type in the lint message
2229   [#6443](https://github.com/rust-lang/rust-clippy/pull/6443)
2230 * [`redundant_pattern_matching`]: Now also lints on `std::task::Poll`
2231   [#6339](https://github.com/rust-lang/rust-clippy/pull/6339)
2232 * [`redundant_pattern_matching`]: Additionally also lints on `std::net::IpAddr`
2233   [#6377](https://github.com/rust-lang/rust-clippy/pull/6377)
2234 * [`search_is_some`]: Now suggests `contains` instead of `find(foo).is_some()`
2235   [#6119](https://github.com/rust-lang/rust-clippy/pull/6119)
2236 * [`clone_double_ref`]: Now prints the reference type in the lint message
2237   [#6442](https://github.com/rust-lang/rust-clippy/pull/6442)
2238 * [`modulo_one`]: Now also lints on -1.
2239   [#6360](https://github.com/rust-lang/rust-clippy/pull/6360)
2240 * [`empty_loop`]: Now lints no_std crates, too
2241   [#6205](https://github.com/rust-lang/rust-clippy/pull/6205)
2242 * [`or_fun_call`]: Now also lints when indexing `HashMap` or `BTreeMap`
2243   [#6267](https://github.com/rust-lang/rust-clippy/pull/6267)
2244 * [`wrong_self_convention`]: Now also lints in trait definitions
2245   [#6316](https://github.com/rust-lang/rust-clippy/pull/6316)
2246 * [`needless_borrow`]: Print the type in the lint message
2247   [#6449](https://github.com/rust-lang/rust-clippy/pull/6449)
2248
2249 [msrv_readme]: https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
2250
2251 ### False Positive Fixes
2252
2253 * [`manual_range_contains`]: No longer lints in `const fn`
2254   [#6382](https://github.com/rust-lang/rust-clippy/pull/6382)
2255 * [`unnecessary_lazy_evaluations`]: No longer lints if closure argument is used
2256   [#6370](https://github.com/rust-lang/rust-clippy/pull/6370)
2257 * [`match_single_binding`]: Now ignores cases with `#[cfg()]` macros
2258   [#6435](https://github.com/rust-lang/rust-clippy/pull/6435)
2259 * [`match_like_matches_macro`]: No longer lints on arms with attributes
2260   [#6290](https://github.com/rust-lang/rust-clippy/pull/6290)
2261 * [`map_clone`]: No longer lints with deref and clone
2262   [#6269](https://github.com/rust-lang/rust-clippy/pull/6269)
2263 * [`map_clone`]: No longer lints in the case of &mut
2264   [#6301](https://github.com/rust-lang/rust-clippy/pull/6301)
2265 * [`needless_update`]: Now ignores `non_exhaustive` structs
2266   [#6464](https://github.com/rust-lang/rust-clippy/pull/6464)
2267 * [`needless_collect`]: No longer lints when a collect is needed multiple times
2268   [#6313](https://github.com/rust-lang/rust-clippy/pull/6313)
2269 * [`unnecessary_cast`] No longer lints cfg-dependent types
2270   [#6369](https://github.com/rust-lang/rust-clippy/pull/6369)
2271 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]:
2272   Both now ignore enums with frozen variants
2273   [#6110](https://github.com/rust-lang/rust-clippy/pull/6110)
2274 * [`field_reassign_with_default`] No longer lint for private fields
2275   [#6537](https://github.com/rust-lang/rust-clippy/pull/6537)
2276
2277
2278 ### Suggestion Fixes/Improvements
2279
2280 * [`vec_box`]: Provide correct type scope suggestion
2281   [#6271](https://github.com/rust-lang/rust-clippy/pull/6271)
2282 * [`manual_range_contains`]: Give correct suggestion when using floats
2283   [#6320](https://github.com/rust-lang/rust-clippy/pull/6320)
2284 * [`unnecessary_lazy_evaluations`]: Don't always mark suggestion as MachineApplicable
2285   [#6272](https://github.com/rust-lang/rust-clippy/pull/6272)
2286 * [`manual_async_fn`]: Improve suggestion formatting
2287   [#6294](https://github.com/rust-lang/rust-clippy/pull/6294)
2288 * [`unnecessary_cast`]: Fix incorrectly formatted float literal suggestion
2289   [#6362](https://github.com/rust-lang/rust-clippy/pull/6362)
2290
2291 ### ICE Fixes
2292
2293 * Fix a crash in [`from_iter_instead_of_collect`]
2294   [#6304](https://github.com/rust-lang/rust-clippy/pull/6304)
2295 * Fix a silent crash when parsing doc comments in [`needless_doctest_main`]
2296   [#6458](https://github.com/rust-lang/rust-clippy/pull/6458)
2297
2298 ### Documentation Improvements
2299
2300 * The lint website search has been improved ([#6477](https://github.com/rust-lang/rust-clippy/pull/6477)):
2301   * Searching for lints with dashes and spaces is possible now. For example
2302     `missing-errors-doc` and `missing errors doc` are now valid aliases for lint names
2303   * Improved fuzzy search in lint descriptions
2304 * Various README improvements
2305   [#6287](https://github.com/rust-lang/rust-clippy/pull/6287)
2306 * Add known problems to [`comparison_chain`] documentation
2307   [#6390](https://github.com/rust-lang/rust-clippy/pull/6390)
2308 * Fix example used in [`cargo_common_metadata`]
2309   [#6293](https://github.com/rust-lang/rust-clippy/pull/6293)
2310 * Improve [`map_clone`] documentation
2311   [#6340](https://github.com/rust-lang/rust-clippy/pull/6340)
2312
2313 ### Others
2314
2315 * You can now tell Clippy about the MSRV your project supports. Please refer to
2316   the specific README section to learn more about MSRV support [here][msrv_readme]
2317   [#6201](https://github.com/rust-lang/rust-clippy/pull/6201)
2318 * Add `--no-deps` option to avoid running on path dependencies in workspaces
2319   [#6188](https://github.com/rust-lang/rust-clippy/pull/6188)
2320
2321 ## Rust 1.49
2322
2323 Released 2020-12-31
2324
2325 [e636b88...b20d4c1](https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1)
2326
2327 ### New Lints
2328
2329 * [`field_reassign_with_default`] [#5911](https://github.com/rust-lang/rust-clippy/pull/5911)
2330 * [`await_holding_refcell_ref`] [#6029](https://github.com/rust-lang/rust-clippy/pull/6029)
2331 * [`disallowed_methods`] [#6081](https://github.com/rust-lang/rust-clippy/pull/6081)
2332 * [`inline_asm_x86_att_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
2333 * [`inline_asm_x86_intel_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
2334 * [`from_iter_instead_of_collect`] [#6101](https://github.com/rust-lang/rust-clippy/pull/6101)
2335 * [`mut_mutex_lock`] [#6103](https://github.com/rust-lang/rust-clippy/pull/6103)
2336 * [`single_element_loop`] [#6109](https://github.com/rust-lang/rust-clippy/pull/6109)
2337 * [`manual_unwrap_or`] [#6123](https://github.com/rust-lang/rust-clippy/pull/6123)
2338 * [`large_types_passed_by_value`] [#6135](https://github.com/rust-lang/rust-clippy/pull/6135)
2339 * [`result_unit_err`] [#6157](https://github.com/rust-lang/rust-clippy/pull/6157)
2340 * [`ref_option_ref`] [#6165](https://github.com/rust-lang/rust-clippy/pull/6165)
2341 * [`manual_range_contains`] [#6177](https://github.com/rust-lang/rust-clippy/pull/6177)
2342 * [`unusual_byte_groupings`] [#6183](https://github.com/rust-lang/rust-clippy/pull/6183)
2343 * [`comparison_to_empty`] [#6226](https://github.com/rust-lang/rust-clippy/pull/6226)
2344 * [`map_collect_result_unit`] [#6227](https://github.com/rust-lang/rust-clippy/pull/6227)
2345 * [`manual_ok_or`] [#6233](https://github.com/rust-lang/rust-clippy/pull/6233)
2346
2347 ### Moves and Deprecations
2348
2349 * Rename `single_char_push_str` to [`single_char_add_str`]
2350   [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
2351 * Rename `zero_width_space` to [`invisible_characters`]
2352   [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
2353 * Deprecate `drop_bounds` (uplifted)
2354   [#6111](https://github.com/rust-lang/rust-clippy/pull/6111)
2355 * Move [`string_lit_as_bytes`] to `nursery`
2356   [#6117](https://github.com/rust-lang/rust-clippy/pull/6117)
2357 * Move [`rc_buffer`] to `restriction`
2358   [#6128](https://github.com/rust-lang/rust-clippy/pull/6128)
2359
2360 ### Enhancements
2361
2362 * [`manual_memcpy`]: Also lint when there are loop counters (and produce a
2363   reliable suggestion)
2364   [#5727](https://github.com/rust-lang/rust-clippy/pull/5727)
2365 * [`single_char_add_str`]: Also lint on `String::insert_str`
2366   [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
2367 * [`invisible_characters`]: Also lint the characters `\u{AD}` and `\u{2060}`
2368   [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
2369 * [`eq_op`]: Also lint on the `assert_*!` macro family
2370   [#6167](https://github.com/rust-lang/rust-clippy/pull/6167)
2371 * [`items_after_statements`]: Also lint in local macro expansions
2372   [#6176](https://github.com/rust-lang/rust-clippy/pull/6176)
2373 * [`unnecessary_cast`]: Also lint casts on integer and float literals
2374   [#6187](https://github.com/rust-lang/rust-clippy/pull/6187)
2375 * [`manual_unwrap_or`]: Also lint `Result::unwrap_or`
2376   [#6190](https://github.com/rust-lang/rust-clippy/pull/6190)
2377 * [`match_like_matches_macro`]: Also lint when `match` has more than two arms
2378   [#6216](https://github.com/rust-lang/rust-clippy/pull/6216)
2379 * [`integer_arithmetic`]: Better handle `/` an `%` operators
2380   [#6229](https://github.com/rust-lang/rust-clippy/pull/6229)
2381
2382 ### False Positive Fixes
2383
2384 * [`needless_lifetimes`]: Bail out if the function has a `where` clause with the
2385   lifetime [#5978](https://github.com/rust-lang/rust-clippy/pull/5978)
2386 * [`explicit_counter_loop`]: No longer lints, when loop counter is used after it
2387   is incremented [#6076](https://github.com/rust-lang/rust-clippy/pull/6076)
2388 * [`or_fun_call`]: Revert changes addressing the handling of `const fn`
2389   [#6077](https://github.com/rust-lang/rust-clippy/pull/6077)
2390 * [`needless_range_loop`]: No longer lints, when the iterable is used in the
2391   range [#6102](https://github.com/rust-lang/rust-clippy/pull/6102)
2392 * [`inconsistent_digit_grouping`]: Fix bug when using floating point exponent
2393   [#6104](https://github.com/rust-lang/rust-clippy/pull/6104)
2394 * [`mistyped_literal_suffixes`]: No longer lints on the fractional part of a
2395   float (e.g. `713.32_64`)
2396   [#6114](https://github.com/rust-lang/rust-clippy/pull/6114)
2397 * [`invalid_regex`]: No longer lint on unicode characters within `bytes::Regex`
2398   [#6132](https://github.com/rust-lang/rust-clippy/pull/6132)
2399 * [`boxed_local`]: No longer lints on `extern fn` arguments
2400   [#6133](https://github.com/rust-lang/rust-clippy/pull/6133)
2401 * [`needless_lifetimes`]: Fix regression, where lifetime is used in `where`
2402   clause [#6198](https://github.com/rust-lang/rust-clippy/pull/6198)
2403
2404 ### Suggestion Fixes/Improvements
2405
2406 * [`unnecessary_sort_by`]: Avoid dereferencing the suggested closure parameter
2407   [#6078](https://github.com/rust-lang/rust-clippy/pull/6078)
2408 * [`needless_arbitrary_self_type`]: Correctly handle expanded code
2409   [#6093](https://github.com/rust-lang/rust-clippy/pull/6093)
2410 * [`useless_format`]: Preserve raw strings in suggestion
2411   [#6151](https://github.com/rust-lang/rust-clippy/pull/6151)
2412 * [`empty_loop`]: Suggest alternatives
2413   [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
2414 * [`borrowed_box`]: Correctly add parentheses in suggestion
2415   [#6200](https://github.com/rust-lang/rust-clippy/pull/6200)
2416 * [`unused_unit`]: Improve suggestion formatting
2417   [#6247](https://github.com/rust-lang/rust-clippy/pull/6247)
2418
2419 ### Documentation Improvements
2420
2421 * Some doc improvements:
2422     * [`rc_buffer`] [#6090](https://github.com/rust-lang/rust-clippy/pull/6090)
2423     * [`empty_loop`] [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
2424 * [`doc_markdown`]: Document problematic link text style
2425   [#6107](https://github.com/rust-lang/rust-clippy/pull/6107)
2426
2427 ## Rust 1.48
2428
2429 Released 2020-11-19
2430
2431 [09bd400...e636b88](https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88)
2432
2433 ### New lints
2434
2435 * [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
2436 * [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
2437 * [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
2438 * [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
2439 * [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
2440 * `to_string_in_display` [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
2441 * `single_char_push_str` [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
2442
2443 ### Moves and Deprecations
2444
2445 * Downgrade [`verbose_bit_mask`] to pedantic
2446   [#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
2447
2448 ### Enhancements
2449
2450 * Extend [`precedence`] to handle chains of methods combined with unary negation
2451   [#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
2452 * [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
2453   [#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
2454 * [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
2455   [#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
2456 * `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
2457   [#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
2458 * Avoid [`redundant_pattern_matching`] triggering in macros
2459   [#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
2460 * [`option_if_let_else`]: distinguish pure from impure `else` expressions
2461   [#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
2462 * [`needless_doctest_main`]: parse doctests instead of using textual search
2463   [#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
2464 * [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
2465   [#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
2466 * Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
2467   [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
2468 * [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
2469   [#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
2470
2471 ### False Positive Fixes
2472
2473 * [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
2474   [#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
2475 * [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
2476   [#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
2477 * [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
2478   [#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
2479 * Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
2480   [#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
2481 * [`doc_markdown`]: allow using "GraphQL" without backticks
2482   [#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
2483 * `to_string_in_display`: avoid linting when calling `to_string()` on anything that is not `self`
2484   [#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
2485 * [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
2486   [#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
2487 * [`should_implement_trait`]: ignore methods with lifetime parameters
2488   [#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
2489 * [`needless_return`]: avoid linting if a temporary borrows a local variable
2490   [#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
2491 * Restrict [`unnecessary_sort_by`] to non-reference, Copy types
2492   [#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
2493 * Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
2494   [#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
2495 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
2496   [#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
2497
2498 ### Suggestion Fixes/Improvements
2499
2500 * [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
2501   [#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
2502 * [`useless_conversion`]: show the type in the error message
2503   [#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
2504 * [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
2505   [#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
2506 * [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
2507   [#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
2508 * [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
2509   [#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
2510 * [`collapsible_if`]: don't use expanded code in the suggestion
2511   [#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
2512 * Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
2513   [#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
2514 * [`unit_arg`]: improve the readability of the suggestion
2515   [#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
2516 * [`stable_sort_primitive`]: print the type that is being sorted in the lint message
2517   [#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
2518 * Show line count and max lines in [`too_many_lines`] lint message
2519   [#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
2520 * Keep parentheses in the suggestion of [`useless_conversion`] where applicable
2521   [#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
2522 * [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
2523   [#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
2524 * [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
2525   [#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
2526 * Make lint messages adhere to rustc dev guide conventions
2527   [#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
2528
2529 ### ICE Fixes
2530
2531 * Fix ICE in [`repeat_once`]
2532   [#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
2533
2534 ### Documentation Improvements
2535
2536 * [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
2537   [#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
2538 * [`unnecessary_mut_passed`]: fix typo
2539   [#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
2540 * Add example of false positive to [`ptr_arg`] docs.
2541   [#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
2542 * [`box_vec`](https://rust-lang.github.io/rust-clippy/master/index.html#box_collection), [`vec_box`] and [`borrowed_box`]: add link to the documentation of `Box`
2543   [#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
2544
2545 ## Rust 1.47
2546
2547 Released 2020-10-08
2548
2549 [c2c07fa...09bd400](https://github.com/rust-lang/rust-clippy/compare/c2c07fa...09bd400)
2550
2551 ### New lints
2552
2553 * [`derive_ord_xor_partial_ord`] [#5848](https://github.com/rust-lang/rust-clippy/pull/5848)
2554 * [`trait_duplication_in_bounds`] [#5852](https://github.com/rust-lang/rust-clippy/pull/5852)
2555 * [`map_identity`] [#5694](https://github.com/rust-lang/rust-clippy/pull/5694)
2556 * [`unit_return_expecting_ord`] [#5737](https://github.com/rust-lang/rust-clippy/pull/5737)
2557 * [`pattern_type_mismatch`] [#4841](https://github.com/rust-lang/rust-clippy/pull/4841)
2558 * [`repeat_once`] [#5773](https://github.com/rust-lang/rust-clippy/pull/5773)
2559 * [`same_item_push`] [#5825](https://github.com/rust-lang/rust-clippy/pull/5825)
2560 * [`needless_arbitrary_self_type`] [#5869](https://github.com/rust-lang/rust-clippy/pull/5869)
2561 * [`match_like_matches_macro`] [#5769](https://github.com/rust-lang/rust-clippy/pull/5769)
2562 * [`stable_sort_primitive`] [#5809](https://github.com/rust-lang/rust-clippy/pull/5809)
2563 * [`blanket_clippy_restriction_lints`] [#5750](https://github.com/rust-lang/rust-clippy/pull/5750)
2564 * [`option_if_let_else`] [#5301](https://github.com/rust-lang/rust-clippy/pull/5301)
2565
2566 ### Moves and Deprecations
2567
2568 * Deprecate [`regex_macro`] lint
2569   [#5760](https://github.com/rust-lang/rust-clippy/pull/5760)
2570 * Move [`range_minus_one`] to `pedantic`
2571   [#5752](https://github.com/rust-lang/rust-clippy/pull/5752)
2572
2573 ### Enhancements
2574
2575 * Improve [`needless_collect`] by catching `collect` calls followed by `iter` or `into_iter` calls
2576   [#5837](https://github.com/rust-lang/rust-clippy/pull/5837)
2577 * [`panic`], [`todo`], [`unimplemented`] and [`unreachable`] now detect calls with formatting
2578   [#5811](https://github.com/rust-lang/rust-clippy/pull/5811)
2579 * Detect more cases of [`suboptimal_flops`] and [`imprecise_flops`]
2580   [#5443](https://github.com/rust-lang/rust-clippy/pull/5443)
2581 * Handle asymmetrical implementations of `PartialEq` in [`cmp_owned`]
2582   [#5701](https://github.com/rust-lang/rust-clippy/pull/5701)
2583 * Make it possible to allow [`unsafe_derive_deserialize`]
2584   [#5870](https://github.com/rust-lang/rust-clippy/pull/5870)
2585 * Catch `ord.min(a).max(b)` where a < b in [`min_max`]
2586   [#5871](https://github.com/rust-lang/rust-clippy/pull/5871)
2587 * Make [`clone_on_copy`] suggestion machine applicable
2588   [#5745](https://github.com/rust-lang/rust-clippy/pull/5745)
2589 * Enable [`len_zero`] on ranges now that `is_empty` is stable on them
2590   [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
2591
2592 ### False Positive Fixes
2593
2594 * Avoid triggering [`or_fun_call`] with const fns that take no arguments
2595   [#5889](https://github.com/rust-lang/rust-clippy/pull/5889)
2596 * Fix [`redundant_closure_call`] false positive for closures that have multiple calls
2597   [#5800](https://github.com/rust-lang/rust-clippy/pull/5800)
2598 * Don't lint cases involving `ManuallyDrop` in [`redundant_clone`]
2599   [#5824](https://github.com/rust-lang/rust-clippy/pull/5824)
2600 * Treat a single expression the same as a single statement in the 2nd arm of a match in [`single_match_else`]
2601   [#5771](https://github.com/rust-lang/rust-clippy/pull/5771)
2602 * Don't trigger [`unnested_or_patterns`] if the feature `or_patterns` is not enabled
2603   [#5758](https://github.com/rust-lang/rust-clippy/pull/5758)
2604 * Avoid linting if key borrows in [`unnecessary_sort_by`]
2605   [#5756](https://github.com/rust-lang/rust-clippy/pull/5756)
2606 * Consider `Try` impl for `Poll` when generating suggestions in [`try_err`]
2607   [#5857](https://github.com/rust-lang/rust-clippy/pull/5857)
2608 * Take input lifetimes into account in `manual_async_fn`
2609   [#5859](https://github.com/rust-lang/rust-clippy/pull/5859)
2610 * Fix multiple false positives in [`type_repetition_in_bounds`] and add a configuration option
2611   [#5761](https://github.com/rust-lang/rust-clippy/pull/5761)
2612 * Limit the [`suspicious_arithmetic_impl`] lint to one binary operation
2613   [#5820](https://github.com/rust-lang/rust-clippy/pull/5820)
2614
2615 ### Suggestion Fixes/Improvements
2616
2617 * Improve readability of [`shadow_unrelated`] suggestion by truncating the RHS snippet
2618   [#5788](https://github.com/rust-lang/rust-clippy/pull/5788)
2619 * Suggest `filter_map` instead of `flat_map` when mapping to `Option` in [`map_flatten`]
2620   [#5846](https://github.com/rust-lang/rust-clippy/pull/5846)
2621 * Ensure suggestion is shown correctly for long method call chains in [`iter_nth_zero`]
2622   [#5793](https://github.com/rust-lang/rust-clippy/pull/5793)
2623 * Drop borrow operator in suggestions of [`redundant_pattern_matching`]
2624   [#5815](https://github.com/rust-lang/rust-clippy/pull/5815)
2625 * Add suggestion for [`iter_skip_next`]
2626   [#5843](https://github.com/rust-lang/rust-clippy/pull/5843)
2627 * Improve [`collapsible_if`] fix suggestion
2628   [#5732](https://github.com/rust-lang/rust-clippy/pull/5732)
2629
2630 ### ICE Fixes
2631
2632 * Fix ICE caused by [`needless_collect`]
2633   [#5877](https://github.com/rust-lang/rust-clippy/pull/5877)
2634 * Fix ICE caused by [`unnested_or_patterns`]
2635   [#5784](https://github.com/rust-lang/rust-clippy/pull/5784)
2636
2637 ### Documentation Improvements
2638
2639 * Fix grammar of [`await_holding_lock`] documentation
2640   [#5748](https://github.com/rust-lang/rust-clippy/pull/5748)
2641
2642 ### Others
2643
2644 * Make lints adhere to the rustc dev guide
2645   [#5888](https://github.com/rust-lang/rust-clippy/pull/5888)
2646
2647 ## Rust 1.46
2648
2649 Released 2020-08-27
2650
2651 [7ea7cd1...c2c07fa](https://github.com/rust-lang/rust-clippy/compare/7ea7cd1...c2c07fa)
2652
2653 ### New lints
2654
2655 * [`unnested_or_patterns`] [#5378](https://github.com/rust-lang/rust-clippy/pull/5378)
2656 * [`iter_next_slice`] [#5597](https://github.com/rust-lang/rust-clippy/pull/5597)
2657 * [`unnecessary_sort_by`] [#5623](https://github.com/rust-lang/rust-clippy/pull/5623)
2658 * [`vec_resize_to_zero`] [#5637](https://github.com/rust-lang/rust-clippy/pull/5637)
2659
2660 ### Moves and Deprecations
2661
2662 * Move [`cast_ptr_alignment`] to pedantic [#5667](https://github.com/rust-lang/rust-clippy/pull/5667)
2663
2664 ### Enhancements
2665
2666 * Improve [`mem_replace_with_uninit`] lint [#5695](https://github.com/rust-lang/rust-clippy/pull/5695)
2667
2668 ### False Positive Fixes
2669
2670 * [`len_zero`]: Avoid linting ranges when the `range_is_empty` feature is not enabled
2671   [#5656](https://github.com/rust-lang/rust-clippy/pull/5656)
2672 * [`let_and_return`]: Don't lint if a temporary borrow is involved
2673   [#5680](https://github.com/rust-lang/rust-clippy/pull/5680)
2674 * [`reversed_empty_ranges`]: Avoid linting `N..N` in for loop arguments in
2675   [#5692](https://github.com/rust-lang/rust-clippy/pull/5692)
2676 * [`if_same_then_else`]: Don't assume multiplication is always commutative
2677   [#5702](https://github.com/rust-lang/rust-clippy/pull/5702)
2678 * [`disallowed_names`]: Remove `bar` from the default configuration
2679   [#5712](https://github.com/rust-lang/rust-clippy/pull/5712)
2680 * [`redundant_pattern_matching`]: Avoid suggesting non-`const fn` calls in const contexts
2681   [#5724](https://github.com/rust-lang/rust-clippy/pull/5724)
2682
2683 ### Suggestion Fixes/Improvements
2684
2685 * Fix suggestion of [`unit_arg`] lint, so that it suggest semantic equivalent code
2686   [#4455](https://github.com/rust-lang/rust-clippy/pull/4455)
2687 * Add auto applicable suggestion to [`macro_use_imports`]
2688   [#5279](https://github.com/rust-lang/rust-clippy/pull/5279)
2689
2690 ### ICE Fixes
2691
2692 * Fix ICE in the `consts` module of Clippy [#5709](https://github.com/rust-lang/rust-clippy/pull/5709)
2693
2694 ### Documentation Improvements
2695
2696 * Improve code examples across multiple lints [#5664](https://github.com/rust-lang/rust-clippy/pull/5664)
2697
2698 ### Others
2699
2700 * Introduce a `--rustc` flag to `clippy-driver`, which turns `clippy-driver`
2701   into `rustc` and passes all the given arguments to `rustc`. This is especially
2702   useful for tools that need the `rustc` version Clippy was compiled with,
2703   instead of the Clippy version. E.g. `clippy-driver --rustc --version` will
2704   print the output of `rustc --version`.
2705   [#5178](https://github.com/rust-lang/rust-clippy/pull/5178)
2706 * New issue templates now make it easier to complain if Clippy is too annoying
2707   or not annoying enough! [#5735](https://github.com/rust-lang/rust-clippy/pull/5735)
2708
2709 ## Rust 1.45
2710
2711 Released 2020-07-16
2712
2713 [891e1a8...7ea7cd1](https://github.com/rust-lang/rust-clippy/compare/891e1a8...7ea7cd1)
2714
2715 ### New lints
2716
2717 * [`match_wildcard_for_single_variants`] [#5582](https://github.com/rust-lang/rust-clippy/pull/5582)
2718 * [`unsafe_derive_deserialize`] [#5493](https://github.com/rust-lang/rust-clippy/pull/5493)
2719 * [`if_let_mutex`] [#5332](https://github.com/rust-lang/rust-clippy/pull/5332)
2720 * [`mismatched_target_os`] [#5506](https://github.com/rust-lang/rust-clippy/pull/5506)
2721 * [`await_holding_lock`] [#5439](https://github.com/rust-lang/rust-clippy/pull/5439)
2722 * [`match_on_vec_items`] [#5522](https://github.com/rust-lang/rust-clippy/pull/5522)
2723 * [`manual_async_fn`] [#5576](https://github.com/rust-lang/rust-clippy/pull/5576)
2724 * [`reversed_empty_ranges`] [#5583](https://github.com/rust-lang/rust-clippy/pull/5583)
2725 * [`manual_non_exhaustive`] [#5550](https://github.com/rust-lang/rust-clippy/pull/5550)
2726
2727 ### Moves and Deprecations
2728
2729 * Downgrade [`match_bool`] to pedantic [#5408](https://github.com/rust-lang/rust-clippy/pull/5408)
2730 * Downgrade [`match_wild_err_arm`] to pedantic and update help messages. [#5622](https://github.com/rust-lang/rust-clippy/pull/5622)
2731 * Downgrade [`useless_let_if_seq`] to nursery. [#5599](https://github.com/rust-lang/rust-clippy/pull/5599)
2732 * Generalize `option_and_then_some` and rename to [`bind_instead_of_map`]. [#5529](https://github.com/rust-lang/rust-clippy/pull/5529)
2733 * Rename `identity_conversion` to [`useless_conversion`]. [#5568](https://github.com/rust-lang/rust-clippy/pull/5568)
2734 * Merge `block_in_if_condition_expr` and `block_in_if_condition_stmt` into [`blocks_in_if_conditions`].
2735 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
2736 * Merge `option_map_unwrap_or`, `option_map_unwrap_or_else` and `result_map_unwrap_or_else` into [`map_unwrap_or`].
2737 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
2738 * Merge `option_unwrap_used` and `result_unwrap_used` into [`unwrap_used`].
2739 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
2740 * Merge `option_expect_used` and `result_expect_used` into [`expect_used`].
2741 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
2742 * Merge `for_loop_over_option` and `for_loop_over_result` into [`for_loops_over_fallibles`].
2743 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
2744
2745 ### Enhancements
2746
2747 * Avoid running cargo lints when not enabled to improve performance. [#5505](https://github.com/rust-lang/rust-clippy/pull/5505)
2748 * Extend [`useless_conversion`] with `TryFrom` and `TryInto`. [#5631](https://github.com/rust-lang/rust-clippy/pull/5631)
2749 * Lint also in type parameters and where clauses in [`unused_unit`]. [#5592](https://github.com/rust-lang/rust-clippy/pull/5592)
2750 * Do not suggest deriving `Default` in [`new_without_default`]. [#5616](https://github.com/rust-lang/rust-clippy/pull/5616)
2751
2752 ### False Positive Fixes
2753
2754 * [`while_let_on_iterator`] [#5525](https://github.com/rust-lang/rust-clippy/pull/5525)
2755 * [`empty_line_after_outer_attr`] [#5609](https://github.com/rust-lang/rust-clippy/pull/5609)
2756 * [`unnecessary_unwrap`] [#5558](https://github.com/rust-lang/rust-clippy/pull/5558)
2757 * [`comparison_chain`] [#5596](https://github.com/rust-lang/rust-clippy/pull/5596)
2758 * Don't trigger [`used_underscore_binding`] in await desugaring. [#5535](https://github.com/rust-lang/rust-clippy/pull/5535)
2759 * Don't trigger [`borrowed_box`] on mutable references. [#5491](https://github.com/rust-lang/rust-clippy/pull/5491)
2760 * Allow `1 << 0` in [`identity_op`]. [#5602](https://github.com/rust-lang/rust-clippy/pull/5602)
2761 * Allow `use super::*;` glob imports in [`wildcard_imports`]. [#5564](https://github.com/rust-lang/rust-clippy/pull/5564)
2762 * Whitelist more words in [`doc_markdown`]. [#5611](https://github.com/rust-lang/rust-clippy/pull/5611)
2763 * Skip dev and build deps in [`multiple_crate_versions`]. [#5636](https://github.com/rust-lang/rust-clippy/pull/5636)
2764 * Honor `allow` attribute on arguments in [`ptr_arg`]. [#5647](https://github.com/rust-lang/rust-clippy/pull/5647)
2765 * Honor lint level attributes for [`redundant_field_names`], [`just_underscores_and_digits`], [`many_single_char_names`]
2766 and [`similar_names`]. [#5651](https://github.com/rust-lang/rust-clippy/pull/5651)
2767 * Ignore calls to `len` in [`or_fun_call`]. [#4429](https://github.com/rust-lang/rust-clippy/pull/4429)
2768
2769 ### Suggestion Improvements
2770
2771 * Simplify suggestions in [`manual_memcpy`]. [#5536](https://github.com/rust-lang/rust-clippy/pull/5536)
2772 * Fix suggestion in [`redundant_pattern_matching`] for macros. [#5511](https://github.com/rust-lang/rust-clippy/pull/5511)
2773 * Avoid suggesting `copied()` for mutable references in [`map_clone`]. [#5530](https://github.com/rust-lang/rust-clippy/pull/5530)
2774 * Improve help message for [`clone_double_ref`]. [#5547](https://github.com/rust-lang/rust-clippy/pull/5547)
2775
2776 ### ICE Fixes
2777
2778 * Fix ICE caused in unwrap module. [#5590](https://github.com/rust-lang/rust-clippy/pull/5590)
2779 * Fix ICE on rustc test issue-69020-assoc-const-arith-overflow.rs [#5499](https://github.com/rust-lang/rust-clippy/pull/5499)
2780
2781 ### Documentation
2782
2783 * Clarify the documentation of [`unnecessary_mut_passed`]. [#5639](https://github.com/rust-lang/rust-clippy/pull/5639)
2784 * Extend example for [`unneeded_field_pattern`]. [#5541](https://github.com/rust-lang/rust-clippy/pull/5541)
2785
2786 ## Rust 1.44
2787
2788 Released 2020-06-04
2789
2790 [204bb9b...891e1a8](https://github.com/rust-lang/rust-clippy/compare/204bb9b...891e1a8)
2791
2792 ### New lints
2793
2794 * [`explicit_deref_methods`] [#5226](https://github.com/rust-lang/rust-clippy/pull/5226)
2795 * [`implicit_saturating_sub`] [#5427](https://github.com/rust-lang/rust-clippy/pull/5427)
2796 * [`macro_use_imports`] [#5230](https://github.com/rust-lang/rust-clippy/pull/5230)
2797 * [`verbose_file_reads`] [#5272](https://github.com/rust-lang/rust-clippy/pull/5272)
2798 * [`future_not_send`] [#5423](https://github.com/rust-lang/rust-clippy/pull/5423)
2799 * [`redundant_pub_crate`] [#5319](https://github.com/rust-lang/rust-clippy/pull/5319)
2800 * [`large_const_arrays`] [#5248](https://github.com/rust-lang/rust-clippy/pull/5248)
2801 * [`result_map_or_into_option`] [#5415](https://github.com/rust-lang/rust-clippy/pull/5415)
2802 * [`redundant_allocation`] [#5349](https://github.com/rust-lang/rust-clippy/pull/5349)
2803 * [`fn_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
2804 * [`vtable_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
2805
2806
2807 ### Moves and Deprecations
2808
2809 * Deprecate [`replace_consts`] lint [#5380](https://github.com/rust-lang/rust-clippy/pull/5380)
2810 * Move [`cognitive_complexity`] to nursery [#5428](https://github.com/rust-lang/rust-clippy/pull/5428)
2811 * Move [`useless_transmute`] to nursery [#5364](https://github.com/rust-lang/rust-clippy/pull/5364)
2812 * Downgrade [`inefficient_to_string`] to pedantic [#5412](https://github.com/rust-lang/rust-clippy/pull/5412)
2813 * Downgrade [`option_option`] to pedantic [#5401](https://github.com/rust-lang/rust-clippy/pull/5401)
2814 * Downgrade [`unreadable_literal`] to pedantic [#5419](https://github.com/rust-lang/rust-clippy/pull/5419)
2815 * Downgrade [`let_unit_value`] to pedantic [#5409](https://github.com/rust-lang/rust-clippy/pull/5409)
2816 * Downgrade [`trivially_copy_pass_by_ref`] to pedantic [#5410](https://github.com/rust-lang/rust-clippy/pull/5410)
2817 * Downgrade [`implicit_hasher`] to pedantic [#5411](https://github.com/rust-lang/rust-clippy/pull/5411)
2818
2819 ### Enhancements
2820
2821 * On _nightly_ you can now use `cargo clippy --fix -Z unstable-options` to
2822   auto-fix lints that support this [#5363](https://github.com/rust-lang/rust-clippy/pull/5363)
2823 * Make [`redundant_clone`] also trigger on cases where the cloned value is not
2824   consumed. [#5304](https://github.com/rust-lang/rust-clippy/pull/5304)
2825 * Expand [`integer_arithmetic`] to also disallow bit-shifting [#5430](https://github.com/rust-lang/rust-clippy/pull/5430)
2826 * [`option_as_ref_deref`] now detects more deref cases [#5425](https://github.com/rust-lang/rust-clippy/pull/5425)
2827 * [`large_enum_variant`] now report the sizes of the largest and second-largest variants [#5466](https://github.com/rust-lang/rust-clippy/pull/5466)
2828 * [`bool_comparison`] now also checks for inequality comparisons that can be
2829   written more concisely [#5365](https://github.com/rust-lang/rust-clippy/pull/5365)
2830 * Expand [`clone_on_copy`] to work in method call arguments as well [#5441](https://github.com/rust-lang/rust-clippy/pull/5441)
2831 * [`redundant_pattern_matching`] now also handles `while let` [#5483](https://github.com/rust-lang/rust-clippy/pull/5483)
2832 * [`integer_arithmetic`] now also lints references of integers [#5329](https://github.com/rust-lang/rust-clippy/pull/5329)
2833 * Expand [`float_cmp_const`] to also work on arrays [#5345](https://github.com/rust-lang/rust-clippy/pull/5345)
2834 * Trigger [`map_flatten`] when map is called on an `Option` [#5473](https://github.com/rust-lang/rust-clippy/pull/5473)
2835
2836 ### False Positive Fixes
2837
2838 * [`many_single_char_names`] [#5468](https://github.com/rust-lang/rust-clippy/pull/5468)
2839 * [`should_implement_trait`] [#5437](https://github.com/rust-lang/rust-clippy/pull/5437)
2840 * [`unused_self`] [#5387](https://github.com/rust-lang/rust-clippy/pull/5387)
2841 * [`redundant_clone`] [#5453](https://github.com/rust-lang/rust-clippy/pull/5453)
2842 * [`precedence`] [#5445](https://github.com/rust-lang/rust-clippy/pull/5445)
2843 * [`suspicious_op_assign_impl`] [#5424](https://github.com/rust-lang/rust-clippy/pull/5424)
2844 * [`needless_lifetimes`] [#5293](https://github.com/rust-lang/rust-clippy/pull/5293)
2845 * [`redundant_pattern`] [#5287](https://github.com/rust-lang/rust-clippy/pull/5287)
2846 * [`inconsistent_digit_grouping`] [#5451](https://github.com/rust-lang/rust-clippy/pull/5451)
2847
2848
2849 ### Suggestion Improvements
2850
2851 * Improved [`question_mark`] lint suggestion so that it doesn't add redundant `as_ref()` [#5481](https://github.com/rust-lang/rust-clippy/pull/5481)
2852 * Improve the suggested placeholder in [`option_map_unit_fn`] [#5292](https://github.com/rust-lang/rust-clippy/pull/5292)
2853 * Improve suggestion for [`match_single_binding`] when triggered inside a closure [#5350](https://github.com/rust-lang/rust-clippy/pull/5350)
2854
2855 ### ICE Fixes
2856
2857 * Handle the unstable `trivial_bounds` feature [#5296](https://github.com/rust-lang/rust-clippy/pull/5296)
2858 * `shadow_*` lints [#5297](https://github.com/rust-lang/rust-clippy/pull/5297)
2859
2860 ### Documentation
2861
2862 * Fix documentation generation for configurable lints [#5353](https://github.com/rust-lang/rust-clippy/pull/5353)
2863 * Update documentation for [`new_ret_no_self`] [#5448](https://github.com/rust-lang/rust-clippy/pull/5448)
2864 * The documentation for [`option_option`] now suggest using a tri-state enum [#5403](https://github.com/rust-lang/rust-clippy/pull/5403)
2865 * Fix bit mask example in [`verbose_bit_mask`] documentation [#5454](https://github.com/rust-lang/rust-clippy/pull/5454)
2866 * [`wildcard_imports`] documentation now mentions that `use ...::prelude::*` is
2867   not linted [#5312](https://github.com/rust-lang/rust-clippy/pull/5312)
2868
2869 ## Rust 1.43
2870
2871 Released 2020-04-23
2872
2873 [4ee1206...204bb9b](https://github.com/rust-lang/rust-clippy/compare/4ee1206...204bb9b)
2874
2875 ### New lints
2876
2877 * [`imprecise_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
2878 * [`suboptimal_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
2879 * [`wildcard_imports`] [#5029](https://github.com/rust-lang/rust-clippy/pull/5029)
2880 * [`single_component_path_imports`] [#5058](https://github.com/rust-lang/rust-clippy/pull/5058)
2881 * [`match_single_binding`] [#5061](https://github.com/rust-lang/rust-clippy/pull/5061)
2882 * [`let_underscore_lock`] [#5101](https://github.com/rust-lang/rust-clippy/pull/5101)
2883 * [`struct_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
2884 * [`fn_params_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
2885 * [`option_env_unwrap`] [#5148](https://github.com/rust-lang/rust-clippy/pull/5148)
2886 * [`lossy_float_literal`] [#5202](https://github.com/rust-lang/rust-clippy/pull/5202)
2887 * [`rest_pat_in_fully_bound_structs`] [#5258](https://github.com/rust-lang/rust-clippy/pull/5258)
2888
2889 ### Moves and Deprecations
2890
2891 * Move [`unneeded_field_pattern`] to pedantic group [#5200](https://github.com/rust-lang/rust-clippy/pull/5200)
2892
2893 ### Enhancements
2894
2895 * Make [`missing_errors_doc`] lint also trigger on `async` functions
2896   [#5181](https://github.com/rust-lang/rust-clippy/pull/5181)
2897 * Add more constants to [`approx_constant`] [#5193](https://github.com/rust-lang/rust-clippy/pull/5193)
2898 * Extend [`question_mark`] lint [#5266](https://github.com/rust-lang/rust-clippy/pull/5266)
2899
2900 ### False Positive Fixes
2901
2902 * [`use_debug`] [#5047](https://github.com/rust-lang/rust-clippy/pull/5047)
2903 * [`unnecessary_unwrap`] [#5132](https://github.com/rust-lang/rust-clippy/pull/5132)
2904 * [`zero_prefixed_literal`] [#5170](https://github.com/rust-lang/rust-clippy/pull/5170)
2905 * [`missing_const_for_fn`] [#5216](https://github.com/rust-lang/rust-clippy/pull/5216)
2906
2907 ### Suggestion Improvements
2908
2909 * Improve suggestion when blocks of code are suggested [#5134](https://github.com/rust-lang/rust-clippy/pull/5134)
2910
2911 ### ICE Fixes
2912
2913 * `misc_early` lints [#5129](https://github.com/rust-lang/rust-clippy/pull/5129)
2914 * [`missing_errors_doc`] [#5213](https://github.com/rust-lang/rust-clippy/pull/5213)
2915 * Fix ICE when evaluating `usize`s [#5256](https://github.com/rust-lang/rust-clippy/pull/5256)
2916
2917 ### Documentation
2918
2919 * Improve documentation of [`iter_nth_zero`]
2920 * Add documentation pages for stable releases [#5171](https://github.com/rust-lang/rust-clippy/pull/5171)
2921
2922 ### Others
2923
2924 * Clippy now completely runs on GitHub Actions [#5190](https://github.com/rust-lang/rust-clippy/pull/5190)
2925
2926
2927 ## Rust 1.42
2928
2929 Released 2020-03-12
2930
2931 [69f99e7...4ee1206](https://github.com/rust-lang/rust-clippy/compare/69f99e7...4ee1206)
2932
2933 ### New lints
2934
2935 * [`filetype_is_file`] [#4543](https://github.com/rust-lang/rust-clippy/pull/4543)
2936 * [`let_underscore_must_use`] [#4823](https://github.com/rust-lang/rust-clippy/pull/4823)
2937 * [`modulo_arithmetic`] [#4867](https://github.com/rust-lang/rust-clippy/pull/4867)
2938 * [`mem_replace_with_default`] [#4881](https://github.com/rust-lang/rust-clippy/pull/4881)
2939 * [`mutable_key_type`] [#4885](https://github.com/rust-lang/rust-clippy/pull/4885)
2940 * [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
2941 * [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
2942 * [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
2943 * `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
2944 * [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
2945
2946 ### Moves and Deprecations
2947
2948 * Move [`transmute_float_to_int`] from nursery to complexity group
2949   [#5015](https://github.com/rust-lang/rust-clippy/pull/5015)
2950 * Move [`range_plus_one`] to pedantic group [#5057](https://github.com/rust-lang/rust-clippy/pull/5057)
2951 * Move [`debug_assert_with_mut_call`] to nursery group [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
2952 * Deprecate `unused_label` [#4930](https://github.com/rust-lang/rust-clippy/pull/4930)
2953
2954 ### Enhancements
2955
2956 * Lint vectored IO in [`unused_io_amount`] [#5027](https://github.com/rust-lang/rust-clippy/pull/5027)
2957 * Make [`vec_box`] configurable by adding a size threshold [#5081](https://github.com/rust-lang/rust-clippy/pull/5081)
2958 * Also lint constants in [`cmp_nan`] [#4910](https://github.com/rust-lang/rust-clippy/pull/4910)
2959 * Fix false negative in [`expect_fun_call`] [#4915](https://github.com/rust-lang/rust-clippy/pull/4915)
2960 * Fix false negative in [`redundant_clone`] [#5017](https://github.com/rust-lang/rust-clippy/pull/5017)
2961
2962 ### False Positive Fixes
2963
2964 * [`map_clone`] [#4937](https://github.com/rust-lang/rust-clippy/pull/4937)
2965 * [`replace_consts`] [#4977](https://github.com/rust-lang/rust-clippy/pull/4977)
2966 * [`let_and_return`] [#5008](https://github.com/rust-lang/rust-clippy/pull/5008)
2967 * [`eq_op`] [#5079](https://github.com/rust-lang/rust-clippy/pull/5079)
2968 * [`possible_missing_comma`] [#5083](https://github.com/rust-lang/rust-clippy/pull/5083)
2969 * [`debug_assert_with_mut_call`] [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
2970 * Don't trigger [`let_underscore_must_use`] in external macros
2971   [#5082](https://github.com/rust-lang/rust-clippy/pull/5082)
2972 * Don't trigger [`empty_loop`] in `no_std` crates [#5086](https://github.com/rust-lang/rust-clippy/pull/5086)
2973
2974 ### Suggestion Improvements
2975
2976 * `option_map_unwrap_or` [#4634](https://github.com/rust-lang/rust-clippy/pull/4634)
2977 * [`wildcard_enum_match_arm`] [#4934](https://github.com/rust-lang/rust-clippy/pull/4934)
2978 * [`cognitive_complexity`] [#4935](https://github.com/rust-lang/rust-clippy/pull/4935)
2979 * [`decimal_literal_representation`] [#4956](https://github.com/rust-lang/rust-clippy/pull/4956)
2980 * `unknown_clippy_lints` [#4963](https://github.com/rust-lang/rust-clippy/pull/4963)
2981 * [`explicit_into_iter_loop`] [#4978](https://github.com/rust-lang/rust-clippy/pull/4978)
2982 * [`useless_attribute`] [#5022](https://github.com/rust-lang/rust-clippy/pull/5022)
2983 * `if_let_some_result` [#5032](https://github.com/rust-lang/rust-clippy/pull/5032)
2984
2985 ### ICE fixes
2986
2987 * [`unsound_collection_transmute`] [#4975](https://github.com/rust-lang/rust-clippy/pull/4975)
2988
2989 ### Documentation
2990
2991 * Improve documentation of [`empty_enum`], [`replace_consts`], [`redundant_clone`], and [`iterator_step_by_zero`]
2992
2993
2994 ## Rust 1.41
2995
2996 Released 2020-01-30
2997
2998 [c8e3cfb...69f99e7](https://github.com/rust-lang/rust-clippy/compare/c8e3cfb...69f99e7)
2999
3000 * New Lints:
3001   * [`exit`] [#4697](https://github.com/rust-lang/rust-clippy/pull/4697)
3002   * [`to_digit_is_some`] [#4801](https://github.com/rust-lang/rust-clippy/pull/4801)
3003   * [`tabs_in_doc_comments`] [#4806](https://github.com/rust-lang/rust-clippy/pull/4806)
3004   * [`large_stack_arrays`] [#4807](https://github.com/rust-lang/rust-clippy/pull/4807)
3005   * [`same_functions_in_if_condition`] [#4814](https://github.com/rust-lang/rust-clippy/pull/4814)
3006   * [`zst_offset`] [#4816](https://github.com/rust-lang/rust-clippy/pull/4816)
3007   * [`as_conversions`] [#4821](https://github.com/rust-lang/rust-clippy/pull/4821)
3008   * [`missing_errors_doc`] [#4884](https://github.com/rust-lang/rust-clippy/pull/4884)
3009   * [`transmute_float_to_int`] [#4889](https://github.com/rust-lang/rust-clippy/pull/4889)
3010 * Remove plugin interface, see
3011   [Inside Rust Blog](https://blog.rust-lang.org/inside-rust/2019/11/04/Clippy-removes-plugin-interface.html) for
3012   details [#4714](https://github.com/rust-lang/rust-clippy/pull/4714)
3013 * Move [`use_self`] to nursery group [#4863](https://github.com/rust-lang/rust-clippy/pull/4863)
3014 * Deprecate `into_iter_on_array` [#4788](https://github.com/rust-lang/rust-clippy/pull/4788)
3015 * Expand [`string_lit_as_bytes`] to also trigger when literal has escapes
3016   [#4808](https://github.com/rust-lang/rust-clippy/pull/4808)
3017 * Fix false positive in `comparison_chain` [#4842](https://github.com/rust-lang/rust-clippy/pull/4842)
3018 * Fix false positive in `while_immutable_condition` [#4730](https://github.com/rust-lang/rust-clippy/pull/4730)
3019 * Fix false positive in `explicit_counter_loop` [#4803](https://github.com/rust-lang/rust-clippy/pull/4803)
3020 * Fix false positive in `must_use_candidate` [#4794](https://github.com/rust-lang/rust-clippy/pull/4794)
3021 * Fix false positive in `print_with_newline` and `write_with_newline`
3022   [#4769](https://github.com/rust-lang/rust-clippy/pull/4769)
3023 * Fix false positive in `derive_hash_xor_eq` [#4766](https://github.com/rust-lang/rust-clippy/pull/4766)
3024 * Fix false positive in `missing_inline_in_public_items` [#4870](https://github.com/rust-lang/rust-clippy/pull/4870)
3025 * Fix false positive in `string_add` [#4880](https://github.com/rust-lang/rust-clippy/pull/4880)
3026 * Fix false positive in `float_arithmetic` [#4851](https://github.com/rust-lang/rust-clippy/pull/4851)
3027 * Fix false positive in `cast_sign_loss` [#4883](https://github.com/rust-lang/rust-clippy/pull/4883)
3028 * Fix false positive in `manual_swap` [#4877](https://github.com/rust-lang/rust-clippy/pull/4877)
3029 * Fix ICEs occurring while checking some block expressions [#4772](https://github.com/rust-lang/rust-clippy/pull/4772)
3030 * Fix ICE in `use_self` [#4776](https://github.com/rust-lang/rust-clippy/pull/4776)
3031 * Fix ICEs related to `const_generics` [#4780](https://github.com/rust-lang/rust-clippy/pull/4780)
3032 * Display help when running `clippy-driver` without arguments, instead of ICEing
3033   [#4810](https://github.com/rust-lang/rust-clippy/pull/4810)
3034 * Clippy has its own ICE message now [#4588](https://github.com/rust-lang/rust-clippy/pull/4588)
3035 * Show deprecated lints in the documentation again [#4757](https://github.com/rust-lang/rust-clippy/pull/4757)
3036 * Improve Documentation by adding positive examples to some lints
3037   [#4832](https://github.com/rust-lang/rust-clippy/pull/4832)
3038
3039 ## Rust 1.40
3040
3041 Released 2019-12-19
3042
3043 [4e7e71b...c8e3cfb](https://github.com/rust-lang/rust-clippy/compare/4e7e71b...c8e3cfb)
3044
3045 * New Lints:
3046   * [`unneeded_wildcard_pattern`] [#4537](https://github.com/rust-lang/rust-clippy/pull/4537)
3047   * [`needless_doctest_main`] [#4603](https://github.com/rust-lang/rust-clippy/pull/4603)
3048   * [`suspicious_unary_op_formatting`] [#4615](https://github.com/rust-lang/rust-clippy/pull/4615)
3049   * [`debug_assert_with_mut_call`] [#4680](https://github.com/rust-lang/rust-clippy/pull/4680)
3050   * [`unused_self`] [#4619](https://github.com/rust-lang/rust-clippy/pull/4619)
3051   * [`inefficient_to_string`] [#4683](https://github.com/rust-lang/rust-clippy/pull/4683)
3052   * [`must_use_unit`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3053   * [`must_use_candidate`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3054   * [`double_must_use`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3055   * [`comparison_chain`] [#4569](https://github.com/rust-lang/rust-clippy/pull/4569)
3056   * [`unsound_collection_transmute`] [#4592](https://github.com/rust-lang/rust-clippy/pull/4592)
3057   * [`panic`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3058   * [`unreachable`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3059   * [`todo`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3060   * `option_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3061   * `result_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3062 * Move `redundant_clone` to perf group [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
3063 * Move `manual_mul_add` to nursery group [#4736](https://github.com/rust-lang/rust-clippy/pull/4736)
3064 * 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)
3065 * Expand `integer_arithmetic` to also detect mutating arithmetic like `+=` [#4585](https://github.com/rust-lang/rust-clippy/pull/4585)
3066 * Fix false positive in `nonminimal_bool` [#4568](https://github.com/rust-lang/rust-clippy/pull/4568)
3067 * Fix false positive in `missing_safety_doc` [#4611](https://github.com/rust-lang/rust-clippy/pull/4611)
3068 * Fix false positive in `cast_sign_loss` [#4614](https://github.com/rust-lang/rust-clippy/pull/4614)
3069 * Fix false positive in `redundant_clone` [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
3070 * Fix false positive in `try_err` [#4721](https://github.com/rust-lang/rust-clippy/pull/4721)
3071 * Fix false positive in `toplevel_ref_arg` [#4570](https://github.com/rust-lang/rust-clippy/pull/4570)
3072 * Fix false positive in `multiple_inherent_impl` [#4593](https://github.com/rust-lang/rust-clippy/pull/4593)
3073 * Improve more suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4575](https://github.com/rust-lang/rust-clippy/pull/4575)
3074 * Improve suggestion for `zero_ptr` [#4599](https://github.com/rust-lang/rust-clippy/pull/4599)
3075 * Improve suggestion for `explicit_counter_loop` [#4691](https://github.com/rust-lang/rust-clippy/pull/4691)
3076 * Improve suggestion for `mul_add` [#4602](https://github.com/rust-lang/rust-clippy/pull/4602)
3077 * Improve suggestion for `assertions_on_constants` [#4635](https://github.com/rust-lang/rust-clippy/pull/4635)
3078 * Fix ICE in `use_self` [#4671](https://github.com/rust-lang/rust-clippy/pull/4671)
3079 * Fix ICE when encountering const casts [#4590](https://github.com/rust-lang/rust-clippy/pull/4590)
3080
3081 ## Rust 1.39
3082
3083 Released 2019-11-07
3084
3085 [3aea860...4e7e71b](https://github.com/rust-lang/rust-clippy/compare/3aea860...4e7e71b)
3086
3087 * New Lints:
3088   * [`uninit_assumed_init`] [#4479](https://github.com/rust-lang/rust-clippy/pull/4479)
3089   * [`flat_map_identity`] [#4231](https://github.com/rust-lang/rust-clippy/pull/4231)
3090   * [`missing_safety_doc`] [#4535](https://github.com/rust-lang/rust-clippy/pull/4535)
3091   * [`mem_replace_with_uninit`] [#4511](https://github.com/rust-lang/rust-clippy/pull/4511)
3092   * [`suspicious_map`] [#4394](https://github.com/rust-lang/rust-clippy/pull/4394)
3093   * `option_and_then_some` [#4386](https://github.com/rust-lang/rust-clippy/pull/4386)
3094   * [`manual_saturating_arithmetic`] [#4498](https://github.com/rust-lang/rust-clippy/pull/4498)
3095 * 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)
3096 * Move `type_repetition_in_bounds` to pedantic group [#4403](https://github.com/rust-lang/rust-clippy/pull/4403)
3097 * Move `cast_lossless` to pedantic group [#4539](https://github.com/rust-lang/rust-clippy/pull/4539)
3098 * `temporary_cstring_as_ptr` now catches more cases [#4425](https://github.com/rust-lang/rust-clippy/pull/4425)
3099 * `use_self` now works in constructors, too [#4525](https://github.com/rust-lang/rust-clippy/pull/4525)
3100 * `cargo_common_metadata` now checks for license files [#4518](https://github.com/rust-lang/rust-clippy/pull/4518)
3101 * `cognitive_complexity` now includes the measured complexity in the warning message [#4469](https://github.com/rust-lang/rust-clippy/pull/4469)
3102 * Fix false positives in `block_in_if_*` lints [#4458](https://github.com/rust-lang/rust-clippy/pull/4458)
3103 * Fix false positive in `cast_lossless` [#4473](https://github.com/rust-lang/rust-clippy/pull/4473)
3104 * Fix false positive in `clone_on_copy` [#4411](https://github.com/rust-lang/rust-clippy/pull/4411)
3105 * Fix false positive in `deref_addrof` [#4487](https://github.com/rust-lang/rust-clippy/pull/4487)
3106 * Fix false positive in `too_many_lines` [#4490](https://github.com/rust-lang/rust-clippy/pull/4490)
3107 * Fix false positive in `new_ret_no_self` [#4365](https://github.com/rust-lang/rust-clippy/pull/4365)
3108 * Fix false positive in `manual_swap` [#4478](https://github.com/rust-lang/rust-clippy/pull/4478)
3109 * Fix false positive in `missing_const_for_fn` [#4450](https://github.com/rust-lang/rust-clippy/pull/4450)
3110 * Fix false positive in `extra_unused_lifetimes` [#4477](https://github.com/rust-lang/rust-clippy/pull/4477)
3111 * Fix false positive in `inherent_to_string` [#4460](https://github.com/rust-lang/rust-clippy/pull/4460)
3112 * Fix false positive in `map_entry` [#4495](https://github.com/rust-lang/rust-clippy/pull/4495)
3113 * Fix false positive in `unused_unit` [#4445](https://github.com/rust-lang/rust-clippy/pull/4445)
3114 * Fix false positive in `redundant_pattern` [#4489](https://github.com/rust-lang/rust-clippy/pull/4489)
3115 * Fix false positive in `wrong_self_convention` [#4369](https://github.com/rust-lang/rust-clippy/pull/4369)
3116 * Improve various suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4558](https://github.com/rust-lang/rust-clippy/pull/4558)
3117 * Improve suggestions for `redundant_pattern_matching` [#4352](https://github.com/rust-lang/rust-clippy/pull/4352)
3118 * Improve suggestions for `explicit_write` [#4544](https://github.com/rust-lang/rust-clippy/pull/4544)
3119 * Improve suggestion for `or_fun_call` [#4522](https://github.com/rust-lang/rust-clippy/pull/4522)
3120 * Improve suggestion for `match_as_ref` [#4446](https://github.com/rust-lang/rust-clippy/pull/4446)
3121 * Improve suggestion for `unnecessary_fold_span` [#4382](https://github.com/rust-lang/rust-clippy/pull/4382)
3122 * Add suggestions for `unseparated_literal_suffix` [#4401](https://github.com/rust-lang/rust-clippy/pull/4401)
3123 * Add suggestions for `char_lit_as_u8` [#4418](https://github.com/rust-lang/rust-clippy/pull/4418)
3124
3125 ## Rust 1.38
3126
3127 Released 2019-09-26
3128
3129 [e3cb40e...3aea860](https://github.com/rust-lang/rust-clippy/compare/e3cb40e...3aea860)
3130
3131 * New Lints:
3132   * [`main_recursion`] [#4203](https://github.com/rust-lang/rust-clippy/pull/4203)
3133   * [`inherent_to_string`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
3134   * [`inherent_to_string_shadow_display`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
3135   * [`type_repetition_in_bounds`] [#3766](https://github.com/rust-lang/rust-clippy/pull/3766)
3136   * [`try_err`] [#4222](https://github.com/rust-lang/rust-clippy/pull/4222)
3137 * Move `{unnecessary,panicking}_unwrap` out of nursery [#4307](https://github.com/rust-lang/rust-clippy/pull/4307)
3138 * Extend the `use_self` lint to suggest uses of `Self::Variant` [#4308](https://github.com/rust-lang/rust-clippy/pull/4308)
3139 * Improve suggestion for needless return [#4262](https://github.com/rust-lang/rust-clippy/pull/4262)
3140 * Add auto-fixable suggestion for `let_unit` [#4337](https://github.com/rust-lang/rust-clippy/pull/4337)
3141 * Fix false positive in `pub_enum_variant_names` and `enum_variant_names` [#4345](https://github.com/rust-lang/rust-clippy/pull/4345)
3142 * Fix false positive in `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
3143 * Fix false positive in `string_lit_as_bytes` [#4233](https://github.com/rust-lang/rust-clippy/pull/4233)
3144 * Fix false positive in `needless_lifetimes` [#4266](https://github.com/rust-lang/rust-clippy/pull/4266)
3145 * Fix false positive in `float_cmp` [#4275](https://github.com/rust-lang/rust-clippy/pull/4275)
3146 * Fix false positives in `needless_return` [#4274](https://github.com/rust-lang/rust-clippy/pull/4274)
3147 * Fix false negative in `match_same_arms` [#4246](https://github.com/rust-lang/rust-clippy/pull/4246)
3148 * Fix incorrect suggestion for `needless_bool` [#4335](https://github.com/rust-lang/rust-clippy/pull/4335)
3149 * Improve suggestion for `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
3150 * Improve suggestion for `single_char_literal` [#4361](https://github.com/rust-lang/rust-clippy/pull/4361)
3151 * Improve suggestion for `len_zero` [#4314](https://github.com/rust-lang/rust-clippy/pull/4314)
3152 * Fix ICE in `implicit_hasher` [#4268](https://github.com/rust-lang/rust-clippy/pull/4268)
3153 * Fix allow bug in `trivially_copy_pass_by_ref` [#4250](https://github.com/rust-lang/rust-clippy/pull/4250)
3154
3155 ## Rust 1.37
3156
3157 Released 2019-08-15
3158
3159 [082cfa7...e3cb40e](https://github.com/rust-lang/rust-clippy/compare/082cfa7...e3cb40e)
3160
3161 * New Lints:
3162   * [`checked_conversions`] [#4088](https://github.com/rust-lang/rust-clippy/pull/4088)
3163   * [`get_last_with_len`] [#3832](https://github.com/rust-lang/rust-clippy/pull/3832)
3164   * [`integer_division`] [#4195](https://github.com/rust-lang/rust-clippy/pull/4195)
3165 * Renamed Lint: `const_static_lifetime` is now called [`redundant_static_lifetimes`].
3166   The lint now covers statics in addition to consts [#4162](https://github.com/rust-lang/rust-clippy/pull/4162)
3167 * [`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)
3168 * [`needless_return`] now works with void functions [#4220](https://github.com/rust-lang/rust-clippy/pull/4220)
3169 * Fix false positive in [`redundant_closure`] [#4190](https://github.com/rust-lang/rust-clippy/pull/4190)
3170 * Fix false positive in [`useless_attribute`] [#4107](https://github.com/rust-lang/rust-clippy/pull/4107)
3171 * Fix incorrect suggestion for [`float_cmp`] [#4214](https://github.com/rust-lang/rust-clippy/pull/4214)
3172 * Add suggestions for [`print_with_newline`] and [`write_with_newline`] [#4136](https://github.com/rust-lang/rust-clippy/pull/4136)
3173 * Improve suggestions for `option_map_unwrap_or_else` and `result_map_unwrap_or_else` [#4164](https://github.com/rust-lang/rust-clippy/pull/4164)
3174 * Improve suggestions for [`non_ascii_literal`] [#4119](https://github.com/rust-lang/rust-clippy/pull/4119)
3175 * Improve diagnostics for [`let_and_return`] [#4137](https://github.com/rust-lang/rust-clippy/pull/4137)
3176 * Improve diagnostics for [`trivially_copy_pass_by_ref`] [#4071](https://github.com/rust-lang/rust-clippy/pull/4071)
3177 * Add macro check for [`unreadable_literal`] [#4099](https://github.com/rust-lang/rust-clippy/pull/4099)
3178
3179 ## Rust 1.36
3180
3181 Released 2019-07-04
3182
3183 [eb9f9b1...082cfa7](https://github.com/rust-lang/rust-clippy/compare/eb9f9b1...082cfa7)
3184
3185 * New lints: [`find_map`], [`filter_map_next`] [#4039](https://github.com/rust-lang/rust-clippy/pull/4039)
3186 * New lint: [`path_buf_push_overwrite`] [#3954](https://github.com/rust-lang/rust-clippy/pull/3954)
3187 * Move `path_buf_push_overwrite` to the nursery [#4013](https://github.com/rust-lang/rust-clippy/pull/4013)
3188 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
3189 * Allow allowing of [`toplevel_ref_arg`] lint [#4007](https://github.com/rust-lang/rust-clippy/pull/4007)
3190 * Fix false negative in [`or_fun_call`] pertaining to nested constructors [#4084](https://github.com/rust-lang/rust-clippy/pull/4084)
3191 * Fix false positive in [`or_fun_call`] pertaining to enum variant constructors [#4018](https://github.com/rust-lang/rust-clippy/pull/4018)
3192 * Fix false positive in [`useless_let_if_seq`] pertaining to interior mutability [#4035](https://github.com/rust-lang/rust-clippy/pull/4035)
3193 * Fix false positive in [`redundant_closure`] pertaining to non-function types [#4008](https://github.com/rust-lang/rust-clippy/pull/4008)
3194 * Fix false positive in [`let_and_return`] pertaining to attributes on `let`s [#4024](https://github.com/rust-lang/rust-clippy/pull/4024)
3195 * Fix false positive in [`module_name_repetitions`] lint pertaining to attributes [#4006](https://github.com/rust-lang/rust-clippy/pull/4006)
3196 * Fix false positive on [`assertions_on_constants`] pertaining to `debug_assert!` [#3989](https://github.com/rust-lang/rust-clippy/pull/3989)
3197 * 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)
3198 * Improve suggestion for [`search_is_some`] [#4049](https://github.com/rust-lang/rust-clippy/pull/4049)
3199 * Improve suggestion applicability for [`naive_bytecount`] [#3984](https://github.com/rust-lang/rust-clippy/pull/3984)
3200 * Improve suggestion applicability for [`while_let_loop`] [#3975](https://github.com/rust-lang/rust-clippy/pull/3975)
3201 * Improve diagnostics for [`too_many_arguments`] [#4053](https://github.com/rust-lang/rust-clippy/pull/4053)
3202 * Improve diagnostics for [`cast_lossless`] [#4021](https://github.com/rust-lang/rust-clippy/pull/4021)
3203 * Deal with macro checks in desugarings better [#4082](https://github.com/rust-lang/rust-clippy/pull/4082)
3204 * Add macro check for [`unnecessary_cast`]  [#4026](https://github.com/rust-lang/rust-clippy/pull/4026)
3205 * Remove [`approx_constant`]'s documentation's "Known problems" section. [#4027](https://github.com/rust-lang/rust-clippy/pull/4027)
3206 * Fix ICE in [`suspicious_else_formatting`] [#3960](https://github.com/rust-lang/rust-clippy/pull/3960)
3207 * Fix ICE in [`decimal_literal_representation`] [#3931](https://github.com/rust-lang/rust-clippy/pull/3931)
3208
3209
3210 ## Rust 1.35
3211
3212 Released 2019-05-20
3213
3214 [1fac380..37f5c1e](https://github.com/rust-lang/rust-clippy/compare/1fac380...37f5c1e)
3215
3216 * New lint: `drop_bounds` to detect `T: Drop` bounds
3217 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
3218 * Rename `cyclomatic_complexity` to [`cognitive_complexity`], start work on making lint more practical for Rust code
3219 * Move [`get_unwrap`] to the restriction category
3220 * Improve suggestions for [`iter_cloned_collect`]
3221 * Improve suggestions for [`cast_lossless`] to suggest suffixed literals
3222 * Fix false positives in [`print_with_newline`] and [`write_with_newline`] pertaining to raw strings
3223 * Fix false positive in [`needless_range_loop`] pertaining to structs without a `.iter()`
3224 * Fix false positive in [`bool_comparison`] pertaining to non-bool types
3225 * Fix false positive in [`redundant_closure`] pertaining to differences in borrows
3226 * Fix false positive in `option_map_unwrap_or` on non-copy types
3227 * Fix false positives in [`missing_const_for_fn`] pertaining to macros and trait method impls
3228 * Fix false positive in [`needless_pass_by_value`] pertaining to procedural macros
3229 * Fix false positive in [`needless_continue`] pertaining to loop labels
3230 * Fix false positive for [`boxed_local`] pertaining to arguments moved into closures
3231 * Fix false positive for [`use_self`] in nested functions
3232 * Fix suggestion for [`expect_fun_call`] (https://github.com/rust-lang/rust-clippy/pull/3846)
3233 * Fix suggestion for [`explicit_counter_loop`] to deal with parenthesizing range variables
3234 * Fix suggestion for [`single_char_pattern`] to correctly escape single quotes
3235 * Avoid triggering [`redundant_closure`] in macros
3236 * 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)
3237
3238 ## Rust 1.34
3239
3240 Released 2019-04-10
3241
3242 [1b89724...1fac380](https://github.com/rust-lang/rust-clippy/compare/1b89724...1fac380)
3243
3244 * New lint: [`assertions_on_constants`] to detect for example `assert!(true)`
3245 * New lint: [`dbg_macro`] to detect uses of the `dbg!` macro
3246 * New lint: [`missing_const_for_fn`] that can suggest functions to be made `const`
3247 * New lint: [`too_many_lines`] to detect functions with excessive LOC. It can be
3248   configured using the `too-many-lines-threshold` configuration.
3249 * New lint: [`wildcard_enum_match_arm`] to check for wildcard enum matches using `_`
3250 * Expand `redundant_closure` to also work for methods (not only functions)
3251 * Fix ICEs in `vec_box`, `needless_pass_by_value` and `implicit_hasher`
3252 * Fix false positive in `cast_sign_loss`
3253 * Fix false positive in `integer_arithmetic`
3254 * Fix false positive in `unit_arg`
3255 * Fix false positives in `implicit_return`
3256 * Add suggestion to `explicit_write`
3257 * Improve suggestions for `question_mark` lint
3258 * Fix incorrect suggestion for `cast_lossless`
3259 * Fix incorrect suggestion for `expect_fun_call`
3260 * Fix incorrect suggestion for `needless_bool`
3261 * Fix incorrect suggestion for `needless_range_loop`
3262 * Fix incorrect suggestion for `use_self`
3263 * Fix incorrect suggestion for `while_let_on_iterator`
3264 * Clippy is now slightly easier to invoke in non-cargo contexts. See
3265   [#3665][pull3665] for more details.
3266 * We now have [improved documentation][adding_lints] on how to add new lints
3267
3268 ## Rust 1.33
3269
3270 Released 2019-02-26
3271
3272 [b2601be...1b89724](https://github.com/rust-lang/rust-clippy/compare/b2601be...1b89724)
3273
3274 * New lints: [`implicit_return`], [`vec_box`], [`cast_ref_to_mut`]
3275 * The `rust-clippy` repository is now part of the `rust-lang` org.
3276 * Rename `stutter` to `module_name_repetitions`
3277 * Merge `new_without_default_derive` into `new_without_default` lint
3278 * Move `large_digit_groups` from `style` group to `pedantic`
3279 * Expand `bool_comparison` to check for `<`, `<=`, `>`, `>=`, and `!=`
3280   comparisons against booleans
3281 * Expand `no_effect` to detect writes to constants such as `A_CONST.field = 2`
3282 * Expand `redundant_clone` to work on struct fields
3283 * Expand `suspicious_else_formatting` to detect `if .. {..} {..}`
3284 * Expand `use_self` to work on tuple structs and also in local macros
3285 * Fix ICE in `result_map_unit_fn` and `option_map_unit_fn`
3286 * Fix false positives in `implicit_return`
3287 * Fix false positives in `use_self`
3288 * Fix false negative in `clone_on_copy`
3289 * Fix false positive in `doc_markdown`
3290 * Fix false positive in `empty_loop`
3291 * Fix false positive in `if_same_then_else`
3292 * Fix false positive in `infinite_iter`
3293 * Fix false positive in `question_mark`
3294 * Fix false positive in `useless_asref`
3295 * Fix false positive in `wildcard_dependencies`
3296 * Fix false positive in `write_with_newline`
3297 * Add suggestion to `explicit_write`
3298 * Improve suggestions for `question_mark` lint
3299 * Fix incorrect suggestion for `get_unwrap`
3300
3301 ## Rust 1.32
3302
3303 Released 2019-01-17
3304
3305 [2e26fdc2...b2601be](https://github.com/rust-lang/rust-clippy/compare/2e26fdc2...b2601be)
3306
3307 * New lints: [`slow_vector_initialization`], `mem_discriminant_non_enum`,
3308   [`redundant_clone`], [`wildcard_dependencies`],
3309   [`into_iter_on_ref`], `into_iter_on_array`, [`deprecated_cfg_attr`],
3310   [`cargo_common_metadata`]
3311 * Add support for `u128` and `i128` to integer related lints
3312 * Add float support to `mistyped_literal_suffixes`
3313 * Fix false positives in `use_self`
3314 * Fix false positives in `missing_comma`
3315 * Fix false positives in `new_ret_no_self`
3316 * Fix false positives in `possible_missing_comma`
3317 * Fix false positive in `integer_arithmetic` in constant items
3318 * Fix false positive in `needless_borrow`
3319 * Fix false positive in `out_of_bounds_indexing`
3320 * Fix false positive in `new_without_default_derive`
3321 * Fix false positive in `string_lit_as_bytes`
3322 * Fix false negative in `out_of_bounds_indexing`
3323 * Fix false negative in `use_self`. It will now also check existential types
3324 * Fix incorrect suggestion for `redundant_closure_call`
3325 * Fix various suggestions that contained expanded macros
3326 * Fix `bool_comparison` triggering 3 times on on on the same code
3327 * Expand `trivially_copy_pass_by_ref` to work on trait methods
3328 * Improve suggestion for `needless_range_loop`
3329 * Move `needless_pass_by_value` from `pedantic` group to `style`
3330
3331 ## Rust 1.31
3332
3333 Released 2018-12-06
3334
3335 [125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
3336
3337 * Clippy has been relicensed under a dual MIT / Apache license.
3338   See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
3339   information.
3340 * With Rust 1.31, Clippy is no longer available via crates.io. The recommended
3341   installation method is via `rustup component add clippy`.
3342 * New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
3343   [`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
3344 * Fix ICE in `if_let_redundant_pattern_matching`
3345 * Fix ICE in `needless_pass_by_value` when encountering a generic function
3346   argument with a lifetime parameter
3347 * Fix ICE in `needless_range_loop`
3348 * Fix ICE in `single_char_pattern` when encountering a constant value
3349 * Fix false positive in `assign_op_pattern`
3350 * Fix false positive in `boxed_local` on trait implementations
3351 * Fix false positive in `cmp_owned`
3352 * Fix false positive in `collapsible_if` when conditionals have comments
3353 * Fix false positive in `double_parens`
3354 * Fix false positive in `excessive_precision`
3355 * Fix false positive in `explicit_counter_loop`
3356 * Fix false positive in `fn_to_numeric_cast_with_truncation`
3357 * Fix false positive in `map_clone`
3358 * Fix false positive in `new_ret_no_self`
3359 * Fix false positive in `new_without_default` when `new` is unsafe
3360 * Fix false positive in `type_complexity` when using extern types
3361 * Fix false positive in `useless_format`
3362 * Fix false positive in `wrong_self_convention`
3363 * Fix incorrect suggestion for `excessive_precision`
3364 * Fix incorrect suggestion for `expect_fun_call`
3365 * Fix incorrect suggestion for `get_unwrap`
3366 * Fix incorrect suggestion for `useless_format`
3367 * `fn_to_numeric_cast_with_truncation` lint can be disabled again
3368 * Improve suggestions for `manual_memcpy`
3369 * Improve help message for `needless_lifetimes`
3370
3371 ## Rust 1.30
3372
3373 Released 2018-10-25
3374
3375 [14207503...125907ad](https://github.com/rust-lang/rust-clippy/compare/14207503...125907ad)
3376
3377 * Deprecate `assign_ops` lint
3378 * New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
3379   [`needless_collect`], [`copy_iterator`]
3380 * `cargo clippy -V` now includes the Clippy commit hash of the Rust
3381   Clippy component
3382 * Fix ICE in `implicit_hasher`
3383 * Fix ICE when encountering `println!("{}" a);`
3384 * Fix ICE when encountering a macro call in match statements
3385 * Fix false positive in `default_trait_access`
3386 * Fix false positive in `trivially_copy_pass_by_ref`
3387 * Fix false positive in `similar_names`
3388 * Fix false positive in `redundant_field_name`
3389 * Fix false positive in `expect_fun_call`
3390 * Fix false negative in `identity_conversion`
3391 * Fix false negative in `explicit_counter_loop`
3392 * Fix `range_plus_one` suggestion and false negative
3393 * `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
3394 * Fix `useless_attribute` to also whitelist `unused_extern_crates`
3395 * Fix incorrect suggestion for `single_char_pattern`
3396 * Improve suggestion for `identity_conversion` lint
3397 * Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
3398 * Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
3399 * Move `shadow_unrelated` from `restriction` group to `pedantic`
3400 * Move `indexing_slicing` from `pedantic` group to `restriction`
3401
3402 ## Rust 1.29
3403
3404 Released 2018-09-13
3405
3406 [v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
3407
3408 * :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
3409   :tada:
3410   You can now run `rustup component add clippy-preview` and then `cargo
3411   clippy` to run Clippy. This should put an end to the continuous nightly
3412   upgrades for Clippy users.
3413 * Clippy now follows the Rust versioning scheme instead of its own
3414 * Fix ICE when encountering a `while let (..) = x.iter()` construct
3415 * Fix false positives in `use_self`
3416 * Fix false positive in `trivially_copy_pass_by_ref`
3417 * Fix false positive in `useless_attribute` lint
3418 * Fix false positive in `print_literal`
3419 * Fix `use_self` regressions
3420 * Improve lint message for `neg_cmp_op_on_partial_ord`
3421 * Improve suggestion highlight for `single_char_pattern`
3422 * Improve suggestions for various print/write macro lints
3423 * Improve website header
3424
3425 ## 0.0.212 (2018-07-10)
3426 * Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
3427
3428 ## 0.0.211
3429 * Rustup to *rustc 1.28.0-nightly (e3bf634e0 2018-06-28)*
3430
3431 ## 0.0.210
3432 * Rustup to *rustc 1.28.0-nightly (01cc982e9 2018-06-24)*
3433
3434 ## 0.0.209
3435 * Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
3436
3437 ## 0.0.208
3438 * Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*
3439
3440 ## 0.0.207
3441 * Rustup to *rustc 1.28.0-nightly (2a0062974 2018-06-09)*
3442
3443 ## 0.0.206
3444 * Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)*
3445
3446 ## 0.0.205
3447 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)*
3448 * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint
3449
3450 ## 0.0.204
3451 * Rustup to *rustc 1.28.0-nightly (71e87be38 2018-05-22)*
3452
3453 ## 0.0.203
3454 * Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
3455 * Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
3456
3457 ## 0.0.202
3458 * Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*
3459
3460 ## 0.0.201
3461 * Rustup to *rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)*
3462
3463 ## 0.0.200
3464 * Rustup to *rustc 1.27.0-nightly (9fae15374 2018-05-13)*
3465
3466 ## 0.0.199
3467 * Rustup to *rustc 1.27.0-nightly (ff2ac35db 2018-05-12)*
3468
3469 ## 0.0.198
3470 * Rustup to *rustc 1.27.0-nightly (acd3871ba 2018-05-10)*
3471
3472 ## 0.0.197
3473 * Rustup to *rustc 1.27.0-nightly (428ea5f6b 2018-05-06)*
3474
3475 ## 0.0.196
3476 * Rustup to *rustc 1.27.0-nightly (e82261dfb 2018-05-03)*
3477
3478 ## 0.0.195
3479 * Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
3480
3481 ## 0.0.194
3482 * Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
3483 * New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
3484
3485 ## 0.0.193
3486 * Rustup to *rustc 1.27.0-nightly (eeea94c11 2018-04-06)*
3487
3488 ## 0.0.192
3489 * Rustup to *rustc 1.27.0-nightly (fb44b4c0e 2018-04-04)*
3490 * New lint: [`print_literal`]
3491
3492 ## 0.0.191
3493 * Rustup to *rustc 1.26.0-nightly (ae544ee1c 2018-03-29)*
3494 * Lint audit; categorize lints as style, correctness, complexity, pedantic, nursery, restriction.
3495
3496 ## 0.0.190
3497 * Fix a bunch of intermittent cargo bugs
3498
3499 ## 0.0.189
3500 * Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
3501
3502 ## 0.0.188
3503 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
3504 * New lint: [`while_immutable_condition`]
3505
3506 ## 0.0.187
3507 * Rustup to *rustc 1.26.0-nightly (322d7f7b9 2018-02-25)*
3508 * New lints: [`redundant_field_names`], [`suspicious_arithmetic_impl`], [`suspicious_op_assign_impl`]
3509
3510 ## 0.0.186
3511 * Rustup to *rustc 1.25.0-nightly (0c6091fbd 2018-02-04)*
3512 * Various false positive fixes
3513
3514 ## 0.0.185
3515 * Rustup to *rustc 1.25.0-nightly (56733bc9f 2018-02-01)*
3516 * New lint: [`question_mark`]
3517
3518 ## 0.0.184
3519 * Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)*
3520 * New lints: [`double_comparisons`], [`empty_line_after_outer_attr`]
3521
3522 ## 0.0.183
3523 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)*
3524 * New lint: [`misaligned_transmute`]
3525
3526 ## 0.0.182
3527 * Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
3528 * New lint: [`decimal_literal_representation`]
3529
3530 ## 0.0.181
3531 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
3532 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
3533 * Removed `unit_expr`
3534 * Various false positive fixes for [`needless_pass_by_value`]
3535
3536 ## 0.0.180
3537 * Rustup to *rustc 1.25.0-nightly (3f92e8d89 2018-01-14)*
3538
3539 ## 0.0.179
3540 * Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
3541
3542 ## 0.0.178
3543 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
3544
3545 ## 0.0.177
3546 * Rustup to *rustc 1.24.0-nightly (250b49205 2017-12-21)*
3547 * New lint: [`match_as_ref`]
3548
3549 ## 0.0.176
3550 * Rustup to *rustc 1.24.0-nightly (0077d128d 2017-12-14)*
3551
3552 ## 0.0.175
3553 * Rustup to *rustc 1.24.0-nightly (bb42071f6 2017-12-01)*
3554
3555 ## 0.0.174
3556 * Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
3557
3558 ## 0.0.173
3559 * Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*
3560
3561 ## 0.0.172
3562 * Rustup to *rustc 1.23.0-nightly (d0f8e2913 2017-11-16)*
3563
3564 ## 0.0.171
3565 * Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
3566
3567 ## 0.0.170
3568 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
3569
3570 ## 0.0.169
3571 * Rustup to *rustc 1.23.0-nightly (3b82e4c74 2017-11-05)*
3572 * New lints: [`just_underscores_and_digits`], `result_map_unwrap_or_else`, [`transmute_bytes_to_str`]
3573
3574 ## 0.0.168
3575 * Rustup to *rustc 1.23.0-nightly (f0fe716db 2017-10-30)*
3576
3577 ## 0.0.167
3578 * Rustup to *rustc 1.23.0-nightly (90ef3372e 2017-10-29)*
3579 * New lints: `const_static_lifetime`, [`erasing_op`], [`fallible_impl_from`], [`println_empty_string`], [`useless_asref`]
3580
3581 ## 0.0.166
3582 * Rustup to *rustc 1.22.0-nightly (b7960878b 2017-10-18)*
3583 * New lints: [`explicit_write`], `identity_conversion`, [`implicit_hasher`], `invalid_ref`, [`option_map_or_none`],
3584   [`range_minus_one`], [`range_plus_one`], [`transmute_int_to_bool`], [`transmute_int_to_char`],
3585   [`transmute_int_to_float`]
3586
3587 ## 0.0.165
3588 * Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
3589 * New lint: [`mut_range_bound`]
3590
3591 ## 0.0.164
3592 * Update to *rustc 1.22.0-nightly (6c476ce46 2017-09-25)*
3593 * New lint: [`int_plus_one`]
3594
3595 ## 0.0.163
3596 * Update to *rustc 1.22.0-nightly (14039a42a 2017-09-22)*
3597
3598 ## 0.0.162
3599 * Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
3600 * New lint: [`chars_last_cmp`]
3601 * Improved suggestions for [`needless_borrow`], [`ptr_arg`],
3602
3603 ## 0.0.161
3604 * Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
3605
3606 ## 0.0.160
3607 * Update to *rustc 1.22.0-nightly (dd08c3070 2017-09-12)*
3608
3609 ## 0.0.159
3610 * Update to *rustc 1.22.0-nightly (eba374fb2 2017-09-11)*
3611 * New lint: [`clone_on_ref_ptr`]
3612
3613 ## 0.0.158
3614 * New lint: [`manual_memcpy`]
3615 * [`cast_lossless`] no longer has redundant parentheses in its suggestions
3616 * Update to *rustc 1.22.0-nightly (dead08cb3 2017-09-08)*
3617
3618 ## 0.0.157 - 2017-09-04
3619 * Update to *rustc 1.22.0-nightly (981ce7d8d 2017-09-03)*
3620 * New lint: `unit_expr`
3621
3622 ## 0.0.156 - 2017-09-03
3623 * Update to *rustc 1.22.0-nightly (744dd6c1d 2017-09-02)*
3624
3625 ## 0.0.155
3626 * Update to *rustc 1.21.0-nightly (c11f689d2 2017-08-29)*
3627 * New lint: [`infinite_iter`], [`maybe_infinite_iter`], [`cast_lossless`]
3628
3629 ## 0.0.154
3630 * Update to *rustc 1.21.0-nightly (2c0558f63 2017-08-24)*
3631 * Fix [`use_self`] triggering inside derives
3632 * Add support for linting an entire workspace with `cargo clippy --all`
3633 * New lint: [`naive_bytecount`]
3634
3635 ## 0.0.153
3636 * Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)*
3637 * New lint: [`use_self`]
3638
3639 ## 0.0.152
3640 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)*
3641
3642 ## 0.0.151
3643 * Update to *rustc 1.21.0-nightly (13d94d5fa 2017-08-10)*
3644
3645 ## 0.0.150
3646 * Update to *rustc 1.21.0-nightly (215e0b10e 2017-08-08)*
3647
3648 ## 0.0.148
3649 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)*
3650 * New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`]
3651
3652 ## 0.0.147
3653 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)*
3654
3655 ## 0.0.146
3656 * Update to *rustc 1.21.0-nightly (52a330969 2017-07-27)*
3657 * Fixes false positives in `inline_always`
3658 * Fixes false negatives in `panic_params`
3659
3660 ## 0.0.145
3661 * Update to *rustc 1.20.0-nightly (afe145d22 2017-07-23)*
3662
3663 ## 0.0.144
3664 * Update to *rustc 1.20.0-nightly (086eaa78e 2017-07-15)*
3665
3666 ## 0.0.143
3667 * Update to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
3668 * Fix `cargo clippy` crashing on `dylib` projects
3669 * Fix false positives around `nested_while_let` and `never_loop`
3670
3671 ## 0.0.142
3672 * Update to *rustc 1.20.0-nightly (067971139 2017-07-02)*
3673
3674 ## 0.0.141
3675 * Rewrite of the `doc_markdown` lint.
3676 * Deprecated [`range_step_by_zero`]
3677 * New lint: [`iterator_step_by_zero`]
3678 * New lint: [`needless_borrowed_reference`]
3679 * Update to *rustc 1.20.0-nightly (69c65d296 2017-06-28)*
3680
3681 ## 0.0.140 - 2017-06-16
3682 * Update to *rustc 1.19.0-nightly (258ae6dd9 2017-06-15)*
3683
3684 ## 0.0.139 — 2017-06-10
3685 * Update to *rustc 1.19.0-nightly (4bf5c99af 2017-06-10)*
3686 * Fix bugs with for loop desugaring
3687 * Check for [`AsRef`]/[`AsMut`] arguments in [`wrong_self_convention`]
3688
3689 ## 0.0.138 — 2017-06-05
3690 * Update to *rustc 1.19.0-nightly (0418fa9d3 2017-06-04)*
3691
3692 ## 0.0.137 — 2017-06-05
3693 * Update to *rustc 1.19.0-nightly (6684d176c 2017-06-03)*
3694
3695 ## 0.0.136 — 2017—05—26
3696 * Update to *rustc 1.19.0-nightly (557967766 2017-05-26)*
3697
3698 ## 0.0.135 — 2017—05—24
3699 * Update to *rustc 1.19.0-nightly (5b13bff52 2017-05-23)*
3700
3701 ## 0.0.134 — 2017—05—19
3702 * Update to *rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)*
3703
3704 ## 0.0.133 — 2017—05—14
3705 * Update to *rustc 1.19.0-nightly (826d8f385 2017-05-13)*
3706
3707 ## 0.0.132 — 2017—05—05
3708 * Fix various bugs and some ices
3709
3710 ## 0.0.131 — 2017—05—04
3711 * Update to *rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)*
3712
3713 ## 0.0.130 — 2017—05—03
3714 * Update to *rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)*
3715
3716 ## 0.0.129 — 2017-05-01
3717 * Update to *rustc 1.19.0-nightly (06fb4d256 2017-04-30)*
3718
3719 ## 0.0.128 — 2017-04-28
3720 * Update to *rustc 1.18.0-nightly (94e884b63 2017-04-27)*
3721
3722 ## 0.0.127 — 2017-04-27
3723 * Update to *rustc 1.18.0-nightly (036983201 2017-04-26)*
3724 * New lint: [`needless_continue`]
3725
3726 ## 0.0.126 — 2017-04-24
3727 * Update to *rustc 1.18.0-nightly (2bd4b5c6d 2017-04-23)*
3728
3729 ## 0.0.125 — 2017-04-19
3730 * Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)*
3731
3732 ## 0.0.124 — 2017-04-16
3733 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
3734
3735 ## 0.0.123 — 2017-04-07
3736 * Fix various false positives
3737
3738 ## 0.0.122 — 2017-04-07
3739 * Rustup to *rustc 1.18.0-nightly (91ae22a01 2017-04-05)*
3740 * New lint: [`op_ref`]
3741
3742 ## 0.0.121 — 2017-03-21
3743 * Rustup to *rustc 1.17.0-nightly (134c4a0f0 2017-03-20)*
3744
3745 ## 0.0.120 — 2017-03-17
3746 * Rustup to *rustc 1.17.0-nightly (0aeb9c129 2017-03-15)*
3747
3748 ## 0.0.119 — 2017-03-13
3749 * Rustup to *rustc 1.17.0-nightly (824c9ebbd 2017-03-12)*
3750
3751 ## 0.0.118 — 2017-03-05
3752 * Rustup to *rustc 1.17.0-nightly (b1e31766d 2017-03-03)*
3753
3754 ## 0.0.117 — 2017-03-01
3755 * Rustup to *rustc 1.17.0-nightly (be760566c 2017-02-28)*
3756
3757 ## 0.0.116 — 2017-02-28
3758 * Fix `cargo clippy` on 64 bit windows systems
3759
3760 ## 0.0.115 — 2017-02-27
3761 * Rustup to *rustc 1.17.0-nightly (60a0edc6c 2017-02-26)*
3762 * New lints: [`zero_ptr`], [`never_loop`], [`mut_from_ref`]
3763
3764 ## 0.0.114 — 2017-02-08
3765 * Rustup to *rustc 1.17.0-nightly (c49d10207 2017-02-07)*
3766 * Tests are now ui tests (testing the exact output of rustc)
3767
3768 ## 0.0.113 — 2017-02-04
3769 * Rustup to *rustc 1.16.0-nightly (eedaa94e3 2017-02-02)*
3770 * New lint: [`large_enum_variant`]
3771 * `explicit_into_iter_loop` provides suggestions
3772
3773 ## 0.0.112 — 2017-01-27
3774 * Rustup to *rustc 1.16.0-nightly (df8debf6d 2017-01-25)*
3775
3776 ## 0.0.111 — 2017-01-21
3777 * Rustup to *rustc 1.16.0-nightly (a52da95ce 2017-01-20)*
3778
3779 ## 0.0.110 — 2017-01-20
3780 * Add badges and categories to `Cargo.toml`
3781
3782 ## 0.0.109 — 2017-01-19
3783 * Update to *rustc 1.16.0-nightly (c07a6ae77 2017-01-17)*
3784
3785 ## 0.0.108 — 2017-01-12
3786 * Update to *rustc 1.16.0-nightly (2782e8f8f 2017-01-12)*
3787
3788 ## 0.0.107 — 2017-01-11
3789 * Update regex dependency
3790 * Fix FP when matching `&&mut` by `&ref`
3791 * Reintroduce `for (_, x) in &mut hash_map` -> `for x in hash_map.values_mut()`
3792 * New lints: [`unused_io_amount`], [`forget_ref`], [`short_circuit_statement`]
3793
3794 ## 0.0.106 — 2017-01-04
3795 * Fix FP introduced by rustup in [`wrong_self_convention`]
3796
3797 ## 0.0.105 — 2017-01-04
3798 * Update to *rustc 1.16.0-nightly (468227129 2017-01-03)*
3799 * New lints: [`deref_addrof`], [`double_parens`], [`pub_enum_variant_names`]
3800 * Fix suggestion in [`new_without_default`]
3801 * FP fix in [`absurd_extreme_comparisons`]
3802
3803 ## 0.0.104 — 2016-12-15
3804 * Update to *rustc 1.15.0-nightly (8f02c429a 2016-12-15)*
3805
3806 ## 0.0.103 — 2016-11-25
3807 * Update to *rustc 1.15.0-nightly (d5814b03e 2016-11-23)*
3808
3809 ## 0.0.102 — 2016-11-24
3810 * Update to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
3811
3812 ## 0.0.101 — 2016-11-23
3813 * Update to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
3814 * New lint: [`string_extend_chars`]
3815
3816 ## 0.0.100 — 2016-11-20
3817 * Update to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
3818
3819 ## 0.0.99 — 2016-11-18
3820 * Update to rustc 1.15.0-nightly (0ed951993 2016-11-14)
3821 * New lint: [`get_unwrap`]
3822
3823 ## 0.0.98 — 2016-11-08
3824 * Fixes an issue due to a change in how cargo handles `--sysroot`, which broke `cargo clippy`
3825
3826 ## 0.0.97 — 2016-11-03
3827 * For convenience, `cargo clippy` defines a `cargo-clippy` feature. This was
3828   previously added for a short time under the name `clippy` but removed for
3829   compatibility.
3830 * `cargo clippy --help` is more helping (and less helpful :smile:)
3831 * Rustup to *rustc 1.14.0-nightly (5665bdf3e 2016-11-02)*
3832 * New lints: [`if_let_redundant_pattern_matching`], [`partialeq_ne_impl`]
3833
3834 ## 0.0.96 — 2016-10-22
3835 * Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)*
3836 * New lint: [`iter_skip_next`]
3837
3838 ## 0.0.95 — 2016-10-06
3839 * Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
3840
3841 ## 0.0.94 — 2016-10-04
3842 * Fixes bustage on Windows due to forbidden directory name
3843
3844 ## 0.0.93 — 2016-10-03
3845 * Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
3846 * `option_map_unwrap_or` and `option_map_unwrap_or_else` are now
3847   allowed by default.
3848 * New lint: [`explicit_into_iter_loop`]
3849
3850 ## 0.0.92 — 2016-09-30
3851 * Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
3852
3853 ## 0.0.91 — 2016-09-28
3854 * Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
3855
3856 ## 0.0.90 — 2016-09-09
3857 * Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
3858
3859 ## 0.0.89 — 2016-09-06
3860 * Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
3861
3862 ## 0.0.88 — 2016-09-04
3863 * Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)*
3864 * The following lints are not new but were only usable through the `clippy`
3865   lint groups: [`filter_next`], `for_loop_over_option`,
3866   `for_loop_over_result` and [`match_overlapping_arm`]. You should now be
3867   able to `#[allow/deny]` them individually and they are available directly
3868   through `cargo clippy`.
3869
3870 ## 0.0.87 — 2016-08-31
3871 * Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)*
3872 * New lints: [`builtin_type_shadow`]
3873 * Fix FP in [`zero_prefixed_literal`] and `0b`/`0o`
3874
3875 ## 0.0.86 — 2016-08-28
3876 * Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
3877 * New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
3878
3879 ## 0.0.85 — 2016-08-19
3880 * Fix ICE with [`useless_attribute`]
3881 * [`useless_attribute`] ignores `unused_imports` on `use` statements
3882
3883 ## 0.0.84 — 2016-08-18
3884 * Rustup to *rustc 1.13.0-nightly (aef6971ca 2016-08-17)*
3885
3886 ## 0.0.83 — 2016-08-17
3887 * Rustup to *rustc 1.12.0-nightly (1bf5fa326 2016-08-16)*
3888 * New lints: [`print_with_newline`], [`useless_attribute`]
3889
3890 ## 0.0.82 — 2016-08-17
3891 * Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)*
3892 * New lint: [`module_inception`]
3893
3894 ## 0.0.81 — 2016-08-14
3895 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)*
3896 * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`]
3897 * False positive fix in [`too_many_arguments`]
3898 * Addition of functionality to [`needless_borrow`]
3899 * Suggestions for [`clone_on_copy`]
3900 * Bug fix in [`wrong_self_convention`]
3901 * Doc improvements
3902
3903 ## 0.0.80 — 2016-07-31
3904 * Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)*
3905 * New lints: [`misrefactored_assign_op`], [`serde_api_misuse`]
3906
3907 ## 0.0.79 — 2016-07-10
3908 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
3909 * Major suggestions refactoring
3910
3911 ## 0.0.78 — 2016-07-02
3912 * Rustup to *rustc 1.11.0-nightly (01411937f 2016-07-01)*
3913 * New lints: [`wrong_transmute`], [`double_neg`], [`filter_map`]
3914 * For compatibility, `cargo clippy` does not defines the `clippy` feature
3915   introduced in 0.0.76 anymore
3916 * [`collapsible_if`] now considers `if let`
3917
3918 ## 0.0.77 — 2016-06-21
3919 * Rustup to *rustc 1.11.0-nightly (5522e678b 2016-06-20)*
3920 * New lints: `stutter` and [`iter_nth`]
3921
3922 ## 0.0.76 — 2016-06-10
3923 * Rustup to *rustc 1.11.0-nightly (7d2f75a95 2016-06-09)*
3924 * `cargo clippy` now automatically defines the `clippy` feature
3925 * New lint: [`not_unsafe_ptr_arg_deref`]
3926
3927 ## 0.0.75 — 2016-06-08
3928 * Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*
3929
3930 ## 0.0.74 — 2016-06-07
3931 * Fix bug with `cargo-clippy` JSON parsing
3932 * Add the `CLIPPY_DISABLE_DOCS_LINKS` environment variable to deactivate the
3933   “for further information visit *lint-link*” message.
3934
3935 ## 0.0.73 — 2016-06-05
3936 * Fix false positives in [`useless_let_if_seq`]
3937
3938 ## 0.0.72 — 2016-06-04
3939 * Fix false positives in [`useless_let_if_seq`]
3940
3941 ## 0.0.71 — 2016-05-31
3942 * Rustup to *rustc 1.11.0-nightly (a967611d8 2016-05-30)*
3943 * New lint: [`useless_let_if_seq`]
3944
3945 ## 0.0.70 — 2016-05-28
3946 * Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
3947 * [`invalid_regex`] and [`trivial_regex`] can now warn on `RegexSet::new`,
3948   `RegexBuilder::new` and byte regexes
3949
3950 ## 0.0.69 — 2016-05-20
3951 * Rustup to *rustc 1.10.0-nightly (476fe6eef 2016-05-21)*
3952 * [`used_underscore_binding`] has been made `Allow` temporarily
3953
3954 ## 0.0.68 — 2016-05-17
3955 * Rustup to *rustc 1.10.0-nightly (cd6a40017 2016-05-16)*
3956 * New lint: [`unnecessary_operation`]
3957
3958 ## 0.0.67 — 2016-05-12
3959 * Rustup to *rustc 1.10.0-nightly (22ac88f1a 2016-05-11)*
3960
3961 ## 0.0.66 — 2016-05-11
3962 * New `cargo clippy` subcommand
3963 * New lints: [`assign_op_pattern`], [`assign_ops`], [`needless_borrow`]
3964
3965 ## 0.0.65 — 2016-05-08
3966 * Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
3967 * New lints: [`float_arithmetic`], [`integer_arithmetic`]
3968
3969 ## 0.0.64 — 2016-04-26
3970 * Rustup to *rustc 1.10.0-nightly (645dd013a 2016-04-24)*
3971 * New lints: `temporary_cstring_as_ptr`, [`unsafe_removed_from_name`], and [`mem_forget`]
3972
3973 ## 0.0.63 — 2016-04-08
3974 * Rustup to *rustc 1.9.0-nightly (7979dd608 2016-04-07)*
3975
3976 ## 0.0.62 — 2016-04-07
3977 * Rustup to *rustc 1.9.0-nightly (bf5da36f1 2016-04-06)*
3978
3979 ## 0.0.61 — 2016-04-03
3980 * Rustup to *rustc 1.9.0-nightly (5ab11d72c 2016-04-02)*
3981 * New lint: [`invalid_upcast_comparisons`]
3982
3983 ## 0.0.60 — 2016-04-01
3984 * Rustup to *rustc 1.9.0-nightly (e1195c24b 2016-03-31)*
3985
3986 ## 0.0.59 — 2016-03-31
3987 * Rustup to *rustc 1.9.0-nightly (30a3849f2 2016-03-30)*
3988 * New lints: [`logic_bug`], [`nonminimal_bool`]
3989 * Fixed: [`match_same_arms`] now ignores arms with guards
3990 * Improved: [`useless_vec`] now warns on `for … in vec![…]`
3991
3992 ## 0.0.58 — 2016-03-27
3993 * Rustup to *rustc 1.9.0-nightly (d5a91e695 2016-03-26)*
3994 * New lint: [`doc_markdown`]
3995
3996 ## 0.0.57 — 2016-03-27
3997 * Update to *rustc 1.9.0-nightly (a1e29daf1 2016-03-25)*
3998 * Deprecated lints: [`str_to_string`], [`string_to_string`], [`unstable_as_slice`], [`unstable_as_mut_slice`]
3999 * New lint: [`crosspointer_transmute`]
4000
4001 ## 0.0.56 — 2016-03-23
4002 * Update to *rustc 1.9.0-nightly (0dcc413e4 2016-03-22)*
4003 * New lints: [`many_single_char_names`] and [`similar_names`]
4004
4005 ## 0.0.55 — 2016-03-21
4006 * Update to *rustc 1.9.0-nightly (02310fd31 2016-03-19)*
4007
4008 ## 0.0.54 — 2016-03-16
4009 * Update to *rustc 1.9.0-nightly (c66d2380a 2016-03-15)*
4010
4011 ## 0.0.53 — 2016-03-15
4012 * Add a [configuration file]
4013
4014 ## ~~0.0.52~~
4015
4016 ## 0.0.51 — 2016-03-13
4017 * Add `str` to types considered by [`len_zero`]
4018 * New lints: [`indexing_slicing`]
4019
4020 ## 0.0.50 — 2016-03-11
4021 * Update to *rustc 1.9.0-nightly (c9629d61c 2016-03-10)*
4022
4023 ## 0.0.49 — 2016-03-09
4024 * Update to *rustc 1.9.0-nightly (eabfc160f 2016-03-08)*
4025 * New lints: [`overflow_check_conditional`], `unused_label`, [`new_without_default`]
4026
4027 ## 0.0.48 — 2016-03-07
4028 * Fixed: ICE in [`needless_range_loop`] with globals
4029
4030 ## 0.0.47 — 2016-03-07
4031 * Update to *rustc 1.9.0-nightly (998a6720b 2016-03-07)*
4032 * New lint: [`redundant_closure_call`]
4033
4034 [`AsMut`]: https://doc.rust-lang.org/std/convert/trait.AsMut.html
4035 [`AsRef`]: https://doc.rust-lang.org/std/convert/trait.AsRef.html
4036 [configuration file]: ./rust-clippy#configuration
4037 [pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
4038 [adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/adding_lints.md
4039 [`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
4040
4041 <!-- lint disable no-unused-definitions -->
4042 <!-- begin autogenerated links to lint list -->
4043 [`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
4044 [`alloc_instead_of_core`]: https://rust-lang.github.io/rust-clippy/master/index.html#alloc_instead_of_core
4045 [`allow_attributes_without_reason`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason
4046 [`almost_complete_letter_range`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_letter_range
4047 [`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
4048 [`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
4049 [`arithmetic_side_effects`]: https://rust-lang.github.io/rust-clippy/master/index.html#arithmetic_side_effects
4050 [`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
4051 [`as_ptr_cast_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_ptr_cast_mut
4052 [`as_underscore`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_underscore
4053 [`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
4054 [`assertions_on_result_states`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
4055 [`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
4056 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
4057 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
4058 [`await_holding_invalid_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_invalid_type
4059 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
4060 [`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
4061 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
4062 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
4063 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
4064 [`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
4065 [`block_in_if_condition_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_expr
4066 [`block_in_if_condition_stmt`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt
4067 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
4068 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
4069 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
4070 [`bool_to_int_with_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
4071 [`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
4072 [`borrow_deref_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
4073 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
4074 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
4075 [`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
4076 [`box_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_default
4077 [`box_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
4078 [`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
4079 [`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
4080 [`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
4081 [`bytes_count_to_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_count_to_len
4082 [`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
4083 [`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
4084 [`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
4085 [`cast_abs_to_unsigned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned
4086 [`cast_enum_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_constructor
4087 [`cast_enum_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_truncation
4088 [`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
4089 [`cast_nan_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_nan_to_int
4090 [`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
4091 [`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
4092 [`cast_precision_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss
4093 [`cast_ptr_alignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment
4094 [`cast_ref_to_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ref_to_mut
4095 [`cast_sign_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
4096 [`cast_slice_different_sizes`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes
4097 [`cast_slice_from_raw_parts`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_from_raw_parts
4098 [`char_lit_as_u8`]: https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
4099 [`chars_last_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
4100 [`chars_next_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
4101 [`checked_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions
4102 [`clone_double_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
4103 [`clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
4104 [`clone_on_ref_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_ref_ptr
4105 [`cloned_instead_of_copied`]: https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
4106 [`cmp_nan`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_nan
4107 [`cmp_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
4108 [`cmp_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
4109 [`cognitive_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
4110 [`collapsible_else_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
4111 [`collapsible_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
4112 [`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
4113 [`collapsible_str_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace
4114 [`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
4115 [`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
4116 [`const_static_lifetime`]: https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime
4117 [`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
4118 [`crate_in_macro_def`]: https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
4119 [`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
4120 [`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
4121 [`cyclomatic_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity
4122 [`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
4123 [`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
4124 [`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
4125 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
4126 [`default_instead_of_iter_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_instead_of_iter_empty
4127 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
4128 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
4129 [`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
4130 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
4131 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
4132 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
4133 [`deref_by_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing
4134 [`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
4135 [`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
4136 [`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
4137 [`derive_partial_eq_without_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
4138 [`disallowed_macros`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_macros
4139 [`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
4140 [`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
4141 [`disallowed_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
4142 [`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
4143 [`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
4144 [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
4145 [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
4146 [`doc_link_with_quotes`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
4147 [`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
4148 [`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
4149 [`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
4150 [`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
4151 [`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
4152 [`drop_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_bounds
4153 [`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
4154 [`drop_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
4155 [`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
4156 [`duplicate_mod`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_mod
4157 [`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
4158 [`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
4159 [`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
4160 [`empty_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_drop
4161 [`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
4162 [`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
4163 [`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
4164 [`empty_structs_with_brackets`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_structs_with_brackets
4165 [`enum_clike_unportable_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant
4166 [`enum_glob_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
4167 [`enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
4168 [`eq_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
4169 [`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
4170 [`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
4171 [`err_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#err_expect
4172 [`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
4173 [`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
4174 [`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
4175 [`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
4176 [`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
4177 [`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
4178 [`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
4179 [`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
4180 [`explicit_auto_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
4181 [`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop
4182 [`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
4183 [`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
4184 [`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
4185 [`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
4186 [`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
4187 [`extend_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_with_drain
4188 [`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
4189 [`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
4190 [`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
4191 [`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
4192 [`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
4193 [`filter_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
4194 [`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
4195 [`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
4196 [`find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#find_map
4197 [`flat_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_identity
4198 [`flat_map_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
4199 [`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
4200 [`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
4201 [`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
4202 [`float_equality_without_abs`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_equality_without_abs
4203 [`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
4204 [`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
4205 [`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
4206 [`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
4207 [`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
4208 [`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
4209 [`for_loop_over_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_option
4210 [`for_loop_over_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_result
4211 [`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
4212 [`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
4213 [`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
4214 [`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
4215 [`format_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
4216 [`format_push_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
4217 [`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
4218 [`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
4219 [`from_raw_with_void_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr
4220 [`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
4221 [`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
4222 [`get_first`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_first
4223 [`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
4224 [`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
4225 [`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
4226 [`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
4227 [`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
4228 [`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
4229 [`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
4230 [`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
4231 [`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
4232 [`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
4233 [`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
4234 [`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
4235 [`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
4236 [`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
4237 [`implicit_saturating_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_add
4238 [`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub
4239 [`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
4240 [`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
4241 [`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
4242 [`index_refutable_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice
4243 [`indexing_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
4244 [`ineffective_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask
4245 [`inefficient_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
4246 [`infallible_destructuring_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#infallible_destructuring_match
4247 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
4248 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
4249 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
4250 [`init_numbered_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
4251 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
4252 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
4253 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
4254 [`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
4255 [`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
4256 [`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
4257 [`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
4258 [`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
4259 [`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
4260 [`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
4261 [`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
4262 [`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
4263 [`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
4264 [`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
4265 [`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
4266 [`invalid_utf8_in_unchecked`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_utf8_in_unchecked
4267 [`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
4268 [`is_digit_ascii_radix`]: https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
4269 [`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
4270 [`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
4271 [`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
4272 [`iter_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
4273 [`iter_next_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
4274 [`iter_next_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
4275 [`iter_not_returning_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
4276 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
4277 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
4278 [`iter_on_empty_collections`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_empty_collections
4279 [`iter_on_single_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_single_items
4280 [`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
4281 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
4282 [`iter_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_with_drain
4283 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
4284 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
4285 [`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
4286 [`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
4287 [`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
4288 [`large_include_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_include_file
4289 [`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
4290 [`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
4291 [`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
4292 [`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
4293 [`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
4294 [`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
4295 [`let_underscore_future`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future
4296 [`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
4297 [`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
4298 [`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
4299 [`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
4300 [`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
4301 [`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
4302 [`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
4303 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
4304 [`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
4305 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
4306 [`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
4307 [`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
4308 [`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
4309 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
4310 [`manual_find`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
4311 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
4312 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
4313 [`manual_instant_elapsed`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
4314 [`manual_is_ascii_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
4315 [`manual_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
4316 [`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
4317 [`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
4318 [`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
4319 [`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
4320 [`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
4321 [`manual_rem_euclid`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
4322 [`manual_retain`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_retain
4323 [`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
4324 [`manual_split_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
4325 [`manual_str_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_str_repeat
4326 [`manual_string_new`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new
4327 [`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
4328 [`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
4329 [`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
4330 [`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
4331 [`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
4332 [`map_collect_result_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_collect_result_unit
4333 [`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
4334 [`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
4335 [`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
4336 [`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
4337 [`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
4338 [`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
4339 [`match_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_bool
4340 [`match_like_matches_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
4341 [`match_on_vec_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
4342 [`match_overlapping_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
4343 [`match_ref_pats`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
4344 [`match_result_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
4345 [`match_same_arms`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
4346 [`match_single_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
4347 [`match_str_case_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_str_case_mismatch
4348 [`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
4349 [`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
4350 [`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
4351 [`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
4352 [`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
4353 [`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
4354 [`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
4355 [`mem_replace_with_uninit`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
4356 [`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
4357 [`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
4358 [`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
4359 [`mismatching_type_param_order`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order
4360 [`misnamed_getters`]: https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters
4361 [`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
4362 [`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
4363 [`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
4364 [`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
4365 [`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
4366 [`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
4367 [`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
4368 [`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
4369 [`missing_spin_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
4370 [`missing_trait_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_trait_methods
4371 [`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
4372 [`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
4373 [`mixed_read_write_in_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_read_write_in_expression
4374 [`mod_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
4375 [`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
4376 [`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
4377 [`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
4378 [`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
4379 [`multi_assignments`]: https://rust-lang.github.io/rust-clippy/master/index.html#multi_assignments
4380 [`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
4381 [`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
4382 [`must_use_candidate`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
4383 [`must_use_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_unit
4384 [`mut_from_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
4385 [`mut_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut
4386 [`mut_mutex_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mutex_lock
4387 [`mut_range_bound`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_range_bound
4388 [`mutable_key_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
4389 [`mutex_atomic`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
4390 [`mutex_integer`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer
4391 [`naive_bytecount`]: https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount
4392 [`needless_arbitrary_self_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
4393 [`needless_bitwise_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool
4394 [`needless_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
4395 [`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
4396 [`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
4397 [`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
4398 [`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
4399 [`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
4400 [`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
4401 [`needless_late_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
4402 [`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
4403 [`needless_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
4404 [`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
4405 [`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
4406 [`needless_parens_on_range_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
4407 [`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
4408 [`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
4409 [`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
4410 [`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
4411 [`needless_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_splitn
4412 [`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
4413 [`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
4414 [`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
4415 [`negative_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#negative_feature_names
4416 [`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
4417 [`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
4418 [`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
4419 [`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
4420 [`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
4421 [`no_effect_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace
4422 [`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
4423 [`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
4424 [`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
4425 [`non_send_fields_in_send_ty`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
4426 [`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
4427 [`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
4428 [`nonstandard_macro_braces`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
4429 [`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
4430 [`obfuscated_if_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
4431 [`octal_escapes`]: https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes
4432 [`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
4433 [`only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
4434 [`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
4435 [`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
4436 [`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
4437 [`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
4438 [`option_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_expect_used
4439 [`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
4440 [`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
4441 [`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
4442 [`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
4443 [`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or
4444 [`option_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
4445 [`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
4446 [`option_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_unwrap_used
4447 [`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
4448 [`or_then_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap
4449 [`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
4450 [`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
4451 [`overly_complex_bool_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#overly_complex_bool_expr
4452 [`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
4453 [`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
4454 [`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
4455 [`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
4456 [`partial_pub_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#partial_pub_fields
4457 [`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
4458 [`partialeq_to_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
4459 [`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
4460 [`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
4461 [`positional_named_format_parameters`]: https://rust-lang.github.io/rust-clippy/master/index.html#positional_named_format_parameters
4462 [`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
4463 [`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
4464 [`print_in_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_in_format_impl
4465 [`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
4466 [`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
4467 [`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
4468 [`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
4469 [`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
4470 [`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
4471 [`ptr_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
4472 [`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
4473 [`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
4474 [`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
4475 [`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
4476 [`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
4477 [`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
4478 [`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
4479 [`range_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_step_by_zero
4480 [`range_zip_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_zip_with_len
4481 [`rc_buffer`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_buffer
4482 [`rc_clone_in_vec_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_clone_in_vec_init
4483 [`rc_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_mutex
4484 [`read_zero_byte_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#read_zero_byte_vec
4485 [`recursive_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl
4486 [`redundant_allocation`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_allocation
4487 [`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
4488 [`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
4489 [`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
4490 [`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
4491 [`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
4492 [`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
4493 [`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
4494 [`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
4495 [`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
4496 [`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
4497 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
4498 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
4499 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
4500 [`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
4501 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
4502 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
4503 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
4504 [`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
4505 [`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
4506 [`result_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_expect_used
4507 [`result_large_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
4508 [`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
4509 [`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
4510 [`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
4511 [`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
4512 [`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
4513 [`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
4514 [`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
4515 [`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
4516 [`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
4517 [`same_name_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
4518 [`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
4519 [`seek_from_current`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current
4520 [`seek_to_start_instead_of_rewind`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind
4521 [`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
4522 [`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
4523 [`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
4524 [`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
4525 [`separated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
4526 [`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
4527 [`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
4528 [`shadow_same`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
4529 [`shadow_unrelated`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
4530 [`short_circuit_statement`]: https://rust-lang.github.io/rust-clippy/master/index.html#short_circuit_statement
4531 [`should_assert_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_assert_eq
4532 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
4533 [`significant_drop_in_scrutinee`]: https://rust-lang.github.io/rust-clippy/master/index.html#significant_drop_in_scrutinee
4534 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
4535 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
4536 [`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
4537 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
4538 [`single_char_push_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
4539 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
4540 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
4541 [`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
4542 [`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
4543 [`size_of_in_element_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count
4544 [`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
4545 [`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
4546 [`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
4547 [`std_instead_of_alloc`]: https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_alloc
4548 [`std_instead_of_core`]: https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core
4549 [`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
4550 [`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
4551 [`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
4552 [`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
4553 [`string_from_utf8_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_from_utf8_as_bytes
4554 [`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
4555 [`string_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_slice
4556 [`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
4557 [`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
4558 [`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
4559 [`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
4560 [`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
4561 [`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
4562 [`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
4563 [`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
4564 [`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
4565 [`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
4566 [`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
4567 [`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
4568 [`suspicious_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned
4569 [`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
4570 [`suspicious_xor_used_as_pow`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_xor_used_as_pow
4571 [`swap_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
4572 [`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
4573 [`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
4574 [`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
4575 [`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
4576 [`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
4577 [`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
4578 [`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
4579 [`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
4580 [`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
4581 [`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
4582 [`trailing_empty_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#trailing_empty_array
4583 [`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
4584 [`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
4585 [`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
4586 [`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
4587 [`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
4588 [`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
4589 [`transmute_num_to_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_num_to_bytes
4590 [`transmute_ptr_to_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
4591 [`transmute_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
4592 [`transmute_undefined_repr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr
4593 [`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
4594 [`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
4595 [`trim_split_whitespace`]: https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace
4596 [`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
4597 [`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
4598 [`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
4599 [`type_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
4600 [`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
4601 [`unchecked_duration_subtraction`]: https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction
4602 [`undocumented_unsafe_blocks`]: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
4603 [`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops
4604 [`unicode_not_nfc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unicode_not_nfc
4605 [`unimplemented`]: https://rust-lang.github.io/rust-clippy/master/index.html#unimplemented
4606 [`uninit_assumed_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
4607 [`uninit_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec
4608 [`uninlined_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
4609 [`unit_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
4610 [`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
4611 [`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
4612 [`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
4613 [`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
4614 [`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
4615 [`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
4616 [`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
4617 [`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
4618 [`unnecessary_join`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
4619 [`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
4620 [`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
4621 [`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
4622 [`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
4623 [`unnecessary_safety_comment`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_comment
4624 [`unnecessary_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_doc
4625 [`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
4626 [`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
4627 [`unnecessary_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
4628 [`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
4629 [`unnecessary_wraps`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
4630 [`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
4631 [`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
4632 [`unnested_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
4633 [`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
4634 [`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
4635 [`unsafe_derive_deserialize`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
4636 [`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
4637 [`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
4638 [`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
4639 [`unsound_collection_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsound_collection_transmute
4640 [`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
4641 [`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
4642 [`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
4643 [`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
4644 [`unused_format_specs`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
4645 [`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
4646 [`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
4647 [`unused_peekable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_peekable
4648 [`unused_rounding`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
4649 [`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
4650 [`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
4651 [`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
4652 [`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
4653 [`unwrap_or_else_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
4654 [`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
4655 [`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
4656 [`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
4657 [`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
4658 [`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
4659 [`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
4660 [`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
4661 [`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
4662 [`useless_format`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
4663 [`useless_let_if_seq`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_let_if_seq
4664 [`useless_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute
4665 [`useless_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
4666 [`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
4667 [`vec_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
4668 [`vec_resize_to_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_resize_to_zero
4669 [`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
4670 [`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
4671 [`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
4672 [`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
4673 [`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
4674 [`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
4675 [`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
4676 [`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
4677 [`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
4678 [`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
4679 [`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
4680 [`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline
4681 [`writeln_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
4682 [`wrong_pub_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_pub_self_convention
4683 [`wrong_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
4684 [`wrong_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_transmute
4685 [`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
4686 [`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
4687 [`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
4688 [`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
4689 [`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
4690 [`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
4691 <!-- end autogenerated links to lint list -->