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