3 All notable changes to this project will be documented in this file.
4 See [Changelog Update](doc/changelog_update.md) if you want to update this
7 ## Unreleased / In Rust Nightly
9 [0eff589...master](https://github.com/rust-lang/rust-clippy/compare/0eff589...master)
13 Current beta, release 2022-02-24
15 [e181011...0eff589](https://github.com/rust-lang/rust-clippy/compare/e181011...0eff589)
19 * [`index_refutable_slice`]
20 [#7643](https://github.com/rust-lang/rust-clippy/pull/7643)
22 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
23 * [`unnecessary_to_owned`]
24 [#7978](https://github.com/rust-lang/rust-clippy/pull/7978)
25 * [`needless_late_init`]
26 [#7995](https://github.com/rust-lang/rust-clippy/pull/7995)
27 * [`octal_escapes`] [#8007](https://github.com/rust-lang/rust-clippy/pull/8007)
28 * [`return_self_not_must_use`]
29 [#8071](https://github.com/rust-lang/rust-clippy/pull/8071)
30 * [`init_numbered_fields`]
31 [#8170](https://github.com/rust-lang/rust-clippy/pull/8170)
33 ### Moves and Deprecations
35 * Move `if_then_panic` to `pedantic` and rename to [`manual_assert`] (now
36 allow-by-default) [#7810](https://github.com/rust-lang/rust-clippy/pull/7810)
37 * Rename `disallow_type` to [`disallowed_types`] and `disallowed_method` to
38 [`disallowed_methods`]
39 [#7984](https://github.com/rust-lang/rust-clippy/pull/7984)
40 * Move [`map_flatten`] to `complexity` (now warn-by-default)
41 [#8054](https://github.com/rust-lang/rust-clippy/pull/8054)
45 * [`match_overlapping_arm`]: Fix false negative where after included ranges,
46 overlapping ranges weren't linted anymore
47 [#7909](https://github.com/rust-lang/rust-clippy/pull/7909)
48 * [`deprecated_cfg_attr`]: Now takes the specified MSRV into account
49 [#7944](https://github.com/rust-lang/rust-clippy/pull/7944)
50 * [`cast_lossless`]: Now also lints for `bool` to integer casts
51 [#7948](https://github.com/rust-lang/rust-clippy/pull/7948)
52 * [`let_underscore_lock`]: Also emit lints for the `parking_lot` crate
53 [#7957](https://github.com/rust-lang/rust-clippy/pull/7957)
55 [#7977](https://github.com/rust-lang/rust-clippy/pull/7977)
56 * Lint when a borrow is auto-dereffed more than once
57 * Lint in the trailing expression of a block for a match arm
58 * [`strlen_on_c_strings`]
59 [8001](https://github.com/rust-lang/rust-clippy/pull/8001)
60 * Lint when used without a fully-qualified path
61 * Suggest removing the surrounding unsafe block when possible
62 * [`non_ascii_literal`]: Now also lints on `char`s, not just `string`s
63 [#8034](https://github.com/rust-lang/rust-clippy/pull/8034)
64 * [`single_char_pattern`]: Now also lints on `split_inclusive`, `split_once`,
65 `rsplit_once`, `replace`, and `replacen`
66 [#8077](https://github.com/rust-lang/rust-clippy/pull/8077)
67 * [`unwrap_or_else_default`]: Now also lints on `std` constructors like
68 `Vec::new`, `HashSet::new`, and `HashMap::new`
69 [#8163](https://github.com/rust-lang/rust-clippy/pull/8163)
70 * [`shadow_reuse`]: Now also lints on shadowed `if let` bindings, instead of
72 [#8165](https://github.com/rust-lang/rust-clippy/pull/8165)
74 ### False Positive Fixes
76 * [`or_fun_call`], [`unnecessary_lazy_evaluations`]: Improve heuristics, so that
77 cheap functions (e.g. calling `.len()` on a `Vec`) won't get linted anymore
78 [#7639](https://github.com/rust-lang/rust-clippy/pull/7639)
79 * [`manual_split_once`]: No longer suggests code changing the original behavior
80 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
81 * Don't show [`no_effect`] or [`unnecessary_operation`] warning for unit struct
83 [#7898](https://github.com/rust-lang/rust-clippy/pull/7898)
84 * [`semicolon_if_nothing_returned`]: Fixed a bug, where the lint wrongly
85 triggered on `let-else` statements
86 [#7955](https://github.com/rust-lang/rust-clippy/pull/7955)
87 * [`if_then_some_else_none`]: No longer lints if there is an early return
88 [#7980](https://github.com/rust-lang/rust-clippy/pull/7980)
89 * [`needless_collect`]: No longer suggests removal of `collect` when removal
90 would create code requiring mutably borrowing a value multiple times
91 [#7982](https://github.com/rust-lang/rust-clippy/pull/7982)
92 * [`shadow_same`]: Fix false positive for `async` function's params
93 [#7997](https://github.com/rust-lang/rust-clippy/pull/7997)
94 * [`suboptimal_flops`]: No longer triggers in constant functions
95 [#8009](https://github.com/rust-lang/rust-clippy/pull/8009)
96 * [`type_complexity`]: No longer lints on associated types in traits
97 [#8030](https://github.com/rust-lang/rust-clippy/pull/8030)
98 * [`question_mark`]: No longer lints if returned object is not local
99 [#8080](https://github.com/rust-lang/rust-clippy/pull/8080)
100 * [`option_if_let_else`]: No longer lint on complex sub-patterns
101 [#8086](https://github.com/rust-lang/rust-clippy/pull/8086)
102 * [`blocks_in_if_conditions`]: No longer lints on empty closures
103 [#8100](https://github.com/rust-lang/rust-clippy/pull/8100)
104 * [`enum_variant_names`]: No longer lint when first prefix is only a substring
106 [#8127](https://github.com/rust-lang/rust-clippy/pull/8127)
107 * [`identity_op`]: Only lint on integral operands
108 [#8183](https://github.com/rust-lang/rust-clippy/pull/8183)
110 ### Suggestion Fixes/Improvements
112 * [`search_is_some`]: Fix suggestion for `any()` not taking item by reference
113 [#7463](https://github.com/rust-lang/rust-clippy/pull/7463)
114 * [`almost_swapped`]: Now detects if there is a `no_std` or `no_core` attribute
115 and adapts the suggestion accordingly
116 [#7877](https://github.com/rust-lang/rust-clippy/pull/7877)
117 * [`redundant_pattern_matching`]: Fix suggestion for deref expressions
118 [#7949](https://github.com/rust-lang/rust-clippy/pull/7949)
119 * [`explicit_counter_loop`]: Now also produces a suggestion for non-`usize`
120 types [#7950](https://github.com/rust-lang/rust-clippy/pull/7950)
121 * [`manual_map`]: Fix suggestion when used with unsafe functions and blocks
122 [#7968](https://github.com/rust-lang/rust-clippy/pull/7968)
123 * [`option_map_or_none`]: Suggest `map` over `and_then` when possible
124 [#7971](https://github.com/rust-lang/rust-clippy/pull/7971)
125 * [`option_if_let_else`]: No longer expands macros in the suggestion
126 [#7974](https://github.com/rust-lang/rust-clippy/pull/7974)
127 * [`iter_cloned_collect`]: Suggest `copied` over `cloned` when possible
128 [#8006](https://github.com/rust-lang/rust-clippy/pull/8006)
129 * [`doc_markdown`]: No longer uses inline hints to improve readability of
130 suggestion [#8011](https://github.com/rust-lang/rust-clippy/pull/8011)
131 * [`needless_question_mark`]: Now better explains the suggestion
132 [#8028](https://github.com/rust-lang/rust-clippy/pull/8028)
133 * [`single_char_pattern`]: Escape backslash `\` in suggestion
134 [#8067](https://github.com/rust-lang/rust-clippy/pull/8067)
135 * [`needless_bool`]: Suggest `a != b` over `!(a == b)`
136 [#8117](https://github.com/rust-lang/rust-clippy/pull/8117)
137 * [`iter_skip_next`]: Suggest to add a `mut` if it is necessary in order to
138 apply this lints suggestion
139 [#8133](https://github.com/rust-lang/rust-clippy/pull/8133)
140 * [`neg_multiply`]: Now produces a suggestion
141 [#8144](https://github.com/rust-lang/rust-clippy/pull/8144)
142 * [`needless_return`]: Now suggests the unit type `()` over an empty block `{}`
143 in match arms [#8185](https://github.com/rust-lang/rust-clippy/pull/8185)
144 * [`suboptimal_flops`]: Now gives a syntactically correct suggestion for
145 `to_radians` and `to_degrees`
146 [#8187](https://github.com/rust-lang/rust-clippy/pull/8187)
150 * [`undocumented_unsafe_blocks`]
151 [#7945](https://github.com/rust-lang/rust-clippy/pull/7945)
152 [#7988](https://github.com/rust-lang/rust-clippy/pull/7988)
153 * [`unnecessary_cast`]
154 [#8167](https://github.com/rust-lang/rust-clippy/pull/8167)
156 ### Documentation Improvements
158 * [`print_stdout`], [`print_stderr`], [`dbg_macro`]: Document how the lint level
159 can be changed crate-wide
160 [#8040](https://github.com/rust-lang/rust-clippy/pull/8040)
161 * Added a note to the `README` that config changes don't apply to already
162 compiled code [#8175](https://github.com/rust-lang/rust-clippy/pull/8175)
167 list](https://rust-lang.github.io/rust-clippy/master/index.html) now displays
168 the version a lint was added. :tada:
169 [#7813](https://github.com/rust-lang/rust-clippy/pull/7813)
170 * New and improved issue templates
171 [#8032](https://github.com/rust-lang/rust-clippy/pull/8032)
172 * _Dev:_ Add `cargo dev lint` command, to run your modified Clippy version on a
173 file [#7917](https://github.com/rust-lang/rust-clippy/pull/7917)
177 Current stable, released 2022-01-13
179 [00e31fa...e181011](https://github.com/rust-lang/rust-clippy/compare/00e31fa...e181011)
183 * Move [`non_send_fields_in_send_ty`] to `nursery` (now allow-by-default)
184 [#8075](https://github.com/rust-lang/rust-clippy/pull/8075)
185 * [`useless_format`]: Handle implicit named arguments
186 [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
190 * [`transmute_num_to_bytes`]
191 [#7805](https://github.com/rust-lang/rust-clippy/pull/7805)
192 * [`match_str_case_mismatch`]
193 [#7806](https://github.com/rust-lang/rust-clippy/pull/7806)
194 * [`format_in_format_args`], [`to_string_in_format_args`]
195 [#7743](https://github.com/rust-lang/rust-clippy/pull/7743)
197 [#7682](https://github.com/rust-lang/rust-clippy/pull/7682)
198 * [`fn_to_numeric_cast_any`]
199 [#7705](https://github.com/rust-lang/rust-clippy/pull/7705)
200 * [`undocumented_unsafe_blocks`]
201 [#7748](https://github.com/rust-lang/rust-clippy/pull/7748)
202 * [`trailing_empty_array`]
203 [#7838](https://github.com/rust-lang/rust-clippy/pull/7838)
205 [#7878](https://github.com/rust-lang/rust-clippy/pull/7878)
207 ### Moves or deprecations of lints
209 * Move [`non_send_fields_in_send_ty`] to `suspicious`
210 [#7874](https://github.com/rust-lang/rust-clippy/pull/7874)
211 * Move [`non_ascii_literal`] to `restriction`
212 [#7907](https://github.com/rust-lang/rust-clippy/pull/7907)
214 ### Changes that expand what code existing lints cover
216 * [`question_mark`] now covers `Result`
217 [#7840](https://github.com/rust-lang/rust-clippy/pull/7840)
218 * Make [`useless_format`] recognize bare `format!("")`
219 [#7801](https://github.com/rust-lang/rust-clippy/pull/7801)
220 * Lint on underscored variables with no side effects in [`no_effect`]
221 [#7775](https://github.com/rust-lang/rust-clippy/pull/7775)
222 * Expand [`match_ref_pats`] to check for multiple reference patterns
223 [#7800](https://github.com/rust-lang/rust-clippy/pull/7800)
225 ### False positive fixes
227 * Fix false positive of [`implicit_saturating_sub`] with `else` clause
228 [#7832](https://github.com/rust-lang/rust-clippy/pull/7832)
229 * Fix [`question_mark`] when there is call in conditional predicate
230 [#7860](https://github.com/rust-lang/rust-clippy/pull/7860)
231 * [`mut_mut`] no longer lints when type is defined in external macros
232 [#7795](https://github.com/rust-lang/rust-clippy/pull/7795)
233 * Avoid [`eq_op`] in test functions
234 [#7811](https://github.com/rust-lang/rust-clippy/pull/7811)
235 * [`cast_possible_truncation`] no longer lints when cast is coming from `signum`
236 method call [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
237 * [`match_str_case_mismatch`] no longer lints on uncased characters
238 [#7865](https://github.com/rust-lang/rust-clippy/pull/7865)
239 * [`ptr_arg`] no longer lints references to type aliases
240 [#7890](https://github.com/rust-lang/rust-clippy/pull/7890)
241 * [`missing_safety_doc`] now also accepts "implementation safety" headers
242 [#7856](https://github.com/rust-lang/rust-clippy/pull/7856)
243 * [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]`
244 attribute [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
245 * [`if_not_else`] now ignores else-if statements
246 [#7895](https://github.com/rust-lang/rust-clippy/pull/7895)
247 * Avoid linting [`cast_possible_truncation`] on bit-reducing operations
248 [#7819](https://github.com/rust-lang/rust-clippy/pull/7819)
249 * Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are
250 involved [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
251 * [`unnecessary_sort_by`] now checks if argument implements `Ord` trait
252 [#7824](https://github.com/rust-lang/rust-clippy/pull/7824)
253 * Fix false positive in [`match_overlapping_arm`]
254 [#7847](https://github.com/rust-lang/rust-clippy/pull/7847)
255 * Prevent [`needless_lifetimes`] false positive in `async` function definition
256 [#7901](https://github.com/rust-lang/rust-clippy/pull/7901)
258 ### Suggestion fixes/improvements
260 * Keep an initial `::` when [`doc_markdown`] suggests to use ticks
261 [#7916](https://github.com/rust-lang/rust-clippy/pull/7916)
262 * Add a machine applicable suggestion for the [`doc_markdown`] missing backticks
263 lint [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
264 * [`equatable_if_let`] no longer expands macros in the suggestion
265 [#7788](https://github.com/rust-lang/rust-clippy/pull/7788)
266 * Make [`shadow_reuse`] suggestion less verbose
267 [#7782](https://github.com/rust-lang/rust-clippy/pull/7782)
271 * Fix ICE in [`enum_variant_names`]
272 [#7873](https://github.com/rust-lang/rust-clippy/pull/7873)
273 * Fix ICE in [`undocumented_unsafe_blocks`]
274 [#7891](https://github.com/rust-lang/rust-clippy/pull/7891)
276 ### Documentation improvements
278 * Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`],
279 [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
280 [#7827](https://github.com/rust-lang/rust-clippy/pull/7827)
281 * Fix typo in example for [`match_result_ok`]
282 [#7815](https://github.com/rust-lang/rust-clippy/pull/7815)
286 * Allow giving reasons for [`disallowed_types`]
287 [#7791](https://github.com/rust-lang/rust-clippy/pull/7791)
288 * Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust
289 2021. [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
290 * Fix regression in [`semicolon_if_nothing_returned`] on macros containing while
291 loops [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
292 * Added a new configuration `literal-suffix-style` to enforce a certain style
293 writing [`unseparated_literal_suffix`]
294 [#7726](https://github.com/rust-lang/rust-clippy/pull/7726)
300 [7bfc26e...00e31fa](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...00e31fa)
304 * [`negative_feature_names`]
305 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
306 * [`redundant_feature_names`]
307 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
308 * [`mod_module_files`]
309 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
310 * [`self_named_module_files`]
311 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
312 * [`manual_split_once`]
313 [#7565](https://github.com/rust-lang/rust-clippy/pull/7565)
314 * [`derivable_impls`]
315 [#7570](https://github.com/rust-lang/rust-clippy/pull/7570)
316 * [`needless_option_as_deref`]
317 [#7596](https://github.com/rust-lang/rust-clippy/pull/7596)
318 * [`iter_not_returning_iterator`]
319 [#7610](https://github.com/rust-lang/rust-clippy/pull/7610)
320 * [`same_name_method`]
321 [#7653](https://github.com/rust-lang/rust-clippy/pull/7653)
322 * [`manual_assert`] [#7669](https://github.com/rust-lang/rust-clippy/pull/7669)
323 * [`non_send_fields_in_send_ty`]
324 [#7709](https://github.com/rust-lang/rust-clippy/pull/7709)
325 * [`equatable_if_let`]
326 [#7762](https://github.com/rust-lang/rust-clippy/pull/7762)
328 ### Moves and Deprecations
330 * Move [`shadow_unrelated`] to `restriction`
331 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
332 * Move [`option_if_let_else`] to `nursery`
333 [#7568](https://github.com/rust-lang/rust-clippy/pull/7568)
334 * Move [`branches_sharing_code`] to `nursery`
335 [#7595](https://github.com/rust-lang/rust-clippy/pull/7595)
336 * Rename `if_let_some_result` to [`match_result_ok`] which now also handles
337 `while let` cases [#7608](https://github.com/rust-lang/rust-clippy/pull/7608)
338 * Move [`many_single_char_names`] to `pedantic`
339 [#7671](https://github.com/rust-lang/rust-clippy/pull/7671)
340 * Move [`float_cmp`] to `pedantic`
341 [#7692](https://github.com/rust-lang/rust-clippy/pull/7692)
342 * Rename `box_vec` to [`box_collection`] and lint on more general cases
343 [#7693](https://github.com/rust-lang/rust-clippy/pull/7693)
344 * Uplift `invalid_atomic_ordering` to rustc
345 [rust-lang/rust#84039](https://github.com/rust-lang/rust/pull/84039)
349 * Rewrite the `shadow*` lints, so that they find a lot more shadows and are not
350 limited to certain patterns
351 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
352 * The `avoid-breaking-exported-api` configuration now also works for
353 [`box_collection`], [`redundant_allocation`], [`rc_buffer`], [`vec_box`],
354 [`option_option`], [`linkedlist`], [`rc_mutex`]
355 [#7560](https://github.com/rust-lang/rust-clippy/pull/7560)
356 * [`unnecessary_unwrap`]: Now also checks for `expect`s
357 [#7584](https://github.com/rust-lang/rust-clippy/pull/7584)
358 * [`disallowed_methods`]: Allow adding a reason that will be displayed with the
360 [#7621](https://github.com/rust-lang/rust-clippy/pull/7621)
361 * [`approx_constant`]: Now checks the MSRV for `LOG10_2` and `LOG2_10`
362 [#7629](https://github.com/rust-lang/rust-clippy/pull/7629)
363 * [`approx_constant`]: Add `TAU`
364 [#7642](https://github.com/rust-lang/rust-clippy/pull/7642)
365 * [`needless_borrow`]: Now also lints on needless mutable borrows
366 [#7657](https://github.com/rust-lang/rust-clippy/pull/7657)
367 * [`missing_safety_doc`]: Now also lints on unsafe traits
368 [#7734](https://github.com/rust-lang/rust-clippy/pull/7734)
370 ### False Positive Fixes
372 * [`manual_map`]: No longer lints when the option is borrowed in the match and
373 also consumed in the arm
374 [#7531](https://github.com/rust-lang/rust-clippy/pull/7531)
375 * [`filter_next`]: No longer lints if `filter` method is not the
376 `Iterator::filter` method
377 [#7562](https://github.com/rust-lang/rust-clippy/pull/7562)
378 * [`manual_flatten`]: No longer lints if expression is used after `if let`
379 [#7566](https://github.com/rust-lang/rust-clippy/pull/7566)
380 * [`option_if_let_else`]: Multiple fixes
381 [#7573](https://github.com/rust-lang/rust-clippy/pull/7573)
382 * `break` and `continue` statements local to the would-be closure are
384 * Don't lint in const contexts
385 * Don't lint when yield expressions are used
386 * Don't lint when the captures made by the would-be closure conflict with
388 * Don't lint when a field of a local is used when the type could be
389 potentially moved from
390 * In some cases, don't lint when scrutinee expression conflicts with the
391 captures of the would-be closure
392 * [`redundant_allocation`]: No longer lints on `Box<Box<dyn T>>` which replaces
393 wide pointers with thin pointers
394 [#7592](https://github.com/rust-lang/rust-clippy/pull/7592)
395 * [`bool_assert_comparison`]: No longer lints on types that do not implement the
396 `Not` trait with `Output = bool`
397 [#7605](https://github.com/rust-lang/rust-clippy/pull/7605)
398 * [`mut_range_bound`]: No longer lints on range bound mutations, that are
399 immediately followed by a `break;`
400 [#7607](https://github.com/rust-lang/rust-clippy/pull/7607)
401 * [`mutable_key_type`]: Improve accuracy and document remaining false positives
403 [#7640](https://github.com/rust-lang/rust-clippy/pull/7640)
404 * [`redundant_closure`]: Rewrite the lint to fix various false positives and
405 false negatives [#7661](https://github.com/rust-lang/rust-clippy/pull/7661)
406 * [`large_enum_variant`]: No longer wrongly identifies the second largest
407 variant [#7677](https://github.com/rust-lang/rust-clippy/pull/7677)
408 * [`needless_return`]: No longer lints on let-else expressions
409 [#7685](https://github.com/rust-lang/rust-clippy/pull/7685)
410 * [`suspicious_else_formatting`]: No longer lints in proc-macros
411 [#7707](https://github.com/rust-lang/rust-clippy/pull/7707)
412 * [`excessive_precision`]: No longer lints when in some cases the float was
413 already written in the shortest form
414 [#7722](https://github.com/rust-lang/rust-clippy/pull/7722)
415 * [`doc_markdown`]: No longer lints on intra-doc links
416 [#7772](https://github.com/rust-lang/rust-clippy/pull/7772)
418 ### Suggestion Fixes/Improvements
420 * [`unnecessary_operation`]: Recommend using an `assert!` instead of using a
421 function call in an indexing operation
422 [#7453](https://github.com/rust-lang/rust-clippy/pull/7453)
423 * [`manual_split_once`]: Produce semantically equivalent suggestion when
424 `rsplitn` is used [#7663](https://github.com/rust-lang/rust-clippy/pull/7663)
425 * [`while_let_on_iterator`]: Produce correct suggestion when using `&mut`
426 [#7690](https://github.com/rust-lang/rust-clippy/pull/7690)
427 * [`manual_assert`]: No better handles complex conditions
428 [#7741](https://github.com/rust-lang/rust-clippy/pull/7741)
429 * Correctly handle signs in exponents in numeric literals lints
430 [#7747](https://github.com/rust-lang/rust-clippy/pull/7747)
431 * [`suspicious_map`]: Now also suggests to use `inspect` as an alternative
432 [#7770](https://github.com/rust-lang/rust-clippy/pull/7770)
433 * Drop exponent from suggestion if it is 0 in numeric literals lints
434 [#7774](https://github.com/rust-lang/rust-clippy/pull/7774)
438 * [`implicit_hasher`]
439 [#7761](https://github.com/rust-lang/rust-clippy/pull/7761)
443 * Clippy now uses the 2021
444 [Edition!](https://www.youtube.com/watch?v=q0aNduqb2Ro)
445 [#7664](https://github.com/rust-lang/rust-clippy/pull/7664)
451 [74d1561...7bfc26e](https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e)
455 * [`unwrap_or_else_default`]
456 [#7516](https://github.com/rust-lang/rust-clippy/pull/7516)
460 * [`needless_continue`]: Now also lints in `loop { continue; }` case
461 [#7477](https://github.com/rust-lang/rust-clippy/pull/7477)
462 * [`disallowed_types`]: Now also primitive types can be disallowed
463 [#7488](https://github.com/rust-lang/rust-clippy/pull/7488)
464 * [`manual_swap`]: Now also lints on xor swaps
465 [#7506](https://github.com/rust-lang/rust-clippy/pull/7506)
466 * [`map_flatten`]: Now also lints on the `Result` type
467 [#7522](https://github.com/rust-lang/rust-clippy/pull/7522)
468 * [`no_effect`]: Now also lints on inclusive ranges
469 [#7556](https://github.com/rust-lang/rust-clippy/pull/7556)
471 ### False Positive Fixes
473 * [`nonstandard_macro_braces`]: No longer lints on similar named nested macros
474 [#7478](https://github.com/rust-lang/rust-clippy/pull/7478)
475 * [`too_many_lines`]: No longer lints in closures to avoid duplicated diagnostics
476 [#7534](https://github.com/rust-lang/rust-clippy/pull/7534)
477 * [`similar_names`]: No longer complains about `iter` and `item` being too
478 similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546)
480 ### Suggestion Fixes/Improvements
482 * [`similar_names`]: No longer suggests to insert or add an underscore as a fix
483 [#7221](https://github.com/rust-lang/rust-clippy/pull/7221)
484 * [`new_without_default`]: No longer shows the full qualified type path when
485 suggesting adding a `Default` implementation
486 [#7493](https://github.com/rust-lang/rust-clippy/pull/7493)
487 * [`while_let_on_iterator`]: Now suggests re-borrowing mutable references
488 [#7520](https://github.com/rust-lang/rust-clippy/pull/7520)
489 * [`extend_with_drain`]: Improve code suggestion for mutable and immutable
490 references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533)
491 * [`trivially_copy_pass_by_ref`]: Now properly handles `Self` type
492 [#7535](https://github.com/rust-lang/rust-clippy/pull/7535)
493 * [`never_loop`]: Now suggests using `if let` instead of a `for` loop when
494 applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541)
496 ### Documentation Improvements
498 * Clippy now uses a lint to generate its lint documentation. [Lints all the way
499 down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down).
500 [#7502](https://github.com/rust-lang/rust-clippy/pull/7502)
501 * Reworked Clippy's website:
502 [#7172](https://github.com/rust-lang/rust-clippy/issues/7172)
503 [#7279](https://github.com/rust-lang/rust-clippy/pull/7279)
504 * Added applicability information about lints
505 * Added a link to jump into the implementation
506 * Improved loading times
507 * Adapted some styling
508 * `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag
509 [#7492](https://github.com/rust-lang/rust-clippy/pull/7492)
510 * [`unnested_or_patterns`]: Removed `or_patterns` feature gate in the code
511 example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507)
517 [3ae8faf...74d1561](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561)
519 ### Important Changes
521 * Stabilized `cargo clippy --fix` :tada:
522 [#7405](https://github.com/rust-lang/rust-clippy/pull/7405)
527 [#7316](https://github.com/rust-lang/rust-clippy/pull/7316)
528 * [`nonstandard_macro_braces`]
529 [#7299](https://github.com/rust-lang/rust-clippy/pull/7299)
530 * [`strlen_on_c_strings`]
531 [#7243](https://github.com/rust-lang/rust-clippy/pull/7243)
532 * [`self_named_constructors`]
533 [#7403](https://github.com/rust-lang/rust-clippy/pull/7403)
534 * [`disallowed_script_idents`]
535 [#7400](https://github.com/rust-lang/rust-clippy/pull/7400)
536 * [`disallowed_types`]
537 [#7315](https://github.com/rust-lang/rust-clippy/pull/7315)
538 * [`missing_enforced_import_renames`]
539 [#7300](https://github.com/rust-lang/rust-clippy/pull/7300)
540 * [`extend_with_drain`]
541 [#7270](https://github.com/rust-lang/rust-clippy/pull/7270)
543 ### Moves and Deprecations
545 * Moved [`from_iter_instead_of_collect`] to `pedantic`
546 [#7375](https://github.com/rust-lang/rust-clippy/pull/7375)
547 * Added `suspicious` as a new lint group for *code that is most likely wrong or useless*
548 [#7350](https://github.com/rust-lang/rust-clippy/pull/7350)
549 * Moved [`blanket_clippy_restriction_lints`] to `suspicious`
550 * Moved [`empty_loop`] to `suspicious`
551 * Moved [`eval_order_dependence`] to `suspicious`
552 * Moved [`float_equality_without_abs`] to `suspicious`
553 * Moved [`for_loops_over_fallibles`] to `suspicious`
554 * Moved [`misrefactored_assign_op`] to `suspicious`
555 * Moved [`mut_range_bound`] to `suspicious`
556 * Moved [`mutable_key_type`] to `suspicious`
557 * Moved [`suspicious_arithmetic_impl`] to `suspicious`
558 * Moved [`suspicious_assignment_formatting`] to `suspicious`
559 * Moved [`suspicious_else_formatting`] to `suspicious`
560 * Moved [`suspicious_map`] to `suspicious`
561 * Moved [`suspicious_op_assign_impl`] to `suspicious`
562 * Moved [`suspicious_unary_op_formatting`] to `suspicious`
566 * [`while_let_on_iterator`]: Now suggests `&mut iter` inside closures
567 [#7262](https://github.com/rust-lang/rust-clippy/pull/7262)
569 * Now detects unbalanced ticks
570 [#7357](https://github.com/rust-lang/rust-clippy/pull/7357)
571 * Add `FreeBSD` to the default configuration as an allowed identifier
572 [#7334](https://github.com/rust-lang/rust-clippy/pull/7334)
573 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]: Now allows wildcards for enums with unstable
575 [#7407](https://github.com/rust-lang/rust-clippy/pull/7407)
576 * [`redundant_allocation`]: Now additionally supports the `Arc<>` type
577 [#7308](https://github.com/rust-lang/rust-clippy/pull/7308)
578 * [`blacklisted_name`]: Now allows blacklisted names in test code
579 [#7379](https://github.com/rust-lang/rust-clippy/pull/7379)
580 * [`redundant_closure`]: Suggests `&mut` for `FnMut`
581 [#7437](https://github.com/rust-lang/rust-clippy/pull/7437)
582 * [`disallowed_methods`], [`disallowed_types`]: The configuration values `disallowed-method` and `disallowed-type`
583 no longer require fully qualified paths
584 [#7345](https://github.com/rust-lang/rust-clippy/pull/7345)
585 * [`zst_offset`]: Fixed lint invocation after it was accidentally suppressed
586 [#7396](https://github.com/rust-lang/rust-clippy/pull/7396)
588 ### False Positive Fixes
590 * [`default_numeric_fallback`]: No longer lints on float literals as function arguments
591 [#7446](https://github.com/rust-lang/rust-clippy/pull/7446)
592 * [`use_self`]: No longer lints on type parameters
593 [#7288](https://github.com/rust-lang/rust-clippy/pull/7288)
594 * [`unimplemented`]: Now ignores the `assert` and `debug_assert` macros
595 [#7439](https://github.com/rust-lang/rust-clippy/pull/7439)
596 * [`branches_sharing_code`]: Now always checks for block expressions
597 [#7462](https://github.com/rust-lang/rust-clippy/pull/7462)
598 * [`field_reassign_with_default`]: No longer triggers in macros
599 [#7160](https://github.com/rust-lang/rust-clippy/pull/7160)
600 * [`redundant_clone`]: No longer lints on required clones for borrowed data
601 [#7346](https://github.com/rust-lang/rust-clippy/pull/7346)
602 * [`default_numeric_fallback`]: No longer triggers in external macros
603 [#7325](https://github.com/rust-lang/rust-clippy/pull/7325)
604 * [`needless_bool`]: No longer lints in macros
605 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
606 * [`useless_format`]: No longer triggers when additional text is being appended
607 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
608 * [`assertions_on_constants`]: `cfg!(...)` is no longer considered to be a constant
609 [#7319](https://github.com/rust-lang/rust-clippy/pull/7319)
611 ### Suggestion Fixes/Improvements
613 * [`needless_collect`]: Now show correct lint messages for shadowed values
614 [#7289](https://github.com/rust-lang/rust-clippy/pull/7289)
615 * [`wrong_pub_self_convention`]: The deprecated message now suggest the correct configuration value
616 [#7382](https://github.com/rust-lang/rust-clippy/pull/7382)
617 * [`semicolon_if_nothing_returned`]: Allow missing semicolon in blocks with only one expression
618 [#7326](https://github.com/rust-lang/rust-clippy/pull/7326)
622 * [`zero_sized_map_values`]
623 [#7470](https://github.com/rust-lang/rust-clippy/pull/7470)
624 * [`redundant_pattern_matching`]
625 [#7471](https://github.com/rust-lang/rust-clippy/pull/7471)
627 [#7473](https://github.com/rust-lang/rust-clippy/pull/7473)
629 [#7428](https://github.com/rust-lang/rust-clippy/pull/7428)
635 [7c7683c...3ae8faf](https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf)
639 - [`ref_binding_to_reference`]
640 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
641 - [`needless_bitwise_bool`]
642 [#7133](https://github.com/rust-lang/rust-clippy/pull/7133)
643 - [`unused_async`] [#7225](https://github.com/rust-lang/rust-clippy/pull/7225)
644 - [`manual_str_repeat`]
645 [#7265](https://github.com/rust-lang/rust-clippy/pull/7265)
646 - [`suspicious_splitn`]
647 [#7292](https://github.com/rust-lang/rust-clippy/pull/7292)
649 ### Moves and Deprecations
651 - Deprecate `pub_enum_variant_names` and `wrong_pub_self_convention` in favor of
652 the new `avoid-breaking-exported-api` config option (see
653 [Enhancements](#1-54-enhancements))
654 [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
655 - Move [`inconsistent_struct_constructor`] to `pedantic`
656 [#7193](https://github.com/rust-lang/rust-clippy/pull/7193)
657 - Move [`needless_borrow`] to `style` (now warn-by-default)
658 [#7254](https://github.com/rust-lang/rust-clippy/pull/7254)
659 - Move [`suspicious_operation_groupings`] to `nursery`
660 [#7266](https://github.com/rust-lang/rust-clippy/pull/7266)
661 - Move [`semicolon_if_nothing_returned`] to `pedantic`
662 [#7268](https://github.com/rust-lang/rust-clippy/pull/7268)
664 ### Enhancements <a name="1-54-enhancements"></a>
666 - [`while_let_on_iterator`]: Now also lints in nested loops
667 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
668 - [`single_char_pattern`]: Now also lints on `strip_prefix` and `strip_suffix`
669 [#7156](https://github.com/rust-lang/rust-clippy/pull/7156)
670 - [`needless_collect`]: Now also lints on assignments with type annotations
671 [#7163](https://github.com/rust-lang/rust-clippy/pull/7163)
672 - [`if_then_some_else_none`]: Now works with the MSRV config
673 [#7177](https://github.com/rust-lang/rust-clippy/pull/7177)
674 - Add `avoid-breaking-exported-api` config option for the lints
675 [`enum_variant_names`], [`large_types_passed_by_value`],
676 [`trivially_copy_pass_by_ref`], [`unnecessary_wraps`],
677 [`upper_case_acronyms`], and [`wrong_self_convention`]. We recommend to set
678 this configuration option to `false` before a major release (1.0/2.0/...) to
679 clean up the API [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
680 - [`needless_collect`]: Now lints on even more data structures
681 [#7188](https://github.com/rust-lang/rust-clippy/pull/7188)
682 - [`missing_docs_in_private_items`]: No longer sees `#[<name> = "<value>"]` like
683 attributes as sufficient documentation
684 [#7281](https://github.com/rust-lang/rust-clippy/pull/7281)
685 - [`needless_collect`], [`short_circuit_statement`], [`unnecessary_operation`]:
686 Now work as expected when used with `allow`
687 [#7282](https://github.com/rust-lang/rust-clippy/pull/7282)
689 ### False Positive Fixes
691 - [`implicit_return`]: Now takes all diverging functions in account to avoid
692 false positives [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
693 - [`while_let_on_iterator`]: No longer lints when the iterator is a struct field
694 and the struct is used in the loop
695 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
696 - [`multiple_inherent_impl`]: No longer lints with generic arguments
697 [#7089](https://github.com/rust-lang/rust-clippy/pull/7089)
698 - [`comparison_chain`]: No longer lints in a `const` context
699 [#7118](https://github.com/rust-lang/rust-clippy/pull/7118)
700 - [`while_immutable_condition`]: Fix false positive where mutation in the loop
701 variable wasn't picked up
702 [#7144](https://github.com/rust-lang/rust-clippy/pull/7144)
703 - [`default_trait_access`]: No longer lints in macros
704 [#7150](https://github.com/rust-lang/rust-clippy/pull/7150)
705 - [`needless_question_mark`]: No longer lints when the inner value is implicitly
706 dereferenced [#7165](https://github.com/rust-lang/rust-clippy/pull/7165)
707 - [`unused_unit`]: No longer lints when multiple macro contexts are involved
708 [#7167](https://github.com/rust-lang/rust-clippy/pull/7167)
709 - [`eval_order_dependence`]: Fix false positive in async context
710 [#7174](https://github.com/rust-lang/rust-clippy/pull/7174)
711 - [`unnecessary_filter_map`]: No longer lints if the `filter_map` changes the
712 type [#7175](https://github.com/rust-lang/rust-clippy/pull/7175)
713 - [`wrong_self_convention`]: No longer lints in trait implementations of
714 non-`Copy` types [#7182](https://github.com/rust-lang/rust-clippy/pull/7182)
715 - [`suboptimal_flops`]: No longer lints on `powi(2)`
716 [#7201](https://github.com/rust-lang/rust-clippy/pull/7201)
717 - [`wrong_self_convention`]: No longer lints if there is no implicit `self`
718 [#7215](https://github.com/rust-lang/rust-clippy/pull/7215)
719 - [`option_if_let_else`]: No longer lints on `else if let` pattern
720 [#7216](https://github.com/rust-lang/rust-clippy/pull/7216)
721 - [`use_self`], [`useless_conversion`]: Fix false positives when generic
722 arguments are involved
723 [#7223](https://github.com/rust-lang/rust-clippy/pull/7223)
724 - [`manual_unwrap_or`]: Fix false positive with deref coercion
725 [#7233](https://github.com/rust-lang/rust-clippy/pull/7233)
726 - [`similar_names`]: No longer lints on `wparam`/`lparam`
727 [#7255](https://github.com/rust-lang/rust-clippy/pull/7255)
728 - [`redundant_closure`]: No longer lints on using the `vec![]` macro in a
729 closure [#7263](https://github.com/rust-lang/rust-clippy/pull/7263)
731 ### Suggestion Fixes/Improvements
733 - [`implicit_return`]
734 [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
735 - Fix suggestion for async functions
736 - Improve suggestion with macros
737 - Suggest to change `break` to `return` when appropriate
738 - [`while_let_on_iterator`]: Now suggests `&mut iter` when necessary
739 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
740 - [`match_single_binding`]: Improve suggestion when match scrutinee has side
741 effects [#7095](https://github.com/rust-lang/rust-clippy/pull/7095)
742 - [`needless_borrow`]: Now suggests to also change usage sites as needed
743 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
744 - [`write_with_newline`]: Improve suggestion when only `\n` is written to the
745 buffer [#7183](https://github.com/rust-lang/rust-clippy/pull/7183)
746 - [`from_iter_instead_of_collect`]: The suggestion is now auto applicable also
747 when a `<_ as Trait>::_` is involved
748 [#7264](https://github.com/rust-lang/rust-clippy/pull/7264)
749 - [`not_unsafe_ptr_arg_deref`]: Improved error message
750 [#7294](https://github.com/rust-lang/rust-clippy/pull/7294)
754 - Fix ICE when running Clippy on `libstd`
755 [#7140](https://github.com/rust-lang/rust-clippy/pull/7140)
756 - [`implicit_return`]
757 [#7242](https://github.com/rust-lang/rust-clippy/pull/7242)
763 [6ed6f1e...7c7683c](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...7c7683c)
767 * [`option_filter_map`]
768 [#6342](https://github.com/rust-lang/rust-clippy/pull/6342)
769 * [`branches_sharing_code`]
770 [#6463](https://github.com/rust-lang/rust-clippy/pull/6463)
771 * [`needless_for_each`]
772 [#6706](https://github.com/rust-lang/rust-clippy/pull/6706)
773 * [`if_then_some_else_none`]
774 [#6859](https://github.com/rust-lang/rust-clippy/pull/6859)
775 * [`non_octal_unix_permissions`]
776 [#7001](https://github.com/rust-lang/rust-clippy/pull/7001)
777 * [`unnecessary_self_imports`]
778 [#7072](https://github.com/rust-lang/rust-clippy/pull/7072)
779 * [`bool_assert_comparison`]
780 [#7083](https://github.com/rust-lang/rust-clippy/pull/7083)
781 * [`cloned_instead_of_copied`]
782 [#7098](https://github.com/rust-lang/rust-clippy/pull/7098)
783 * [`flat_map_option`]
784 [#7101](https://github.com/rust-lang/rust-clippy/pull/7101)
786 ### Moves and Deprecations
788 * Deprecate [`filter_map`] lint
789 [#7059](https://github.com/rust-lang/rust-clippy/pull/7059)
790 * Move [`transmute_ptr_to_ptr`] to `pedantic`
791 [#7102](https://github.com/rust-lang/rust-clippy/pull/7102)
795 * [`mem_replace_with_default`]: Also lint on common std constructors
796 [#6820](https://github.com/rust-lang/rust-clippy/pull/6820)
797 * [`wrong_self_convention`]: Also lint on `to_*_mut` methods
798 [#6828](https://github.com/rust-lang/rust-clippy/pull/6828)
799 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]:
800 [#6863](https://github.com/rust-lang/rust-clippy/pull/6863)
801 * Attempt to find a common path prefix in suggestion
802 * Don't lint on `Option` and `Result`
803 * Consider `Self` prefix
804 * [`explicit_deref_methods`]: Also lint on chained `deref` calls
805 [#6865](https://github.com/rust-lang/rust-clippy/pull/6865)
806 * [`or_fun_call`]: Also lint on `unsafe` blocks
807 [#6928](https://github.com/rust-lang/rust-clippy/pull/6928)
808 * [`vec_box`], [`linkedlist`], [`option_option`]: Also lint in `const` and
809 `static` items [#6938](https://github.com/rust-lang/rust-clippy/pull/6938)
810 * [`search_is_some`]: Also check for `is_none`
811 [#6942](https://github.com/rust-lang/rust-clippy/pull/6942)
812 * [`string_lit_as_bytes`]: Also lint on `into_bytes`
813 [#6959](https://github.com/rust-lang/rust-clippy/pull/6959)
814 * [`len_without_is_empty`]: Also lint if function signatures of `len` and
815 `is_empty` don't match
816 [#6980](https://github.com/rust-lang/rust-clippy/pull/6980)
817 * [`redundant_pattern_matching`]: Also lint if the pattern is a `&` pattern
818 [#6991](https://github.com/rust-lang/rust-clippy/pull/6991)
819 * [`clone_on_copy`]: Also lint on chained method calls taking `self` by value
820 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
821 * [`missing_panics_doc`]: Also lint on `assert_eq!` and `assert_ne!`
822 [#7029](https://github.com/rust-lang/rust-clippy/pull/7029)
823 * [`needless_return`]: Also lint in `async` functions
824 [#7067](https://github.com/rust-lang/rust-clippy/pull/7067)
825 * [`unused_io_amount`]: Also lint on expressions like `_.read().ok()?`
826 [#7100](https://github.com/rust-lang/rust-clippy/pull/7100)
827 * [`iter_cloned_collect`]: Also lint on large arrays, since const-generics are
828 now stable [#7138](https://github.com/rust-lang/rust-clippy/pull/7138)
830 ### False Positive Fixes
832 * [`upper_case_acronyms`]: No longer lints on public items
833 [#6805](https://github.com/rust-lang/rust-clippy/pull/6805)
834 * [`suspicious_map`]: No longer lints when side effects may occur inside the
835 `map` call [#6831](https://github.com/rust-lang/rust-clippy/pull/6831)
836 * [`manual_map`], [`manual_unwrap_or`]: No longer lints in `const` functions
837 [#6917](https://github.com/rust-lang/rust-clippy/pull/6917)
838 * [`wrong_self_convention`]: Now respects `Copy` types
839 [#6924](https://github.com/rust-lang/rust-clippy/pull/6924)
840 * [`needless_question_mark`]: No longer lints if the `?` and the `Some(..)` come
841 from different macro contexts [#6935](https://github.com/rust-lang/rust-clippy/pull/6935)
842 * [`map_entry`]: Better detect if the entry API can be used
843 [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
844 * [`or_fun_call`]: No longer lints on some `len` function calls
845 [#6950](https://github.com/rust-lang/rust-clippy/pull/6950)
846 * [`new_ret_no_self`]: No longer lints when `Self` is returned with different
847 generic arguments [#6952](https://github.com/rust-lang/rust-clippy/pull/6952)
848 * [`upper_case_acronyms`]: No longer lints on public items
849 [#6981](https://github.com/rust-lang/rust-clippy/pull/6981)
850 * [`explicit_into_iter_loop`]: Only lint when `into_iter` is an implementation
851 of `IntoIterator` [#6982](https://github.com/rust-lang/rust-clippy/pull/6982)
852 * [`expl_impl_clone_on_copy`]: Take generic constraints into account before
853 suggesting to use `derive` instead
854 [#6993](https://github.com/rust-lang/rust-clippy/pull/6993)
855 * [`missing_panics_doc`]: No longer lints when only debug-assertions are used
856 [#6996](https://github.com/rust-lang/rust-clippy/pull/6996)
857 * [`clone_on_copy`]: Only lint when using the `Clone` trait
858 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
859 * [`wrong_self_convention`]: No longer lints inside a trait implementation
860 [#7002](https://github.com/rust-lang/rust-clippy/pull/7002)
861 * [`redundant_clone`]: No longer lints when the cloned value is modified while
863 [#7011](https://github.com/rust-lang/rust-clippy/pull/7011)
864 * [`same_item_push`]: No longer lints if the `Vec` is used in the loop body
865 [#7018](https://github.com/rust-lang/rust-clippy/pull/7018)
866 * [`cargo_common_metadata`]: Remove author requirement
867 [#7026](https://github.com/rust-lang/rust-clippy/pull/7026)
868 * [`panic_in_result_fn`]: No longer lints on `debug_assert` family
869 [#7060](https://github.com/rust-lang/rust-clippy/pull/7060)
870 * [`panic`]: No longer wrongfully lints on `debug_assert` with message
871 [#7063](https://github.com/rust-lang/rust-clippy/pull/7063)
872 * [`wrong_self_convention`]: No longer lints in trait implementations where no
873 `self` is involved [#7064](https://github.com/rust-lang/rust-clippy/pull/7064)
874 * [`missing_const_for_fn`]: No longer lints when unstable `const` function is
875 involved [#7076](https://github.com/rust-lang/rust-clippy/pull/7076)
876 * [`suspicious_else_formatting`]: Allow Allman style braces
877 [#7087](https://github.com/rust-lang/rust-clippy/pull/7087)
878 * [`inconsistent_struct_constructor`]: No longer lints in macros
879 [#7097](https://github.com/rust-lang/rust-clippy/pull/7097)
880 * [`single_component_path_imports`]: No longer lints on macro re-exports
881 [#7120](https://github.com/rust-lang/rust-clippy/pull/7120)
883 ### Suggestion Fixes/Improvements
885 * [`redundant_pattern_matching`]: Add a note when applying this lint would
886 change the drop order
887 [#6568](https://github.com/rust-lang/rust-clippy/pull/6568)
888 * [`write_literal`], [`print_literal`]: Add auto-applicable suggestion
889 [#6821](https://github.com/rust-lang/rust-clippy/pull/6821)
890 * [`manual_map`]: Fix suggestion for complex `if let ... else` chains
891 [#6856](https://github.com/rust-lang/rust-clippy/pull/6856)
892 * [`inconsistent_struct_constructor`]: Make lint description and message clearer
893 [#6892](https://github.com/rust-lang/rust-clippy/pull/6892)
894 * [`map_entry`]: Now suggests `or_insert`, `insert_with` or `match _.entry(_)`
895 as appropriate [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
896 * [`manual_flatten`]: Suggest to insert `copied` if necessary
897 [#6962](https://github.com/rust-lang/rust-clippy/pull/6962)
898 * [`redundant_slicing`]: Fix suggestion when a re-borrow might be required or
899 when the value is from a macro call
900 [#6975](https://github.com/rust-lang/rust-clippy/pull/6975)
901 * [`match_wildcard_for_single_variants`]: Fix suggestion for hidden variant
902 [#6988](https://github.com/rust-lang/rust-clippy/pull/6988)
903 * [`clone_on_copy`]: Correct suggestion when the cloned value is a macro call
904 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
905 * [`manual_map`]: Fix suggestion at the end of an if chain
906 [#7004](https://github.com/rust-lang/rust-clippy/pull/7004)
907 * Fix needless parenthesis output in multiple lint suggestions
908 [#7013](https://github.com/rust-lang/rust-clippy/pull/7013)
909 * [`needless_collect`]: Better explanation in the lint message
910 [#7020](https://github.com/rust-lang/rust-clippy/pull/7020)
911 * [`useless_vec`]: Now considers mutability
912 [#7036](https://github.com/rust-lang/rust-clippy/pull/7036)
913 * [`useless_format`]: Wrap the content in braces if necessary
914 [#7092](https://github.com/rust-lang/rust-clippy/pull/7092)
915 * [`single_match`]: Don't suggest an equality check for types which don't
916 implement `PartialEq`
917 [#7093](https://github.com/rust-lang/rust-clippy/pull/7093)
918 * [`from_over_into`]: Mention type in help message
919 [#7099](https://github.com/rust-lang/rust-clippy/pull/7099)
920 * [`manual_unwrap_or`]: Fix invalid code suggestion due to a macro call
921 [#7136](https://github.com/rust-lang/rust-clippy/pull/7136)
925 * [`macro_use_imports`]
926 [#7022](https://github.com/rust-lang/rust-clippy/pull/7022)
927 * [`missing_panics_doc`]
928 [#7034](https://github.com/rust-lang/rust-clippy/pull/7034)
929 * [`tabs_in_doc_comments`]
930 [#7039](https://github.com/rust-lang/rust-clippy/pull/7039)
931 * [`missing_const_for_fn`]
932 [#7128](https://github.com/rust-lang/rust-clippy/pull/7128)
937 list](https://rust-lang.github.io/rust-clippy/master/index.html) now supports
938 themes [#7030](https://github.com/rust-lang/rust-clippy/pull/7030)
939 * Lints that were uplifted to `rustc` now mention the new `rustc` name in the
941 [#7056](https://github.com/rust-lang/rust-clippy/pull/7056)
947 [3e41797...6ed6f1e](https://github.com/rust-lang/rust-clippy/compare/3e41797...6ed6f1e)
951 * [`from_str_radix_10`]
952 [#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
954 [#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
955 * [`semicolon_if_nothing_returned`]
956 [#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
958 [#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
959 * [`inconsistent_struct_constructor`]
960 [#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
962 [#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
963 * [`default_numeric_fallback`]
964 [#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
966 [#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
967 * [`filter_map_identity`]
968 [#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
970 [#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
972 ### Moves and Deprecations
974 * Moved [`upper_case_acronyms`] to `pedantic`
975 [#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
976 * Moved [`manual_map`] to `nursery`
977 [#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
978 * Moved [`unnecessary_wraps`] to `pedantic`
979 [#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
980 * Moved [`trivial_regex`] to `nursery`
981 [#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
982 * Moved [`naive_bytecount`] to `pedantic`
983 [#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
984 * Moved [`upper_case_acronyms`] to `style`
985 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
986 * Moved [`manual_map`] to `style`
987 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
991 * [`disallowed_methods`]: Now supports functions in addition to methods
992 [#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
993 * [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
994 trigger the lint if there is more than one uppercase character next to each other
995 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
996 * [`collapsible_match`]: Now supports block comparison with different value names
997 [#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
998 * [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
999 [#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
1000 * Improved value usage detection in closures
1001 [#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
1003 ### False Positive Fixes
1005 * [`use_self`]: No longer lints in macros
1006 [#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
1007 * [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
1008 [#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
1009 * [`missing_inline_in_public_items`]: No longer lints for procedural macros
1010 [#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
1011 * [`inherent_to_string`]: No longer lints on functions with function generics
1012 [#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
1013 * [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
1014 [#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
1015 * [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
1016 [#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
1017 * [`collapsible_if`]: No longer lints on if statements with attributes
1018 [#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
1019 * [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
1020 [#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
1021 * [`redundant_closure`]: Now ignores macros
1022 [#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
1023 * [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
1024 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1025 * [`vec_init_then_push`]: Fixed false positives for loops and if statements
1026 [#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
1027 * [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
1028 the `len` method as well as the type definition.
1029 [#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
1030 * [`let_underscore_drop`]: Only lints on types which implement `Drop`
1031 [#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
1032 * [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
1033 [#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
1034 * [`cargo_common_metadata`]: No longer lints if
1035 [`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
1036 is defined in the manifest
1037 [#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
1039 ### Suggestion Fixes/Improvements
1041 * [`collapsible_match`]: Fixed lint message capitalization
1042 [#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
1043 * [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
1044 [#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
1045 * [`manual_map`]: No longer expands macros in the suggestions
1046 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1047 * Aligned Clippy's lint messages with the rustc dev guide
1048 [#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
1052 * [`zero_sized_map_values`]
1053 [#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
1055 ### Documentation Improvements
1057 * [`useless_format`]: Improved the documentation example
1058 [#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
1059 * Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
1060 [#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
1063 * Running `cargo clippy` after `cargo check` now works as expected
1064 (`cargo clippy` and `cargo check` no longer shares the same build cache)
1065 [#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
1066 * Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
1067 [#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
1068 * Extracted Clippy's `utils` module into the new `clippy_utils` crate
1069 [#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
1070 * Clippy lintcheck tool improvements
1071 [#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
1072 [#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
1073 [#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
1074 [#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
1075 [#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
1076 [#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
1082 [4911ab1...3e41797](https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797)
1086 * [`upper_case_acronyms`]
1087 [#6475](https://github.com/rust-lang/rust-clippy/pull/6475)
1088 * [`from_over_into`] [#6476](https://github.com/rust-lang/rust-clippy/pull/6476)
1089 * [`case_sensitive_file_extension_comparisons`]
1090 [#6500](https://github.com/rust-lang/rust-clippy/pull/6500)
1091 * [`needless_question_mark`]
1092 [#6507](https://github.com/rust-lang/rust-clippy/pull/6507)
1093 * [`missing_panics_doc`]
1094 [#6523](https://github.com/rust-lang/rust-clippy/pull/6523)
1095 * [`redundant_slicing`]
1096 [#6528](https://github.com/rust-lang/rust-clippy/pull/6528)
1097 * [`vec_init_then_push`]
1098 [#6538](https://github.com/rust-lang/rust-clippy/pull/6538)
1099 * [`ptr_as_ptr`] [#6542](https://github.com/rust-lang/rust-clippy/pull/6542)
1100 * [`collapsible_else_if`] (split out from `collapsible_if`)
1101 [#6544](https://github.com/rust-lang/rust-clippy/pull/6544)
1102 * [`inspect_for_each`] [#6577](https://github.com/rust-lang/rust-clippy/pull/6577)
1103 * [`manual_filter_map`]
1104 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
1105 * [`exhaustive_enums`]
1106 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
1107 * [`exhaustive_structs`]
1108 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
1110 ### Moves and Deprecations
1112 * Replace [`find_map`] with [`manual_find_map`]
1113 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
1114 * `unknown_clippy_lints` Now integrated in the `unknown_lints` rustc lint
1115 [#6653](https://github.com/rust-lang/rust-clippy/pull/6653)
1119 * [`ptr_arg`] Now also suggests to use `&Path` instead of `&PathBuf`
1120 [#6506](https://github.com/rust-lang/rust-clippy/pull/6506)
1121 * [`cast_ptr_alignment`] Also lint when the `pointer::cast` method is used
1122 [#6557](https://github.com/rust-lang/rust-clippy/pull/6557)
1123 * [`collapsible_match`] Now also deals with `&` and `*` operators in the `match`
1124 scrutinee [#6619](https://github.com/rust-lang/rust-clippy/pull/6619)
1126 ### False Positive Fixes
1128 * [`similar_names`] Ignore underscore prefixed names
1129 [#6403](https://github.com/rust-lang/rust-clippy/pull/6403)
1130 * [`print_literal`] and [`write_literal`] No longer lint numeric literals
1131 [#6408](https://github.com/rust-lang/rust-clippy/pull/6408)
1132 * [`large_enum_variant`] No longer lints in external macros
1133 [#6485](https://github.com/rust-lang/rust-clippy/pull/6485)
1134 * [`empty_enum`] Only lint if `never_type` feature is enabled
1135 [#6513](https://github.com/rust-lang/rust-clippy/pull/6513)
1136 * [`field_reassign_with_default`] No longer lints in macros
1137 [#6553](https://github.com/rust-lang/rust-clippy/pull/6553)
1138 * [`size_of_in_element_count`] No longer lints when dividing by element size
1139 [#6578](https://github.com/rust-lang/rust-clippy/pull/6578)
1140 * [`needless_return`] No longer lints in macros
1141 [#6586](https://github.com/rust-lang/rust-clippy/pull/6586)
1142 * [`match_overlapping_arm`] No longer lint when first arm is completely included
1143 in second arm [#6603](https://github.com/rust-lang/rust-clippy/pull/6603)
1144 * [`doc_markdown`] Add `WebGL` to the default configuration as an allowed
1145 identifier [#6605](https://github.com/rust-lang/rust-clippy/pull/6605)
1147 ### Suggestion Fixes/Improvements
1149 * [`field_reassign_with_default`] Don't expand macro in lint suggestion
1150 [#6531](https://github.com/rust-lang/rust-clippy/pull/6531)
1151 * [`match_like_matches_macro`] Strip references in suggestion
1152 [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
1153 * [`single_match`] Suggest `if` over `if let` when possible
1154 [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
1155 * `ref_in_deref` Use parentheses correctly in suggestion
1156 [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
1157 * [`stable_sort_primitive`] Clarify error message
1158 [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
1162 * [`zero_sized_map_values`]
1163 [#6582](https://github.com/rust-lang/rust-clippy/pull/6582)
1165 ### Documentation Improvements
1167 * Improve search performance on the Clippy website and make it possible to
1168 directly search for lints on the GitHub issue tracker
1169 [#6483](https://github.com/rust-lang/rust-clippy/pull/6483)
1170 * Clean up `README.md` by removing outdated paragraph
1171 [#6488](https://github.com/rust-lang/rust-clippy/pull/6488)
1172 * [`await_holding_refcell_ref`] and [`await_holding_lock`]
1173 [#6585](https://github.com/rust-lang/rust-clippy/pull/6585)
1174 * [`as_conversions`] [#6608](https://github.com/rust-lang/rust-clippy/pull/6608)
1178 * Clippy now has a [Roadmap] for 2021. If you like to get involved in a bigger
1179 project, take a look at the [Roadmap project page]. All issues listed there
1180 are actively mentored
1181 [#6462](https://github.com/rust-lang/rust-clippy/pull/6462)
1182 * The Clippy version number now corresponds to the Rust version number
1183 [#6526](https://github.com/rust-lang/rust-clippy/pull/6526)
1184 * Fix oversight which caused Clippy to lint deps in some environments, where
1185 `CLIPPY_TESTS=true` was set somewhere
1186 [#6575](https://github.com/rust-lang/rust-clippy/pull/6575)
1187 * Add `cargo dev-lintcheck` tool to the Clippy Dev Tool
1188 [#6469](https://github.com/rust-lang/rust-clippy/pull/6469)
1190 [Roadmap]: https://github.com/rust-lang/rust-clippy/blob/master/doc/roadmap-2021.md
1191 [Roadmap project page]: https://github.com/rust-lang/rust-clippy/projects/3
1197 [b20d4c1...4bd77a1](https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1)
1201 * [`suspicious_operation_groupings`] [#6086](https://github.com/rust-lang/rust-clippy/pull/6086)
1202 * [`size_of_in_element_count`] [#6394](https://github.com/rust-lang/rust-clippy/pull/6394)
1203 * [`unnecessary_wraps`] [#6070](https://github.com/rust-lang/rust-clippy/pull/6070)
1204 * [`let_underscore_drop`] [#6305](https://github.com/rust-lang/rust-clippy/pull/6305)
1205 * [`collapsible_match`] [#6402](https://github.com/rust-lang/rust-clippy/pull/6402)
1206 * [`redundant_else`] [#6330](https://github.com/rust-lang/rust-clippy/pull/6330)
1207 * [`zero_sized_map_values`] [#6218](https://github.com/rust-lang/rust-clippy/pull/6218)
1208 * [`print_stderr`] [#6367](https://github.com/rust-lang/rust-clippy/pull/6367)
1209 * [`string_from_utf8_as_bytes`] [#6134](https://github.com/rust-lang/rust-clippy/pull/6134)
1211 ### Moves and Deprecations
1213 * Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
1214 as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
1215 * Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panics`
1216 [#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
1217 * Move [`map_err_ignore`] to `restriction`
1218 [#6416](https://github.com/rust-lang/rust-clippy/pull/6416)
1219 * Move [`await_holding_refcell_ref`] to `pedantic`
1220 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
1221 * Move [`await_holding_lock`] to `pedantic`
1222 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
1226 * Add the `unreadable-literal-lint-fractions` configuration to disable
1227 the `unreadable_literal` lint for fractions
1228 [#6421](https://github.com/rust-lang/rust-clippy/pull/6421)
1229 * [`clone_on_copy`]: Now shows the type in the lint message
1230 [#6443](https://github.com/rust-lang/rust-clippy/pull/6443)
1231 * [`redundant_pattern_matching`]: Now also lints on `std::task::Poll`
1232 [#6339](https://github.com/rust-lang/rust-clippy/pull/6339)
1233 * [`redundant_pattern_matching`]: Additionally also lints on `std::net::IpAddr`
1234 [#6377](https://github.com/rust-lang/rust-clippy/pull/6377)
1235 * [`search_is_some`]: Now suggests `contains` instead of `find(foo).is_some()`
1236 [#6119](https://github.com/rust-lang/rust-clippy/pull/6119)
1237 * [`clone_double_ref`]: Now prints the reference type in the lint message
1238 [#6442](https://github.com/rust-lang/rust-clippy/pull/6442)
1239 * [`modulo_one`]: Now also lints on -1.
1240 [#6360](https://github.com/rust-lang/rust-clippy/pull/6360)
1241 * [`empty_loop`]: Now lints no_std crates, too
1242 [#6205](https://github.com/rust-lang/rust-clippy/pull/6205)
1243 * [`or_fun_call`]: Now also lints when indexing `HashMap` or `BTreeMap`
1244 [#6267](https://github.com/rust-lang/rust-clippy/pull/6267)
1245 * [`wrong_self_convention`]: Now also lints in trait definitions
1246 [#6316](https://github.com/rust-lang/rust-clippy/pull/6316)
1247 * [`needless_borrow`]: Print the type in the lint message
1248 [#6449](https://github.com/rust-lang/rust-clippy/pull/6449)
1250 [msrv_readme]: https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
1252 ### False Positive Fixes
1254 * [`manual_range_contains`]: No longer lints in `const fn`
1255 [#6382](https://github.com/rust-lang/rust-clippy/pull/6382)
1256 * [`unnecessary_lazy_evaluations`]: No longer lints if closure argument is used
1257 [#6370](https://github.com/rust-lang/rust-clippy/pull/6370)
1258 * [`match_single_binding`]: Now ignores cases with `#[cfg()]` macros
1259 [#6435](https://github.com/rust-lang/rust-clippy/pull/6435)
1260 * [`match_like_matches_macro`]: No longer lints on arms with attributes
1261 [#6290](https://github.com/rust-lang/rust-clippy/pull/6290)
1262 * [`map_clone`]: No longer lints with deref and clone
1263 [#6269](https://github.com/rust-lang/rust-clippy/pull/6269)
1264 * [`map_clone`]: No longer lints in the case of &mut
1265 [#6301](https://github.com/rust-lang/rust-clippy/pull/6301)
1266 * [`needless_update`]: Now ignores `non_exhaustive` structs
1267 [#6464](https://github.com/rust-lang/rust-clippy/pull/6464)
1268 * [`needless_collect`]: No longer lints when a collect is needed multiple times
1269 [#6313](https://github.com/rust-lang/rust-clippy/pull/6313)
1270 * [`unnecessary_cast`] No longer lints cfg-dependent types
1271 [#6369](https://github.com/rust-lang/rust-clippy/pull/6369)
1272 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]:
1273 Both now ignore enums with frozen variants
1274 [#6110](https://github.com/rust-lang/rust-clippy/pull/6110)
1275 * [`field_reassign_with_default`] No longer lint for private fields
1276 [#6537](https://github.com/rust-lang/rust-clippy/pull/6537)
1279 ### Suggestion Fixes/Improvements
1281 * [`vec_box`]: Provide correct type scope suggestion
1282 [#6271](https://github.com/rust-lang/rust-clippy/pull/6271)
1283 * [`manual_range_contains`]: Give correct suggestion when using floats
1284 [#6320](https://github.com/rust-lang/rust-clippy/pull/6320)
1285 * [`unnecessary_lazy_evaluations`]: Don't always mark suggestion as MachineApplicable
1286 [#6272](https://github.com/rust-lang/rust-clippy/pull/6272)
1287 * [`manual_async_fn`]: Improve suggestion formatting
1288 [#6294](https://github.com/rust-lang/rust-clippy/pull/6294)
1289 * [`unnecessary_cast`]: Fix incorrectly formatted float literal suggestion
1290 [#6362](https://github.com/rust-lang/rust-clippy/pull/6362)
1294 * Fix a crash in [`from_iter_instead_of_collect`]
1295 [#6304](https://github.com/rust-lang/rust-clippy/pull/6304)
1296 * Fix a silent crash when parsing doc comments in [`needless_doctest_main`]
1297 [#6458](https://github.com/rust-lang/rust-clippy/pull/6458)
1299 ### Documentation Improvements
1301 * The lint website search has been improved ([#6477](https://github.com/rust-lang/rust-clippy/pull/6477)):
1302 * Searching for lints with dashes and spaces is possible now. For example
1303 `missing-errors-doc` and `missing errors doc` are now valid aliases for lint names
1304 * Improved fuzzy search in lint descriptions
1305 * Various README improvements
1306 [#6287](https://github.com/rust-lang/rust-clippy/pull/6287)
1307 * Add known problems to [`comparison_chain`] documentation
1308 [#6390](https://github.com/rust-lang/rust-clippy/pull/6390)
1309 * Fix example used in [`cargo_common_metadata`]
1310 [#6293](https://github.com/rust-lang/rust-clippy/pull/6293)
1311 * Improve [`map_clone`] documentation
1312 [#6340](https://github.com/rust-lang/rust-clippy/pull/6340)
1316 * You can now tell Clippy about the MSRV your project supports. Please refer to
1317 the specific README section to learn more about MSRV support [here][msrv_readme]
1318 [#6201](https://github.com/rust-lang/rust-clippy/pull/6201)
1319 * Add `--no-deps` option to avoid running on path dependencies in workspaces
1320 [#6188](https://github.com/rust-lang/rust-clippy/pull/6188)
1326 [e636b88...b20d4c1](https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1)
1330 * [`field_reassign_with_default`] [#5911](https://github.com/rust-lang/rust-clippy/pull/5911)
1331 * [`await_holding_refcell_ref`] [#6029](https://github.com/rust-lang/rust-clippy/pull/6029)
1332 * [`disallowed_methods`] [#6081](https://github.com/rust-lang/rust-clippy/pull/6081)
1333 * [`inline_asm_x86_att_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
1334 * [`inline_asm_x86_intel_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
1335 * [`from_iter_instead_of_collect`] [#6101](https://github.com/rust-lang/rust-clippy/pull/6101)
1336 * [`mut_mutex_lock`] [#6103](https://github.com/rust-lang/rust-clippy/pull/6103)
1337 * [`single_element_loop`] [#6109](https://github.com/rust-lang/rust-clippy/pull/6109)
1338 * [`manual_unwrap_or`] [#6123](https://github.com/rust-lang/rust-clippy/pull/6123)
1339 * [`large_types_passed_by_value`] [#6135](https://github.com/rust-lang/rust-clippy/pull/6135)
1340 * [`result_unit_err`] [#6157](https://github.com/rust-lang/rust-clippy/pull/6157)
1341 * [`ref_option_ref`] [#6165](https://github.com/rust-lang/rust-clippy/pull/6165)
1342 * [`manual_range_contains`] [#6177](https://github.com/rust-lang/rust-clippy/pull/6177)
1343 * [`unusual_byte_groupings`] [#6183](https://github.com/rust-lang/rust-clippy/pull/6183)
1344 * [`comparison_to_empty`] [#6226](https://github.com/rust-lang/rust-clippy/pull/6226)
1345 * [`map_collect_result_unit`] [#6227](https://github.com/rust-lang/rust-clippy/pull/6227)
1346 * [`manual_ok_or`] [#6233](https://github.com/rust-lang/rust-clippy/pull/6233)
1348 ### Moves and Deprecations
1350 * Rename `single_char_push_str` to [`single_char_add_str`]
1351 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
1352 * Rename `zero_width_space` to [`invisible_characters`]
1353 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
1354 * Deprecate `drop_bounds` (uplifted)
1355 [#6111](https://github.com/rust-lang/rust-clippy/pull/6111)
1356 * Move [`string_lit_as_bytes`] to `nursery`
1357 [#6117](https://github.com/rust-lang/rust-clippy/pull/6117)
1358 * Move [`rc_buffer`] to `restriction`
1359 [#6128](https://github.com/rust-lang/rust-clippy/pull/6128)
1363 * [`manual_memcpy`]: Also lint when there are loop counters (and produce a
1364 reliable suggestion)
1365 [#5727](https://github.com/rust-lang/rust-clippy/pull/5727)
1366 * [`single_char_add_str`]: Also lint on `String::insert_str`
1367 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
1368 * [`invisible_characters`]: Also lint the characters `\u{AD}` and `\u{2060}`
1369 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
1370 * [`eq_op`]: Also lint on the `assert_*!` macro family
1371 [#6167](https://github.com/rust-lang/rust-clippy/pull/6167)
1372 * [`items_after_statements`]: Also lint in local macro expansions
1373 [#6176](https://github.com/rust-lang/rust-clippy/pull/6176)
1374 * [`unnecessary_cast`]: Also lint casts on integer and float literals
1375 [#6187](https://github.com/rust-lang/rust-clippy/pull/6187)
1376 * [`manual_unwrap_or`]: Also lint `Result::unwrap_or`
1377 [#6190](https://github.com/rust-lang/rust-clippy/pull/6190)
1378 * [`match_like_matches_macro`]: Also lint when `match` has more than two arms
1379 [#6216](https://github.com/rust-lang/rust-clippy/pull/6216)
1380 * [`integer_arithmetic`]: Better handle `/` an `%` operators
1381 [#6229](https://github.com/rust-lang/rust-clippy/pull/6229)
1383 ### False Positive Fixes
1385 * [`needless_lifetimes`]: Bail out if the function has a `where` clause with the
1386 lifetime [#5978](https://github.com/rust-lang/rust-clippy/pull/5978)
1387 * [`explicit_counter_loop`]: No longer lints, when loop counter is used after it
1388 is incremented [#6076](https://github.com/rust-lang/rust-clippy/pull/6076)
1389 * [`or_fun_call`]: Revert changes addressing the handling of `const fn`
1390 [#6077](https://github.com/rust-lang/rust-clippy/pull/6077)
1391 * [`needless_range_loop`]: No longer lints, when the iterable is used in the
1392 range [#6102](https://github.com/rust-lang/rust-clippy/pull/6102)
1393 * [`inconsistent_digit_grouping`]: Fix bug when using floating point exponent
1394 [#6104](https://github.com/rust-lang/rust-clippy/pull/6104)
1395 * [`mistyped_literal_suffixes`]: No longer lints on the fractional part of a
1396 float (e.g. `713.32_64`)
1397 [#6114](https://github.com/rust-lang/rust-clippy/pull/6114)
1398 * [`invalid_regex`]: No longer lint on unicode characters within `bytes::Regex`
1399 [#6132](https://github.com/rust-lang/rust-clippy/pull/6132)
1400 * [`boxed_local`]: No longer lints on `extern fn` arguments
1401 [#6133](https://github.com/rust-lang/rust-clippy/pull/6133)
1402 * [`needless_lifetimes`]: Fix regression, where lifetime is used in `where`
1403 clause [#6198](https://github.com/rust-lang/rust-clippy/pull/6198)
1405 ### Suggestion Fixes/Improvements
1407 * [`unnecessary_sort_by`]: Avoid dereferencing the suggested closure parameter
1408 [#6078](https://github.com/rust-lang/rust-clippy/pull/6078)
1409 * [`needless_arbitrary_self_type`]: Correctly handle expanded code
1410 [#6093](https://github.com/rust-lang/rust-clippy/pull/6093)
1411 * [`useless_format`]: Preserve raw strings in suggestion
1412 [#6151](https://github.com/rust-lang/rust-clippy/pull/6151)
1413 * [`empty_loop`]: Suggest alternatives
1414 [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
1415 * [`borrowed_box`]: Correctly add parentheses in suggestion
1416 [#6200](https://github.com/rust-lang/rust-clippy/pull/6200)
1417 * [`unused_unit`]: Improve suggestion formatting
1418 [#6247](https://github.com/rust-lang/rust-clippy/pull/6247)
1420 ### Documentation Improvements
1422 * Some doc improvements:
1423 * [`rc_buffer`] [#6090](https://github.com/rust-lang/rust-clippy/pull/6090)
1424 * [`empty_loop`] [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
1425 * [`doc_markdown`]: Document problematic link text style
1426 [#6107](https://github.com/rust-lang/rust-clippy/pull/6107)
1432 [09bd400...e636b88](https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88)
1436 * [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
1437 * [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
1438 * [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
1439 * [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
1440 * [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
1441 * `to_string_in_display` [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
1442 * `single_char_push_str` [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
1444 ### Moves and Deprecations
1446 * Downgrade [`verbose_bit_mask`] to pedantic
1447 [#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
1451 * Extend [`precedence`] to handle chains of methods combined with unary negation
1452 [#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
1453 * [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
1454 [#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
1455 * [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
1456 [#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
1457 * `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
1458 [#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
1459 * Avoid [`redundant_pattern_matching`] triggering in macros
1460 [#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
1461 * [`option_if_let_else`]: distinguish pure from impure `else` expressions
1462 [#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
1463 * [`needless_doctest_main`]: parse doctests instead of using textual search
1464 [#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
1465 * [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
1466 [#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
1467 * Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
1468 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
1469 * [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
1470 [#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
1472 ### False Positive Fixes
1474 * [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
1475 [#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
1476 * [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
1477 [#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
1478 * [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
1479 [#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
1480 * Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
1481 [#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
1482 * [`doc_markdown`]: allow using "GraphQL" without backticks
1483 [#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
1484 * `to_string_in_display`: avoid linting when calling `to_string()` on anything that is not `self`
1485 [#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
1486 * [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
1487 [#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
1488 * [`should_implement_trait`]: ignore methods with lifetime parameters
1489 [#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
1490 * [`needless_return`]: avoid linting if a temporary borrows a local variable
1491 [#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
1492 * Restrict [`unnecessary_sort_by`] to non-reference, Copy types
1493 [#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
1494 * Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
1495 [#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
1496 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
1497 [#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
1499 ### Suggestion Fixes/Improvements
1501 * [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
1502 [#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
1503 * [`useless_conversion`]: show the type in the error message
1504 [#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
1505 * [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
1506 [#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
1507 * [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
1508 [#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
1509 * [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
1510 [#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
1511 * [`collapsible_if`]: don't use expanded code in the suggestion
1512 [#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
1513 * Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
1514 [#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
1515 * [`unit_arg`]: improve the readability of the suggestion
1516 [#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
1517 * [`stable_sort_primitive`]: print the type that is being sorted in the lint message
1518 [#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
1519 * Show line count and max lines in [`too_many_lines`] lint message
1520 [#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
1521 * Keep parentheses in the suggestion of [`useless_conversion`] where applicable
1522 [#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
1523 * [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
1524 [#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
1525 * [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
1526 [#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
1527 * Make lint messages adhere to rustc dev guide conventions
1528 [#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
1532 * Fix ICE in [`repeat_once`]
1533 [#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
1535 ### Documentation Improvements
1537 * [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
1538 [#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
1539 * [`unnecessary_mut_passed`]: fix typo
1540 [#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
1541 * Add example of false positive to [`ptr_arg`] docs.
1542 [#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
1543 * [`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`
1544 [#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
1550 [c2c07fa...09bd400](https://github.com/rust-lang/rust-clippy/compare/c2c07fa...09bd400)
1554 * [`derive_ord_xor_partial_ord`] [#5848](https://github.com/rust-lang/rust-clippy/pull/5848)
1555 * [`trait_duplication_in_bounds`] [#5852](https://github.com/rust-lang/rust-clippy/pull/5852)
1556 * [`map_identity`] [#5694](https://github.com/rust-lang/rust-clippy/pull/5694)
1557 * [`unit_return_expecting_ord`] [#5737](https://github.com/rust-lang/rust-clippy/pull/5737)
1558 * [`pattern_type_mismatch`] [#4841](https://github.com/rust-lang/rust-clippy/pull/4841)
1559 * [`repeat_once`] [#5773](https://github.com/rust-lang/rust-clippy/pull/5773)
1560 * [`same_item_push`] [#5825](https://github.com/rust-lang/rust-clippy/pull/5825)
1561 * [`needless_arbitrary_self_type`] [#5869](https://github.com/rust-lang/rust-clippy/pull/5869)
1562 * [`match_like_matches_macro`] [#5769](https://github.com/rust-lang/rust-clippy/pull/5769)
1563 * [`stable_sort_primitive`] [#5809](https://github.com/rust-lang/rust-clippy/pull/5809)
1564 * [`blanket_clippy_restriction_lints`] [#5750](https://github.com/rust-lang/rust-clippy/pull/5750)
1565 * [`option_if_let_else`] [#5301](https://github.com/rust-lang/rust-clippy/pull/5301)
1567 ### Moves and Deprecations
1569 * Deprecate [`regex_macro`] lint
1570 [#5760](https://github.com/rust-lang/rust-clippy/pull/5760)
1571 * Move [`range_minus_one`] to `pedantic`
1572 [#5752](https://github.com/rust-lang/rust-clippy/pull/5752)
1576 * Improve [`needless_collect`] by catching `collect` calls followed by `iter` or `into_iter` calls
1577 [#5837](https://github.com/rust-lang/rust-clippy/pull/5837)
1578 * [`panic`], [`todo`], [`unimplemented`] and [`unreachable`] now detect calls with formatting
1579 [#5811](https://github.com/rust-lang/rust-clippy/pull/5811)
1580 * Detect more cases of [`suboptimal_flops`] and [`imprecise_flops`]
1581 [#5443](https://github.com/rust-lang/rust-clippy/pull/5443)
1582 * Handle asymmetrical implementations of `PartialEq` in [`cmp_owned`]
1583 [#5701](https://github.com/rust-lang/rust-clippy/pull/5701)
1584 * Make it possible to allow [`unsafe_derive_deserialize`]
1585 [#5870](https://github.com/rust-lang/rust-clippy/pull/5870)
1586 * Catch `ord.min(a).max(b)` where a < b in [`min_max`]
1587 [#5871](https://github.com/rust-lang/rust-clippy/pull/5871)
1588 * Make [`clone_on_copy`] suggestion machine applicable
1589 [#5745](https://github.com/rust-lang/rust-clippy/pull/5745)
1590 * Enable [`len_zero`] on ranges now that `is_empty` is stable on them
1591 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
1593 ### False Positive Fixes
1595 * Avoid triggering [`or_fun_call`] with const fns that take no arguments
1596 [#5889](https://github.com/rust-lang/rust-clippy/pull/5889)
1597 * Fix [`redundant_closure_call`] false positive for closures that have multiple calls
1598 [#5800](https://github.com/rust-lang/rust-clippy/pull/5800)
1599 * Don't lint cases involving `ManuallyDrop` in [`redundant_clone`]
1600 [#5824](https://github.com/rust-lang/rust-clippy/pull/5824)
1601 * Treat a single expression the same as a single statement in the 2nd arm of a match in [`single_match_else`]
1602 [#5771](https://github.com/rust-lang/rust-clippy/pull/5771)
1603 * Don't trigger [`unnested_or_patterns`] if the feature `or_patterns` is not enabled
1604 [#5758](https://github.com/rust-lang/rust-clippy/pull/5758)
1605 * Avoid linting if key borrows in [`unnecessary_sort_by`]
1606 [#5756](https://github.com/rust-lang/rust-clippy/pull/5756)
1607 * Consider `Try` impl for `Poll` when generating suggestions in [`try_err`]
1608 [#5857](https://github.com/rust-lang/rust-clippy/pull/5857)
1609 * Take input lifetimes into account in `manual_async_fn`
1610 [#5859](https://github.com/rust-lang/rust-clippy/pull/5859)
1611 * Fix multiple false positives in [`type_repetition_in_bounds`] and add a configuration option
1612 [#5761](https://github.com/rust-lang/rust-clippy/pull/5761)
1613 * Limit the [`suspicious_arithmetic_impl`] lint to one binary operation
1614 [#5820](https://github.com/rust-lang/rust-clippy/pull/5820)
1616 ### Suggestion Fixes/Improvements
1618 * Improve readability of [`shadow_unrelated`] suggestion by truncating the RHS snippet
1619 [#5788](https://github.com/rust-lang/rust-clippy/pull/5788)
1620 * Suggest `filter_map` instead of `flat_map` when mapping to `Option` in [`map_flatten`]
1621 [#5846](https://github.com/rust-lang/rust-clippy/pull/5846)
1622 * Ensure suggestion is shown correctly for long method call chains in [`iter_nth_zero`]
1623 [#5793](https://github.com/rust-lang/rust-clippy/pull/5793)
1624 * Drop borrow operator in suggestions of [`redundant_pattern_matching`]
1625 [#5815](https://github.com/rust-lang/rust-clippy/pull/5815)
1626 * Add suggestion for [`iter_skip_next`]
1627 [#5843](https://github.com/rust-lang/rust-clippy/pull/5843)
1628 * Improve [`collapsible_if`] fix suggestion
1629 [#5732](https://github.com/rust-lang/rust-clippy/pull/5732)
1633 * Fix ICE caused by [`needless_collect`]
1634 [#5877](https://github.com/rust-lang/rust-clippy/pull/5877)
1635 * Fix ICE caused by [`unnested_or_patterns`]
1636 [#5784](https://github.com/rust-lang/rust-clippy/pull/5784)
1638 ### Documentation Improvements
1640 * Fix grammar of [`await_holding_lock`] documentation
1641 [#5748](https://github.com/rust-lang/rust-clippy/pull/5748)
1645 * Make lints adhere to the rustc dev guide
1646 [#5888](https://github.com/rust-lang/rust-clippy/pull/5888)
1652 [7ea7cd1...c2c07fa](https://github.com/rust-lang/rust-clippy/compare/7ea7cd1...c2c07fa)
1656 * [`unnested_or_patterns`] [#5378](https://github.com/rust-lang/rust-clippy/pull/5378)
1657 * [`iter_next_slice`] [#5597](https://github.com/rust-lang/rust-clippy/pull/5597)
1658 * [`unnecessary_sort_by`] [#5623](https://github.com/rust-lang/rust-clippy/pull/5623)
1659 * [`vec_resize_to_zero`] [#5637](https://github.com/rust-lang/rust-clippy/pull/5637)
1661 ### Moves and Deprecations
1663 * Move [`cast_ptr_alignment`] to pedantic [#5667](https://github.com/rust-lang/rust-clippy/pull/5667)
1667 * Improve [`mem_replace_with_uninit`] lint [#5695](https://github.com/rust-lang/rust-clippy/pull/5695)
1669 ### False Positive Fixes
1671 * [`len_zero`]: Avoid linting ranges when the `range_is_empty` feature is not enabled
1672 [#5656](https://github.com/rust-lang/rust-clippy/pull/5656)
1673 * [`let_and_return`]: Don't lint if a temporary borrow is involved
1674 [#5680](https://github.com/rust-lang/rust-clippy/pull/5680)
1675 * [`reversed_empty_ranges`]: Avoid linting `N..N` in for loop arguments in
1676 [#5692](https://github.com/rust-lang/rust-clippy/pull/5692)
1677 * [`if_same_then_else`]: Don't assume multiplication is always commutative
1678 [#5702](https://github.com/rust-lang/rust-clippy/pull/5702)
1679 * [`blacklisted_name`]: Remove `bar` from the default configuration
1680 [#5712](https://github.com/rust-lang/rust-clippy/pull/5712)
1681 * [`redundant_pattern_matching`]: Avoid suggesting non-`const fn` calls in const contexts
1682 [#5724](https://github.com/rust-lang/rust-clippy/pull/5724)
1684 ### Suggestion Fixes/Improvements
1686 * Fix suggestion of [`unit_arg`] lint, so that it suggest semantic equivalent code
1687 [#4455](https://github.com/rust-lang/rust-clippy/pull/4455)
1688 * Add auto applicable suggestion to [`macro_use_imports`]
1689 [#5279](https://github.com/rust-lang/rust-clippy/pull/5279)
1693 * Fix ICE in the `consts` module of Clippy [#5709](https://github.com/rust-lang/rust-clippy/pull/5709)
1695 ### Documentation Improvements
1697 * Improve code examples across multiple lints [#5664](https://github.com/rust-lang/rust-clippy/pull/5664)
1701 * Introduce a `--rustc` flag to `clippy-driver`, which turns `clippy-driver`
1702 into `rustc` and passes all the given arguments to `rustc`. This is especially
1703 useful for tools that need the `rustc` version Clippy was compiled with,
1704 instead of the Clippy version. E.g. `clippy-driver --rustc --version` will
1705 print the output of `rustc --version`.
1706 [#5178](https://github.com/rust-lang/rust-clippy/pull/5178)
1707 * New issue templates now make it easier to complain if Clippy is too annoying
1708 or not annoying enough! [#5735](https://github.com/rust-lang/rust-clippy/pull/5735)
1714 [891e1a8...7ea7cd1](https://github.com/rust-lang/rust-clippy/compare/891e1a8...7ea7cd1)
1718 * [`match_wildcard_for_single_variants`] [#5582](https://github.com/rust-lang/rust-clippy/pull/5582)
1719 * [`unsafe_derive_deserialize`] [#5493](https://github.com/rust-lang/rust-clippy/pull/5493)
1720 * [`if_let_mutex`] [#5332](https://github.com/rust-lang/rust-clippy/pull/5332)
1721 * [`mismatched_target_os`] [#5506](https://github.com/rust-lang/rust-clippy/pull/5506)
1722 * [`await_holding_lock`] [#5439](https://github.com/rust-lang/rust-clippy/pull/5439)
1723 * [`match_on_vec_items`] [#5522](https://github.com/rust-lang/rust-clippy/pull/5522)
1724 * [`manual_async_fn`] [#5576](https://github.com/rust-lang/rust-clippy/pull/5576)
1725 * [`reversed_empty_ranges`] [#5583](https://github.com/rust-lang/rust-clippy/pull/5583)
1726 * [`manual_non_exhaustive`] [#5550](https://github.com/rust-lang/rust-clippy/pull/5550)
1728 ### Moves and Deprecations
1730 * Downgrade [`match_bool`] to pedantic [#5408](https://github.com/rust-lang/rust-clippy/pull/5408)
1731 * Downgrade [`match_wild_err_arm`] to pedantic and update help messages. [#5622](https://github.com/rust-lang/rust-clippy/pull/5622)
1732 * Downgrade [`useless_let_if_seq`] to nursery. [#5599](https://github.com/rust-lang/rust-clippy/pull/5599)
1733 * Generalize `option_and_then_some` and rename to [`bind_instead_of_map`]. [#5529](https://github.com/rust-lang/rust-clippy/pull/5529)
1734 * Rename `identity_conversion` to [`useless_conversion`]. [#5568](https://github.com/rust-lang/rust-clippy/pull/5568)
1735 * Merge `block_in_if_condition_expr` and `block_in_if_condition_stmt` into [`blocks_in_if_conditions`].
1736 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1737 * Merge `option_map_unwrap_or`, `option_map_unwrap_or_else` and `result_map_unwrap_or_else` into [`map_unwrap_or`].
1738 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1739 * Merge `option_unwrap_used` and `result_unwrap_used` into [`unwrap_used`].
1740 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1741 * Merge `option_expect_used` and `result_expect_used` into [`expect_used`].
1742 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1743 * Merge `for_loop_over_option` and `for_loop_over_result` into [`for_loops_over_fallibles`].
1744 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1748 * Avoid running cargo lints when not enabled to improve performance. [#5505](https://github.com/rust-lang/rust-clippy/pull/5505)
1749 * Extend [`useless_conversion`] with `TryFrom` and `TryInto`. [#5631](https://github.com/rust-lang/rust-clippy/pull/5631)
1750 * Lint also in type parameters and where clauses in [`unused_unit`]. [#5592](https://github.com/rust-lang/rust-clippy/pull/5592)
1751 * Do not suggest deriving `Default` in [`new_without_default`]. [#5616](https://github.com/rust-lang/rust-clippy/pull/5616)
1753 ### False Positive Fixes
1755 * [`while_let_on_iterator`] [#5525](https://github.com/rust-lang/rust-clippy/pull/5525)
1756 * [`empty_line_after_outer_attr`] [#5609](https://github.com/rust-lang/rust-clippy/pull/5609)
1757 * [`unnecessary_unwrap`] [#5558](https://github.com/rust-lang/rust-clippy/pull/5558)
1758 * [`comparison_chain`] [#5596](https://github.com/rust-lang/rust-clippy/pull/5596)
1759 * Don't trigger [`used_underscore_binding`] in await desugaring. [#5535](https://github.com/rust-lang/rust-clippy/pull/5535)
1760 * Don't trigger [`borrowed_box`] on mutable references. [#5491](https://github.com/rust-lang/rust-clippy/pull/5491)
1761 * Allow `1 << 0` in [`identity_op`]. [#5602](https://github.com/rust-lang/rust-clippy/pull/5602)
1762 * Allow `use super::*;` glob imports in [`wildcard_imports`]. [#5564](https://github.com/rust-lang/rust-clippy/pull/5564)
1763 * Whitelist more words in [`doc_markdown`]. [#5611](https://github.com/rust-lang/rust-clippy/pull/5611)
1764 * Skip dev and build deps in [`multiple_crate_versions`]. [#5636](https://github.com/rust-lang/rust-clippy/pull/5636)
1765 * Honor `allow` attribute on arguments in [`ptr_arg`]. [#5647](https://github.com/rust-lang/rust-clippy/pull/5647)
1766 * Honor lint level attributes for [`redundant_field_names`], [`just_underscores_and_digits`], [`many_single_char_names`]
1767 and [`similar_names`]. [#5651](https://github.com/rust-lang/rust-clippy/pull/5651)
1768 * Ignore calls to `len` in [`or_fun_call`]. [#4429](https://github.com/rust-lang/rust-clippy/pull/4429)
1770 ### Suggestion Improvements
1772 * Simplify suggestions in [`manual_memcpy`]. [#5536](https://github.com/rust-lang/rust-clippy/pull/5536)
1773 * Fix suggestion in [`redundant_pattern_matching`] for macros. [#5511](https://github.com/rust-lang/rust-clippy/pull/5511)
1774 * Avoid suggesting `copied()` for mutable references in [`map_clone`]. [#5530](https://github.com/rust-lang/rust-clippy/pull/5530)
1775 * Improve help message for [`clone_double_ref`]. [#5547](https://github.com/rust-lang/rust-clippy/pull/5547)
1779 * Fix ICE caused in unwrap module. [#5590](https://github.com/rust-lang/rust-clippy/pull/5590)
1780 * Fix ICE on rustc test issue-69020-assoc-const-arith-overflow.rs [#5499](https://github.com/rust-lang/rust-clippy/pull/5499)
1784 * Clarify the documentation of [`unnecessary_mut_passed`]. [#5639](https://github.com/rust-lang/rust-clippy/pull/5639)
1785 * Extend example for [`unneeded_field_pattern`]. [#5541](https://github.com/rust-lang/rust-clippy/pull/5541)
1791 [204bb9b...891e1a8](https://github.com/rust-lang/rust-clippy/compare/204bb9b...891e1a8)
1795 * [`explicit_deref_methods`] [#5226](https://github.com/rust-lang/rust-clippy/pull/5226)
1796 * [`implicit_saturating_sub`] [#5427](https://github.com/rust-lang/rust-clippy/pull/5427)
1797 * [`macro_use_imports`] [#5230](https://github.com/rust-lang/rust-clippy/pull/5230)
1798 * [`verbose_file_reads`] [#5272](https://github.com/rust-lang/rust-clippy/pull/5272)
1799 * [`future_not_send`] [#5423](https://github.com/rust-lang/rust-clippy/pull/5423)
1800 * [`redundant_pub_crate`] [#5319](https://github.com/rust-lang/rust-clippy/pull/5319)
1801 * [`large_const_arrays`] [#5248](https://github.com/rust-lang/rust-clippy/pull/5248)
1802 * [`result_map_or_into_option`] [#5415](https://github.com/rust-lang/rust-clippy/pull/5415)
1803 * [`redundant_allocation`] [#5349](https://github.com/rust-lang/rust-clippy/pull/5349)
1804 * [`fn_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
1805 * [`vtable_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
1808 ### Moves and Deprecations
1810 * Deprecate [`replace_consts`] lint [#5380](https://github.com/rust-lang/rust-clippy/pull/5380)
1811 * Move [`cognitive_complexity`] to nursery [#5428](https://github.com/rust-lang/rust-clippy/pull/5428)
1812 * Move [`useless_transmute`] to nursery [#5364](https://github.com/rust-lang/rust-clippy/pull/5364)
1813 * Downgrade [`inefficient_to_string`] to pedantic [#5412](https://github.com/rust-lang/rust-clippy/pull/5412)
1814 * Downgrade [`option_option`] to pedantic [#5401](https://github.com/rust-lang/rust-clippy/pull/5401)
1815 * Downgrade [`unreadable_literal`] to pedantic [#5419](https://github.com/rust-lang/rust-clippy/pull/5419)
1816 * Downgrade [`let_unit_value`] to pedantic [#5409](https://github.com/rust-lang/rust-clippy/pull/5409)
1817 * Downgrade [`trivially_copy_pass_by_ref`] to pedantic [#5410](https://github.com/rust-lang/rust-clippy/pull/5410)
1818 * Downgrade [`implicit_hasher`] to pedantic [#5411](https://github.com/rust-lang/rust-clippy/pull/5411)
1822 * On _nightly_ you can now use `cargo clippy --fix -Z unstable-options` to
1823 auto-fix lints that support this [#5363](https://github.com/rust-lang/rust-clippy/pull/5363)
1824 * Make [`redundant_clone`] also trigger on cases where the cloned value is not
1825 consumed. [#5304](https://github.com/rust-lang/rust-clippy/pull/5304)
1826 * Expand [`integer_arithmetic`] to also disallow bit-shifting [#5430](https://github.com/rust-lang/rust-clippy/pull/5430)
1827 * [`option_as_ref_deref`] now detects more deref cases [#5425](https://github.com/rust-lang/rust-clippy/pull/5425)
1828 * [`large_enum_variant`] now report the sizes of the largest and second-largest variants [#5466](https://github.com/rust-lang/rust-clippy/pull/5466)
1829 * [`bool_comparison`] now also checks for inequality comparisons that can be
1830 written more concisely [#5365](https://github.com/rust-lang/rust-clippy/pull/5365)
1831 * Expand [`clone_on_copy`] to work in method call arguments as well [#5441](https://github.com/rust-lang/rust-clippy/pull/5441)
1832 * [`redundant_pattern_matching`] now also handles `while let` [#5483](https://github.com/rust-lang/rust-clippy/pull/5483)
1833 * [`integer_arithmetic`] now also lints references of integers [#5329](https://github.com/rust-lang/rust-clippy/pull/5329)
1834 * Expand [`float_cmp_const`] to also work on arrays [#5345](https://github.com/rust-lang/rust-clippy/pull/5345)
1835 * Trigger [`map_flatten`] when map is called on an `Option` [#5473](https://github.com/rust-lang/rust-clippy/pull/5473)
1837 ### False Positive Fixes
1839 * [`many_single_char_names`] [#5468](https://github.com/rust-lang/rust-clippy/pull/5468)
1840 * [`should_implement_trait`] [#5437](https://github.com/rust-lang/rust-clippy/pull/5437)
1841 * [`unused_self`] [#5387](https://github.com/rust-lang/rust-clippy/pull/5387)
1842 * [`redundant_clone`] [#5453](https://github.com/rust-lang/rust-clippy/pull/5453)
1843 * [`precedence`] [#5445](https://github.com/rust-lang/rust-clippy/pull/5445)
1844 * [`suspicious_op_assign_impl`] [#5424](https://github.com/rust-lang/rust-clippy/pull/5424)
1845 * [`needless_lifetimes`] [#5293](https://github.com/rust-lang/rust-clippy/pull/5293)
1846 * [`redundant_pattern`] [#5287](https://github.com/rust-lang/rust-clippy/pull/5287)
1847 * [`inconsistent_digit_grouping`] [#5451](https://github.com/rust-lang/rust-clippy/pull/5451)
1850 ### Suggestion Improvements
1852 * Improved [`question_mark`] lint suggestion so that it doesn't add redundant `as_ref()` [#5481](https://github.com/rust-lang/rust-clippy/pull/5481)
1853 * Improve the suggested placeholder in [`option_map_unit_fn`] [#5292](https://github.com/rust-lang/rust-clippy/pull/5292)
1854 * Improve suggestion for [`match_single_binding`] when triggered inside a closure [#5350](https://github.com/rust-lang/rust-clippy/pull/5350)
1858 * Handle the unstable `trivial_bounds` feature [#5296](https://github.com/rust-lang/rust-clippy/pull/5296)
1859 * `shadow_*` lints [#5297](https://github.com/rust-lang/rust-clippy/pull/5297)
1863 * Fix documentation generation for configurable lints [#5353](https://github.com/rust-lang/rust-clippy/pull/5353)
1864 * Update documentation for [`new_ret_no_self`] [#5448](https://github.com/rust-lang/rust-clippy/pull/5448)
1865 * The documentation for [`option_option`] now suggest using a tri-state enum [#5403](https://github.com/rust-lang/rust-clippy/pull/5403)
1866 * Fix bit mask example in [`verbose_bit_mask`] documentation [#5454](https://github.com/rust-lang/rust-clippy/pull/5454)
1867 * [`wildcard_imports`] documentation now mentions that `use ...::prelude::*` is
1868 not linted [#5312](https://github.com/rust-lang/rust-clippy/pull/5312)
1874 [4ee1206...204bb9b](https://github.com/rust-lang/rust-clippy/compare/4ee1206...204bb9b)
1878 * [`imprecise_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
1879 * [`suboptimal_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
1880 * [`wildcard_imports`] [#5029](https://github.com/rust-lang/rust-clippy/pull/5029)
1881 * [`single_component_path_imports`] [#5058](https://github.com/rust-lang/rust-clippy/pull/5058)
1882 * [`match_single_binding`] [#5061](https://github.com/rust-lang/rust-clippy/pull/5061)
1883 * [`let_underscore_lock`] [#5101](https://github.com/rust-lang/rust-clippy/pull/5101)
1884 * [`struct_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
1885 * [`fn_params_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
1886 * [`option_env_unwrap`] [#5148](https://github.com/rust-lang/rust-clippy/pull/5148)
1887 * [`lossy_float_literal`] [#5202](https://github.com/rust-lang/rust-clippy/pull/5202)
1888 * [`rest_pat_in_fully_bound_structs`] [#5258](https://github.com/rust-lang/rust-clippy/pull/5258)
1890 ### Moves and Deprecations
1892 * Move [`unneeded_field_pattern`] to pedantic group [#5200](https://github.com/rust-lang/rust-clippy/pull/5200)
1896 * Make [`missing_errors_doc`] lint also trigger on `async` functions
1897 [#5181](https://github.com/rust-lang/rust-clippy/pull/5181)
1898 * Add more constants to [`approx_constant`] [#5193](https://github.com/rust-lang/rust-clippy/pull/5193)
1899 * Extend [`question_mark`] lint [#5266](https://github.com/rust-lang/rust-clippy/pull/5266)
1901 ### False Positive Fixes
1903 * [`use_debug`] [#5047](https://github.com/rust-lang/rust-clippy/pull/5047)
1904 * [`unnecessary_unwrap`] [#5132](https://github.com/rust-lang/rust-clippy/pull/5132)
1905 * [`zero_prefixed_literal`] [#5170](https://github.com/rust-lang/rust-clippy/pull/5170)
1906 * [`missing_const_for_fn`] [#5216](https://github.com/rust-lang/rust-clippy/pull/5216)
1908 ### Suggestion Improvements
1910 * Improve suggestion when blocks of code are suggested [#5134](https://github.com/rust-lang/rust-clippy/pull/5134)
1914 * `misc_early` lints [#5129](https://github.com/rust-lang/rust-clippy/pull/5129)
1915 * [`missing_errors_doc`] [#5213](https://github.com/rust-lang/rust-clippy/pull/5213)
1916 * Fix ICE when evaluating `usize`s [#5256](https://github.com/rust-lang/rust-clippy/pull/5256)
1920 * Improve documentation of [`iter_nth_zero`]
1921 * Add documentation pages for stable releases [#5171](https://github.com/rust-lang/rust-clippy/pull/5171)
1925 * Clippy now completely runs on GitHub Actions [#5190](https://github.com/rust-lang/rust-clippy/pull/5190)
1932 [69f99e7...4ee1206](https://github.com/rust-lang/rust-clippy/compare/69f99e7...4ee1206)
1936 * [`filetype_is_file`] [#4543](https://github.com/rust-lang/rust-clippy/pull/4543)
1937 * [`let_underscore_must_use`] [#4823](https://github.com/rust-lang/rust-clippy/pull/4823)
1938 * [`modulo_arithmetic`] [#4867](https://github.com/rust-lang/rust-clippy/pull/4867)
1939 * [`mem_replace_with_default`] [#4881](https://github.com/rust-lang/rust-clippy/pull/4881)
1940 * [`mutable_key_type`] [#4885](https://github.com/rust-lang/rust-clippy/pull/4885)
1941 * [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
1942 * [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
1943 * [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
1944 * `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
1945 * [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
1947 ### Moves and Deprecations
1949 * Move [`transmute_float_to_int`] from nursery to complexity group
1950 [#5015](https://github.com/rust-lang/rust-clippy/pull/5015)
1951 * Move [`range_plus_one`] to pedantic group [#5057](https://github.com/rust-lang/rust-clippy/pull/5057)
1952 * Move [`debug_assert_with_mut_call`] to nursery group [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
1953 * Deprecate `unused_label` [#4930](https://github.com/rust-lang/rust-clippy/pull/4930)
1957 * Lint vectored IO in [`unused_io_amount`] [#5027](https://github.com/rust-lang/rust-clippy/pull/5027)
1958 * Make [`vec_box`] configurable by adding a size threshold [#5081](https://github.com/rust-lang/rust-clippy/pull/5081)
1959 * Also lint constants in [`cmp_nan`] [#4910](https://github.com/rust-lang/rust-clippy/pull/4910)
1960 * Fix false negative in [`expect_fun_call`] [#4915](https://github.com/rust-lang/rust-clippy/pull/4915)
1961 * Fix false negative in [`redundant_clone`] [#5017](https://github.com/rust-lang/rust-clippy/pull/5017)
1963 ### False Positive Fixes
1965 * [`map_clone`] [#4937](https://github.com/rust-lang/rust-clippy/pull/4937)
1966 * [`replace_consts`] [#4977](https://github.com/rust-lang/rust-clippy/pull/4977)
1967 * [`let_and_return`] [#5008](https://github.com/rust-lang/rust-clippy/pull/5008)
1968 * [`eq_op`] [#5079](https://github.com/rust-lang/rust-clippy/pull/5079)
1969 * [`possible_missing_comma`] [#5083](https://github.com/rust-lang/rust-clippy/pull/5083)
1970 * [`debug_assert_with_mut_call`] [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
1971 * Don't trigger [`let_underscore_must_use`] in external macros
1972 [#5082](https://github.com/rust-lang/rust-clippy/pull/5082)
1973 * Don't trigger [`empty_loop`] in `no_std` crates [#5086](https://github.com/rust-lang/rust-clippy/pull/5086)
1975 ### Suggestion Improvements
1977 * `option_map_unwrap_or` [#4634](https://github.com/rust-lang/rust-clippy/pull/4634)
1978 * [`wildcard_enum_match_arm`] [#4934](https://github.com/rust-lang/rust-clippy/pull/4934)
1979 * [`cognitive_complexity`] [#4935](https://github.com/rust-lang/rust-clippy/pull/4935)
1980 * [`decimal_literal_representation`] [#4956](https://github.com/rust-lang/rust-clippy/pull/4956)
1981 * `unknown_clippy_lints` [#4963](https://github.com/rust-lang/rust-clippy/pull/4963)
1982 * [`explicit_into_iter_loop`] [#4978](https://github.com/rust-lang/rust-clippy/pull/4978)
1983 * [`useless_attribute`] [#5022](https://github.com/rust-lang/rust-clippy/pull/5022)
1984 * `if_let_some_result` [#5032](https://github.com/rust-lang/rust-clippy/pull/5032)
1988 * [`unsound_collection_transmute`] [#4975](https://github.com/rust-lang/rust-clippy/pull/4975)
1992 * Improve documentation of [`empty_enum`], [`replace_consts`], [`redundant_clone`], and [`iterator_step_by_zero`]
1999 [c8e3cfb...69f99e7](https://github.com/rust-lang/rust-clippy/compare/c8e3cfb...69f99e7)
2002 * [`exit`] [#4697](https://github.com/rust-lang/rust-clippy/pull/4697)
2003 * [`to_digit_is_some`] [#4801](https://github.com/rust-lang/rust-clippy/pull/4801)
2004 * [`tabs_in_doc_comments`] [#4806](https://github.com/rust-lang/rust-clippy/pull/4806)
2005 * [`large_stack_arrays`] [#4807](https://github.com/rust-lang/rust-clippy/pull/4807)
2006 * [`same_functions_in_if_condition`] [#4814](https://github.com/rust-lang/rust-clippy/pull/4814)
2007 * [`zst_offset`] [#4816](https://github.com/rust-lang/rust-clippy/pull/4816)
2008 * [`as_conversions`] [#4821](https://github.com/rust-lang/rust-clippy/pull/4821)
2009 * [`missing_errors_doc`] [#4884](https://github.com/rust-lang/rust-clippy/pull/4884)
2010 * [`transmute_float_to_int`] [#4889](https://github.com/rust-lang/rust-clippy/pull/4889)
2011 * Remove plugin interface, see
2012 [Inside Rust Blog](https://blog.rust-lang.org/inside-rust/2019/11/04/Clippy-removes-plugin-interface.html) for
2013 details [#4714](https://github.com/rust-lang/rust-clippy/pull/4714)
2014 * Move [`use_self`] to nursery group [#4863](https://github.com/rust-lang/rust-clippy/pull/4863)
2015 * Deprecate `into_iter_on_array` [#4788](https://github.com/rust-lang/rust-clippy/pull/4788)
2016 * Expand [`string_lit_as_bytes`] to also trigger when literal has escapes
2017 [#4808](https://github.com/rust-lang/rust-clippy/pull/4808)
2018 * Fix false positive in `comparison_chain` [#4842](https://github.com/rust-lang/rust-clippy/pull/4842)
2019 * Fix false positive in `while_immutable_condition` [#4730](https://github.com/rust-lang/rust-clippy/pull/4730)
2020 * Fix false positive in `explicit_counter_loop` [#4803](https://github.com/rust-lang/rust-clippy/pull/4803)
2021 * Fix false positive in `must_use_candidate` [#4794](https://github.com/rust-lang/rust-clippy/pull/4794)
2022 * Fix false positive in `print_with_newline` and `write_with_newline`
2023 [#4769](https://github.com/rust-lang/rust-clippy/pull/4769)
2024 * Fix false positive in `derive_hash_xor_eq` [#4766](https://github.com/rust-lang/rust-clippy/pull/4766)
2025 * Fix false positive in `missing_inline_in_public_items` [#4870](https://github.com/rust-lang/rust-clippy/pull/4870)
2026 * Fix false positive in `string_add` [#4880](https://github.com/rust-lang/rust-clippy/pull/4880)
2027 * Fix false positive in `float_arithmetic` [#4851](https://github.com/rust-lang/rust-clippy/pull/4851)
2028 * Fix false positive in `cast_sign_loss` [#4883](https://github.com/rust-lang/rust-clippy/pull/4883)
2029 * Fix false positive in `manual_swap` [#4877](https://github.com/rust-lang/rust-clippy/pull/4877)
2030 * Fix ICEs occurring while checking some block expressions [#4772](https://github.com/rust-lang/rust-clippy/pull/4772)
2031 * Fix ICE in `use_self` [#4776](https://github.com/rust-lang/rust-clippy/pull/4776)
2032 * Fix ICEs related to `const_generics` [#4780](https://github.com/rust-lang/rust-clippy/pull/4780)
2033 * Display help when running `clippy-driver` without arguments, instead of ICEing
2034 [#4810](https://github.com/rust-lang/rust-clippy/pull/4810)
2035 * Clippy has its own ICE message now [#4588](https://github.com/rust-lang/rust-clippy/pull/4588)
2036 * Show deprecated lints in the documentation again [#4757](https://github.com/rust-lang/rust-clippy/pull/4757)
2037 * Improve Documentation by adding positive examples to some lints
2038 [#4832](https://github.com/rust-lang/rust-clippy/pull/4832)
2044 [4e7e71b...c8e3cfb](https://github.com/rust-lang/rust-clippy/compare/4e7e71b...c8e3cfb)
2047 * [`unneeded_wildcard_pattern`] [#4537](https://github.com/rust-lang/rust-clippy/pull/4537)
2048 * [`needless_doctest_main`] [#4603](https://github.com/rust-lang/rust-clippy/pull/4603)
2049 * [`suspicious_unary_op_formatting`] [#4615](https://github.com/rust-lang/rust-clippy/pull/4615)
2050 * [`debug_assert_with_mut_call`] [#4680](https://github.com/rust-lang/rust-clippy/pull/4680)
2051 * [`unused_self`] [#4619](https://github.com/rust-lang/rust-clippy/pull/4619)
2052 * [`inefficient_to_string`] [#4683](https://github.com/rust-lang/rust-clippy/pull/4683)
2053 * [`must_use_unit`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2054 * [`must_use_candidate`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2055 * [`double_must_use`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2056 * [`comparison_chain`] [#4569](https://github.com/rust-lang/rust-clippy/pull/4569)
2057 * [`unsound_collection_transmute`] [#4592](https://github.com/rust-lang/rust-clippy/pull/4592)
2058 * [`panic`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2059 * [`unreachable`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2060 * [`todo`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2061 * `option_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2062 * `result_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2063 * Move `redundant_clone` to perf group [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
2064 * Move `manual_mul_add` to nursery group [#4736](https://github.com/rust-lang/rust-clippy/pull/4736)
2065 * 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)
2066 * Expand `integer_arithmetic` to also detect mutating arithmetic like `+=` [#4585](https://github.com/rust-lang/rust-clippy/pull/4585)
2067 * Fix false positive in `nonminimal_bool` [#4568](https://github.com/rust-lang/rust-clippy/pull/4568)
2068 * Fix false positive in `missing_safety_doc` [#4611](https://github.com/rust-lang/rust-clippy/pull/4611)
2069 * Fix false positive in `cast_sign_loss` [#4614](https://github.com/rust-lang/rust-clippy/pull/4614)
2070 * Fix false positive in `redundant_clone` [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
2071 * Fix false positive in `try_err` [#4721](https://github.com/rust-lang/rust-clippy/pull/4721)
2072 * Fix false positive in `toplevel_ref_arg` [#4570](https://github.com/rust-lang/rust-clippy/pull/4570)
2073 * Fix false positive in `multiple_inherent_impl` [#4593](https://github.com/rust-lang/rust-clippy/pull/4593)
2074 * Improve more suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4575](https://github.com/rust-lang/rust-clippy/pull/4575)
2075 * Improve suggestion for `zero_ptr` [#4599](https://github.com/rust-lang/rust-clippy/pull/4599)
2076 * Improve suggestion for `explicit_counter_loop` [#4691](https://github.com/rust-lang/rust-clippy/pull/4691)
2077 * Improve suggestion for `mul_add` [#4602](https://github.com/rust-lang/rust-clippy/pull/4602)
2078 * Improve suggestion for `assertions_on_constants` [#4635](https://github.com/rust-lang/rust-clippy/pull/4635)
2079 * Fix ICE in `use_self` [#4671](https://github.com/rust-lang/rust-clippy/pull/4671)
2080 * Fix ICE when encountering const casts [#4590](https://github.com/rust-lang/rust-clippy/pull/4590)
2086 [3aea860...4e7e71b](https://github.com/rust-lang/rust-clippy/compare/3aea860...4e7e71b)
2089 * [`uninit_assumed_init`] [#4479](https://github.com/rust-lang/rust-clippy/pull/4479)
2090 * [`flat_map_identity`] [#4231](https://github.com/rust-lang/rust-clippy/pull/4231)
2091 * [`missing_safety_doc`] [#4535](https://github.com/rust-lang/rust-clippy/pull/4535)
2092 * [`mem_replace_with_uninit`] [#4511](https://github.com/rust-lang/rust-clippy/pull/4511)
2093 * [`suspicious_map`] [#4394](https://github.com/rust-lang/rust-clippy/pull/4394)
2094 * `option_and_then_some` [#4386](https://github.com/rust-lang/rust-clippy/pull/4386)
2095 * [`manual_saturating_arithmetic`] [#4498](https://github.com/rust-lang/rust-clippy/pull/4498)
2096 * 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)
2097 * Move `type_repetition_in_bounds` to pedantic group [#4403](https://github.com/rust-lang/rust-clippy/pull/4403)
2098 * Move `cast_lossless` to pedantic group [#4539](https://github.com/rust-lang/rust-clippy/pull/4539)
2099 * `temporary_cstring_as_ptr` now catches more cases [#4425](https://github.com/rust-lang/rust-clippy/pull/4425)
2100 * `use_self` now works in constructors, too [#4525](https://github.com/rust-lang/rust-clippy/pull/4525)
2101 * `cargo_common_metadata` now checks for license files [#4518](https://github.com/rust-lang/rust-clippy/pull/4518)
2102 * `cognitive_complexity` now includes the measured complexity in the warning message [#4469](https://github.com/rust-lang/rust-clippy/pull/4469)
2103 * Fix false positives in `block_in_if_*` lints [#4458](https://github.com/rust-lang/rust-clippy/pull/4458)
2104 * Fix false positive in `cast_lossless` [#4473](https://github.com/rust-lang/rust-clippy/pull/4473)
2105 * Fix false positive in `clone_on_copy` [#4411](https://github.com/rust-lang/rust-clippy/pull/4411)
2106 * Fix false positive in `deref_addrof` [#4487](https://github.com/rust-lang/rust-clippy/pull/4487)
2107 * Fix false positive in `too_many_lines` [#4490](https://github.com/rust-lang/rust-clippy/pull/4490)
2108 * Fix false positive in `new_ret_no_self` [#4365](https://github.com/rust-lang/rust-clippy/pull/4365)
2109 * Fix false positive in `manual_swap` [#4478](https://github.com/rust-lang/rust-clippy/pull/4478)
2110 * Fix false positive in `missing_const_for_fn` [#4450](https://github.com/rust-lang/rust-clippy/pull/4450)
2111 * Fix false positive in `extra_unused_lifetimes` [#4477](https://github.com/rust-lang/rust-clippy/pull/4477)
2112 * Fix false positive in `inherent_to_string` [#4460](https://github.com/rust-lang/rust-clippy/pull/4460)
2113 * Fix false positive in `map_entry` [#4495](https://github.com/rust-lang/rust-clippy/pull/4495)
2114 * Fix false positive in `unused_unit` [#4445](https://github.com/rust-lang/rust-clippy/pull/4445)
2115 * Fix false positive in `redundant_pattern` [#4489](https://github.com/rust-lang/rust-clippy/pull/4489)
2116 * Fix false positive in `wrong_self_convention` [#4369](https://github.com/rust-lang/rust-clippy/pull/4369)
2117 * Improve various suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4558](https://github.com/rust-lang/rust-clippy/pull/4558)
2118 * Improve suggestions for `redundant_pattern_matching` [#4352](https://github.com/rust-lang/rust-clippy/pull/4352)
2119 * Improve suggestions for `explicit_write` [#4544](https://github.com/rust-lang/rust-clippy/pull/4544)
2120 * Improve suggestion for `or_fun_call` [#4522](https://github.com/rust-lang/rust-clippy/pull/4522)
2121 * Improve suggestion for `match_as_ref` [#4446](https://github.com/rust-lang/rust-clippy/pull/4446)
2122 * Improve suggestion for `unnecessary_fold_span` [#4382](https://github.com/rust-lang/rust-clippy/pull/4382)
2123 * Add suggestions for `unseparated_literal_suffix` [#4401](https://github.com/rust-lang/rust-clippy/pull/4401)
2124 * Add suggestions for `char_lit_as_u8` [#4418](https://github.com/rust-lang/rust-clippy/pull/4418)
2130 [e3cb40e...3aea860](https://github.com/rust-lang/rust-clippy/compare/e3cb40e...3aea860)
2133 * [`main_recursion`] [#4203](https://github.com/rust-lang/rust-clippy/pull/4203)
2134 * [`inherent_to_string`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
2135 * [`inherent_to_string_shadow_display`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
2136 * [`type_repetition_in_bounds`] [#3766](https://github.com/rust-lang/rust-clippy/pull/3766)
2137 * [`try_err`] [#4222](https://github.com/rust-lang/rust-clippy/pull/4222)
2138 * Move `{unnnecessary,panicking}_unwrap` out of nursery [#4307](https://github.com/rust-lang/rust-clippy/pull/4307)
2139 * Extend the `use_self` lint to suggest uses of `Self::Variant` [#4308](https://github.com/rust-lang/rust-clippy/pull/4308)
2140 * Improve suggestion for needless return [#4262](https://github.com/rust-lang/rust-clippy/pull/4262)
2141 * Add auto-fixable suggestion for `let_unit` [#4337](https://github.com/rust-lang/rust-clippy/pull/4337)
2142 * Fix false positive in `pub_enum_variant_names` and `enum_variant_names` [#4345](https://github.com/rust-lang/rust-clippy/pull/4345)
2143 * Fix false positive in `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
2144 * Fix false positive in `string_lit_as_bytes` [#4233](https://github.com/rust-lang/rust-clippy/pull/4233)
2145 * Fix false positive in `needless_lifetimes` [#4266](https://github.com/rust-lang/rust-clippy/pull/4266)
2146 * Fix false positive in `float_cmp` [#4275](https://github.com/rust-lang/rust-clippy/pull/4275)
2147 * Fix false positives in `needless_return` [#4274](https://github.com/rust-lang/rust-clippy/pull/4274)
2148 * Fix false negative in `match_same_arms` [#4246](https://github.com/rust-lang/rust-clippy/pull/4246)
2149 * Fix incorrect suggestion for `needless_bool` [#4335](https://github.com/rust-lang/rust-clippy/pull/4335)
2150 * Improve suggestion for `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
2151 * Improve suggestion for `single_char_literal` [#4361](https://github.com/rust-lang/rust-clippy/pull/4361)
2152 * Improve suggestion for `len_zero` [#4314](https://github.com/rust-lang/rust-clippy/pull/4314)
2153 * Fix ICE in `implicit_hasher` [#4268](https://github.com/rust-lang/rust-clippy/pull/4268)
2154 * Fix allow bug in `trivially_copy_pass_by_ref` [#4250](https://github.com/rust-lang/rust-clippy/pull/4250)
2160 [082cfa7...e3cb40e](https://github.com/rust-lang/rust-clippy/compare/082cfa7...e3cb40e)
2163 * [`checked_conversions`] [#4088](https://github.com/rust-lang/rust-clippy/pull/4088)
2164 * [`get_last_with_len`] [#3832](https://github.com/rust-lang/rust-clippy/pull/3832)
2165 * [`integer_division`] [#4195](https://github.com/rust-lang/rust-clippy/pull/4195)
2166 * Renamed Lint: `const_static_lifetime` is now called [`redundant_static_lifetimes`].
2167 The lint now covers statics in addition to consts [#4162](https://github.com/rust-lang/rust-clippy/pull/4162)
2168 * [`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)
2169 * [`needless_return`] now works with void functions [#4220](https://github.com/rust-lang/rust-clippy/pull/4220)
2170 * Fix false positive in [`redundant_closure`] [#4190](https://github.com/rust-lang/rust-clippy/pull/4190)
2171 * Fix false positive in [`useless_attribute`] [#4107](https://github.com/rust-lang/rust-clippy/pull/4107)
2172 * Fix incorrect suggestion for [`float_cmp`] [#4214](https://github.com/rust-lang/rust-clippy/pull/4214)
2173 * Add suggestions for [`print_with_newline`] and [`write_with_newline`] [#4136](https://github.com/rust-lang/rust-clippy/pull/4136)
2174 * Improve suggestions for `option_map_unwrap_or_else` and `result_map_unwrap_or_else` [#4164](https://github.com/rust-lang/rust-clippy/pull/4164)
2175 * Improve suggestions for [`non_ascii_literal`] [#4119](https://github.com/rust-lang/rust-clippy/pull/4119)
2176 * Improve diagnostics for [`let_and_return`] [#4137](https://github.com/rust-lang/rust-clippy/pull/4137)
2177 * Improve diagnostics for [`trivially_copy_pass_by_ref`] [#4071](https://github.com/rust-lang/rust-clippy/pull/4071)
2178 * Add macro check for [`unreadable_literal`] [#4099](https://github.com/rust-lang/rust-clippy/pull/4099)
2184 [eb9f9b1...082cfa7](https://github.com/rust-lang/rust-clippy/compare/eb9f9b1...082cfa7)
2186 * New lints: [`find_map`], [`filter_map_next`] [#4039](https://github.com/rust-lang/rust-clippy/pull/4039)
2187 * New lint: [`path_buf_push_overwrite`] [#3954](https://github.com/rust-lang/rust-clippy/pull/3954)
2188 * Move `path_buf_push_overwrite` to the nursery [#4013](https://github.com/rust-lang/rust-clippy/pull/4013)
2189 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
2190 * Allow allowing of [`toplevel_ref_arg`] lint [#4007](https://github.com/rust-lang/rust-clippy/pull/4007)
2191 * Fix false negative in [`or_fun_call`] pertaining to nested constructors [#4084](https://github.com/rust-lang/rust-clippy/pull/4084)
2192 * Fix false positive in [`or_fun_call`] pertaining to enum variant constructors [#4018](https://github.com/rust-lang/rust-clippy/pull/4018)
2193 * Fix false positive in [`useless_let_if_seq`] pertaining to interior mutability [#4035](https://github.com/rust-lang/rust-clippy/pull/4035)
2194 * Fix false positive in [`redundant_closure`] pertaining to non-function types [#4008](https://github.com/rust-lang/rust-clippy/pull/4008)
2195 * Fix false positive in [`let_and_return`] pertaining to attributes on `let`s [#4024](https://github.com/rust-lang/rust-clippy/pull/4024)
2196 * Fix false positive in [`module_name_repetitions`] lint pertaining to attributes [#4006](https://github.com/rust-lang/rust-clippy/pull/4006)
2197 * Fix false positive on [`assertions_on_constants`] pertaining to `debug_assert!` [#3989](https://github.com/rust-lang/rust-clippy/pull/3989)
2198 * 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)
2199 * Improve suggestion for [`search_is_some`] [#4049](https://github.com/rust-lang/rust-clippy/pull/4049)
2200 * Improve suggestion applicability for [`naive_bytecount`] [#3984](https://github.com/rust-lang/rust-clippy/pull/3984)
2201 * Improve suggestion applicability for [`while_let_loop`] [#3975](https://github.com/rust-lang/rust-clippy/pull/3975)
2202 * Improve diagnostics for [`too_many_arguments`] [#4053](https://github.com/rust-lang/rust-clippy/pull/4053)
2203 * Improve diagnostics for [`cast_lossless`] [#4021](https://github.com/rust-lang/rust-clippy/pull/4021)
2204 * Deal with macro checks in desugarings better [#4082](https://github.com/rust-lang/rust-clippy/pull/4082)
2205 * Add macro check for [`unnecessary_cast`] [#4026](https://github.com/rust-lang/rust-clippy/pull/4026)
2206 * Remove [`approx_constant`]'s documentation's "Known problems" section. [#4027](https://github.com/rust-lang/rust-clippy/pull/4027)
2207 * Fix ICE in [`suspicious_else_formatting`] [#3960](https://github.com/rust-lang/rust-clippy/pull/3960)
2208 * Fix ICE in [`decimal_literal_representation`] [#3931](https://github.com/rust-lang/rust-clippy/pull/3931)
2215 [1fac380..37f5c1e](https://github.com/rust-lang/rust-clippy/compare/1fac380...37f5c1e)
2217 * New lint: `drop_bounds` to detect `T: Drop` bounds
2218 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
2219 * Rename `cyclomatic_complexity` to [`cognitive_complexity`], start work on making lint more practical for Rust code
2220 * Move [`get_unwrap`] to the restriction category
2221 * Improve suggestions for [`iter_cloned_collect`]
2222 * Improve suggestions for [`cast_lossless`] to suggest suffixed literals
2223 * Fix false positives in [`print_with_newline`] and [`write_with_newline`] pertaining to raw strings
2224 * Fix false positive in [`needless_range_loop`] pertaining to structs without a `.iter()`
2225 * Fix false positive in [`bool_comparison`] pertaining to non-bool types
2226 * Fix false positive in [`redundant_closure`] pertaining to differences in borrows
2227 * Fix false positive in `option_map_unwrap_or` on non-copy types
2228 * Fix false positives in [`missing_const_for_fn`] pertaining to macros and trait method impls
2229 * Fix false positive in [`needless_pass_by_value`] pertaining to procedural macros
2230 * Fix false positive in [`needless_continue`] pertaining to loop labels
2231 * Fix false positive for [`boxed_local`] pertaining to arguments moved into closures
2232 * Fix false positive for [`use_self`] in nested functions
2233 * Fix suggestion for [`expect_fun_call`] (https://github.com/rust-lang/rust-clippy/pull/3846)
2234 * Fix suggestion for [`explicit_counter_loop`] to deal with parenthesizing range variables
2235 * Fix suggestion for [`single_char_pattern`] to correctly escape single quotes
2236 * Avoid triggering [`redundant_closure`] in macros
2237 * 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)
2243 [1b89724...1fac380](https://github.com/rust-lang/rust-clippy/compare/1b89724...1fac380)
2245 * New lint: [`assertions_on_constants`] to detect for example `assert!(true)`
2246 * New lint: [`dbg_macro`] to detect uses of the `dbg!` macro
2247 * New lint: [`missing_const_for_fn`] that can suggest functions to be made `const`
2248 * New lint: [`too_many_lines`] to detect functions with excessive LOC. It can be
2249 configured using the `too-many-lines-threshold` configuration.
2250 * New lint: [`wildcard_enum_match_arm`] to check for wildcard enum matches using `_`
2251 * Expand `redundant_closure` to also work for methods (not only functions)
2252 * Fix ICEs in `vec_box`, `needless_pass_by_value` and `implicit_hasher`
2253 * Fix false positive in `cast_sign_loss`
2254 * Fix false positive in `integer_arithmetic`
2255 * Fix false positive in `unit_arg`
2256 * Fix false positives in `implicit_return`
2257 * Add suggestion to `explicit_write`
2258 * Improve suggestions for `question_mark` lint
2259 * Fix incorrect suggestion for `cast_lossless`
2260 * Fix incorrect suggestion for `expect_fun_call`
2261 * Fix incorrect suggestion for `needless_bool`
2262 * Fix incorrect suggestion for `needless_range_loop`
2263 * Fix incorrect suggestion for `use_self`
2264 * Fix incorrect suggestion for `while_let_on_iterator`
2265 * Clippy is now slightly easier to invoke in non-cargo contexts. See
2266 [#3665][pull3665] for more details.
2267 * We now have [improved documentation][adding_lints] on how to add new lints
2273 [b2601be...1b89724](https://github.com/rust-lang/rust-clippy/compare/b2601be...1b89724)
2275 * New lints: [`implicit_return`], [`vec_box`], [`cast_ref_to_mut`]
2276 * The `rust-clippy` repository is now part of the `rust-lang` org.
2277 * Rename `stutter` to `module_name_repetitions`
2278 * Merge `new_without_default_derive` into `new_without_default` lint
2279 * Move `large_digit_groups` from `style` group to `pedantic`
2280 * Expand `bool_comparison` to check for `<`, `<=`, `>`, `>=`, and `!=`
2281 comparisons against booleans
2282 * Expand `no_effect` to detect writes to constants such as `A_CONST.field = 2`
2283 * Expand `redundant_clone` to work on struct fields
2284 * Expand `suspicious_else_formatting` to detect `if .. {..} {..}`
2285 * Expand `use_self` to work on tuple structs and also in local macros
2286 * Fix ICE in `result_map_unit_fn` and `option_map_unit_fn`
2287 * Fix false positives in `implicit_return`
2288 * Fix false positives in `use_self`
2289 * Fix false negative in `clone_on_copy`
2290 * Fix false positive in `doc_markdown`
2291 * Fix false positive in `empty_loop`
2292 * Fix false positive in `if_same_then_else`
2293 * Fix false positive in `infinite_iter`
2294 * Fix false positive in `question_mark`
2295 * Fix false positive in `useless_asref`
2296 * Fix false positive in `wildcard_dependencies`
2297 * Fix false positive in `write_with_newline`
2298 * Add suggestion to `explicit_write`
2299 * Improve suggestions for `question_mark` lint
2300 * Fix incorrect suggestion for `get_unwrap`
2306 [2e26fdc2...b2601be](https://github.com/rust-lang/rust-clippy/compare/2e26fdc2...b2601be)
2308 * New lints: [`slow_vector_initialization`], `mem_discriminant_non_enum`,
2309 [`redundant_clone`], [`wildcard_dependencies`],
2310 [`into_iter_on_ref`], `into_iter_on_array`, [`deprecated_cfg_attr`],
2311 [`cargo_common_metadata`]
2312 * Add support for `u128` and `i128` to integer related lints
2313 * Add float support to `mistyped_literal_suffixes`
2314 * Fix false positives in `use_self`
2315 * Fix false positives in `missing_comma`
2316 * Fix false positives in `new_ret_no_self`
2317 * Fix false positives in `possible_missing_comma`
2318 * Fix false positive in `integer_arithmetic` in constant items
2319 * Fix false positive in `needless_borrow`
2320 * Fix false positive in `out_of_bounds_indexing`
2321 * Fix false positive in `new_without_default_derive`
2322 * Fix false positive in `string_lit_as_bytes`
2323 * Fix false negative in `out_of_bounds_indexing`
2324 * Fix false negative in `use_self`. It will now also check existential types
2325 * Fix incorrect suggestion for `redundant_closure_call`
2326 * Fix various suggestions that contained expanded macros
2327 * Fix `bool_comparison` triggering 3 times on on on the same code
2328 * Expand `trivially_copy_pass_by_ref` to work on trait methods
2329 * Improve suggestion for `needless_range_loop`
2330 * Move `needless_pass_by_value` from `pedantic` group to `style`
2336 [125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
2338 * Clippy has been relicensed under a dual MIT / Apache license.
2339 See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
2341 * With Rust 1.31, Clippy is no longer available via crates.io. The recommended
2342 installation method is via `rustup component add clippy`.
2343 * New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
2344 [`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
2345 * Fix ICE in `if_let_redundant_pattern_matching`
2346 * Fix ICE in `needless_pass_by_value` when encountering a generic function
2347 argument with a lifetime parameter
2348 * Fix ICE in `needless_range_loop`
2349 * Fix ICE in `single_char_pattern` when encountering a constant value
2350 * Fix false positive in `assign_op_pattern`
2351 * Fix false positive in `boxed_local` on trait implementations
2352 * Fix false positive in `cmp_owned`
2353 * Fix false positive in `collapsible_if` when conditionals have comments
2354 * Fix false positive in `double_parens`
2355 * Fix false positive in `excessive_precision`
2356 * Fix false positive in `explicit_counter_loop`
2357 * Fix false positive in `fn_to_numeric_cast_with_truncation`
2358 * Fix false positive in `map_clone`
2359 * Fix false positive in `new_ret_no_self`
2360 * Fix false positive in `new_without_default` when `new` is unsafe
2361 * Fix false positive in `type_complexity` when using extern types
2362 * Fix false positive in `useless_format`
2363 * Fix false positive in `wrong_self_convention`
2364 * Fix incorrect suggestion for `excessive_precision`
2365 * Fix incorrect suggestion for `expect_fun_call`
2366 * Fix incorrect suggestion for `get_unwrap`
2367 * Fix incorrect suggestion for `useless_format`
2368 * `fn_to_numeric_cast_with_truncation` lint can be disabled again
2369 * Improve suggestions for `manual_memcpy`
2370 * Improve help message for `needless_lifetimes`
2376 [14207503...125907ad](https://github.com/rust-lang/rust-clippy/compare/14207503...125907ad)
2378 * Deprecate `assign_ops` lint
2379 * New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
2380 [`needless_collect`], [`copy_iterator`]
2381 * `cargo clippy -V` now includes the Clippy commit hash of the Rust
2383 * Fix ICE in `implicit_hasher`
2384 * Fix ICE when encountering `println!("{}" a);`
2385 * Fix ICE when encountering a macro call in match statements
2386 * Fix false positive in `default_trait_access`
2387 * Fix false positive in `trivially_copy_pass_by_ref`
2388 * Fix false positive in `similar_names`
2389 * Fix false positive in `redundant_field_name`
2390 * Fix false positive in `expect_fun_call`
2391 * Fix false negative in `identity_conversion`
2392 * Fix false negative in `explicit_counter_loop`
2393 * Fix `range_plus_one` suggestion and false negative
2394 * `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
2395 * Fix `useless_attribute` to also whitelist `unused_extern_crates`
2396 * Fix incorrect suggestion for `single_char_pattern`
2397 * Improve suggestion for `identity_conversion` lint
2398 * Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
2399 * Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
2400 * Move `shadow_unrelated` from `restriction` group to `pedantic`
2401 * Move `indexing_slicing` from `pedantic` group to `restriction`
2407 [v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
2409 * :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
2411 You can now run `rustup component add clippy-preview` and then `cargo
2412 clippy` to run Clippy. This should put an end to the continuous nightly
2413 upgrades for Clippy users.
2414 * Clippy now follows the Rust versioning scheme instead of its own
2415 * Fix ICE when encountering a `while let (..) = x.iter()` construct
2416 * Fix false positives in `use_self`
2417 * Fix false positive in `trivially_copy_pass_by_ref`
2418 * Fix false positive in `useless_attribute` lint
2419 * Fix false positive in `print_literal`
2420 * Fix `use_self` regressions
2421 * Improve lint message for `neg_cmp_op_on_partial_ord`
2422 * Improve suggestion highlight for `single_char_pattern`
2423 * Improve suggestions for various print/write macro lints
2424 * Improve website header
2426 ## 0.0.212 (2018-07-10)
2427 * Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
2430 * Rustup to *rustc 1.28.0-nightly (e3bf634e0 2018-06-28)*
2433 * Rustup to *rustc 1.28.0-nightly (01cc982e9 2018-06-24)*
2436 * Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
2439 * Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*
2442 * Rustup to *rustc 1.28.0-nightly (2a0062974 2018-06-09)*
2445 * Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)*
2448 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)*
2449 * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint
2452 * Rustup to *rustc 1.28.0-nightly (71e87be38 2018-05-22)*
2455 * Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
2456 * Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
2459 * Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*
2462 * Rustup to *rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)*
2465 * Rustup to *rustc 1.27.0-nightly (9fae15374 2018-05-13)*
2468 * Rustup to *rustc 1.27.0-nightly (ff2ac35db 2018-05-12)*
2471 * Rustup to *rustc 1.27.0-nightly (acd3871ba 2018-05-10)*
2474 * Rustup to *rustc 1.27.0-nightly (428ea5f6b 2018-05-06)*
2477 * Rustup to *rustc 1.27.0-nightly (e82261dfb 2018-05-03)*
2480 * Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
2483 * Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
2484 * New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
2487 * Rustup to *rustc 1.27.0-nightly (eeea94c11 2018-04-06)*
2490 * Rustup to *rustc 1.27.0-nightly (fb44b4c0e 2018-04-04)*
2491 * New lint: [`print_literal`]
2494 * Rustup to *rustc 1.26.0-nightly (ae544ee1c 2018-03-29)*
2495 * Lint audit; categorize lints as style, correctness, complexity, pedantic, nursery, restriction.
2498 * Fix a bunch of intermittent cargo bugs
2501 * Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
2504 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
2505 * New lint: [`while_immutable_condition`]
2508 * Rustup to *rustc 1.26.0-nightly (322d7f7b9 2018-02-25)*
2509 * New lints: [`redundant_field_names`], [`suspicious_arithmetic_impl`], [`suspicious_op_assign_impl`]
2512 * Rustup to *rustc 1.25.0-nightly (0c6091fbd 2018-02-04)*
2513 * Various false positive fixes
2516 * Rustup to *rustc 1.25.0-nightly (56733bc9f 2018-02-01)*
2517 * New lint: [`question_mark`]
2520 * Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)*
2521 * New lints: [`double_comparisons`], [`empty_line_after_outer_attr`]
2524 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)*
2525 * New lint: [`misaligned_transmute`]
2528 * Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
2529 * New lint: [`decimal_literal_representation`]
2532 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
2533 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
2534 * Removed `unit_expr`
2535 * Various false positive fixes for [`needless_pass_by_value`]
2538 * Rustup to *rustc 1.25.0-nightly (3f92e8d89 2018-01-14)*
2541 * Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
2544 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
2547 * Rustup to *rustc 1.24.0-nightly (250b49205 2017-12-21)*
2548 * New lint: [`match_as_ref`]
2551 * Rustup to *rustc 1.24.0-nightly (0077d128d 2017-12-14)*
2554 * Rustup to *rustc 1.24.0-nightly (bb42071f6 2017-12-01)*
2557 * Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
2560 * Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*
2563 * Rustup to *rustc 1.23.0-nightly (d0f8e2913 2017-11-16)*
2566 * Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
2569 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
2572 * Rustup to *rustc 1.23.0-nightly (3b82e4c74 2017-11-05)*
2573 * New lints: [`just_underscores_and_digits`], `result_map_unwrap_or_else`, [`transmute_bytes_to_str`]
2576 * Rustup to *rustc 1.23.0-nightly (f0fe716db 2017-10-30)*
2579 * Rustup to *rustc 1.23.0-nightly (90ef3372e 2017-10-29)*
2580 * New lints: `const_static_lifetime`, [`erasing_op`], [`fallible_impl_from`], [`println_empty_string`], [`useless_asref`]
2583 * Rustup to *rustc 1.22.0-nightly (b7960878b 2017-10-18)*
2584 * New lints: [`explicit_write`], `identity_conversion`, [`implicit_hasher`], `invalid_ref`, [`option_map_or_none`],
2585 [`range_minus_one`], [`range_plus_one`], [`transmute_int_to_bool`], [`transmute_int_to_char`],
2586 [`transmute_int_to_float`]
2589 * Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
2590 * New lint: [`mut_range_bound`]
2593 * Update to *rustc 1.22.0-nightly (6c476ce46 2017-09-25)*
2594 * New lint: [`int_plus_one`]
2597 * Update to *rustc 1.22.0-nightly (14039a42a 2017-09-22)*
2600 * Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
2601 * New lint: [`chars_last_cmp`]
2602 * Improved suggestions for [`needless_borrow`], [`ptr_arg`],
2605 * Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
2608 * Update to *rustc 1.22.0-nightly (dd08c3070 2017-09-12)*
2611 * Update to *rustc 1.22.0-nightly (eba374fb2 2017-09-11)*
2612 * New lint: [`clone_on_ref_ptr`]
2615 * New lint: [`manual_memcpy`]
2616 * [`cast_lossless`] no longer has redundant parentheses in its suggestions
2617 * Update to *rustc 1.22.0-nightly (dead08cb3 2017-09-08)*
2619 ## 0.0.157 - 2017-09-04
2620 * Update to *rustc 1.22.0-nightly (981ce7d8d 2017-09-03)*
2621 * New lint: `unit_expr`
2623 ## 0.0.156 - 2017-09-03
2624 * Update to *rustc 1.22.0-nightly (744dd6c1d 2017-09-02)*
2627 * Update to *rustc 1.21.0-nightly (c11f689d2 2017-08-29)*
2628 * New lint: [`infinite_iter`], [`maybe_infinite_iter`], [`cast_lossless`]
2631 * Update to *rustc 1.21.0-nightly (2c0558f63 2017-08-24)*
2632 * Fix [`use_self`] triggering inside derives
2633 * Add support for linting an entire workspace with `cargo clippy --all`
2634 * New lint: [`naive_bytecount`]
2637 * Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)*
2638 * New lint: [`use_self`]
2641 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)*
2644 * Update to *rustc 1.21.0-nightly (13d94d5fa 2017-08-10)*
2647 * Update to *rustc 1.21.0-nightly (215e0b10e 2017-08-08)*
2650 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)*
2651 * New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`]
2654 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)*
2657 * Update to *rustc 1.21.0-nightly (52a330969 2017-07-27)*
2658 * Fixes false positives in `inline_always`
2659 * Fixes false negatives in `panic_params`
2662 * Update to *rustc 1.20.0-nightly (afe145d22 2017-07-23)*
2665 * Update to *rustc 1.20.0-nightly (086eaa78e 2017-07-15)*
2668 * Update to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
2669 * Fix `cargo clippy` crashing on `dylib` projects
2670 * Fix false positives around `nested_while_let` and `never_loop`
2673 * Update to *rustc 1.20.0-nightly (067971139 2017-07-02)*
2676 * Rewrite of the `doc_markdown` lint.
2677 * Deprecated [`range_step_by_zero`]
2678 * New lint: [`iterator_step_by_zero`]
2679 * New lint: [`needless_borrowed_reference`]
2680 * Update to *rustc 1.20.0-nightly (69c65d296 2017-06-28)*
2682 ## 0.0.140 - 2017-06-16
2683 * Update to *rustc 1.19.0-nightly (258ae6dd9 2017-06-15)*
2685 ## 0.0.139 — 2017-06-10
2686 * Update to *rustc 1.19.0-nightly (4bf5c99af 2017-06-10)*
2687 * Fix bugs with for loop desugaring
2688 * Check for [`AsRef`]/[`AsMut`] arguments in [`wrong_self_convention`]
2690 ## 0.0.138 — 2017-06-05
2691 * Update to *rustc 1.19.0-nightly (0418fa9d3 2017-06-04)*
2693 ## 0.0.137 — 2017-06-05
2694 * Update to *rustc 1.19.0-nightly (6684d176c 2017-06-03)*
2696 ## 0.0.136 — 2017—05—26
2697 * Update to *rustc 1.19.0-nightly (557967766 2017-05-26)*
2699 ## 0.0.135 — 2017—05—24
2700 * Update to *rustc 1.19.0-nightly (5b13bff52 2017-05-23)*
2702 ## 0.0.134 — 2017—05—19
2703 * Update to *rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)*
2705 ## 0.0.133 — 2017—05—14
2706 * Update to *rustc 1.19.0-nightly (826d8f385 2017-05-13)*
2708 ## 0.0.132 — 2017—05—05
2709 * Fix various bugs and some ices
2711 ## 0.0.131 — 2017—05—04
2712 * Update to *rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)*
2714 ## 0.0.130 — 2017—05—03
2715 * Update to *rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)*
2717 ## 0.0.129 — 2017-05-01
2718 * Update to *rustc 1.19.0-nightly (06fb4d256 2017-04-30)*
2720 ## 0.0.128 — 2017-04-28
2721 * Update to *rustc 1.18.0-nightly (94e884b63 2017-04-27)*
2723 ## 0.0.127 — 2017-04-27
2724 * Update to *rustc 1.18.0-nightly (036983201 2017-04-26)*
2725 * New lint: [`needless_continue`]
2727 ## 0.0.126 — 2017-04-24
2728 * Update to *rustc 1.18.0-nightly (2bd4b5c6d 2017-04-23)*
2730 ## 0.0.125 — 2017-04-19
2731 * Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)*
2733 ## 0.0.124 — 2017-04-16
2734 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
2736 ## 0.0.123 — 2017-04-07
2737 * Fix various false positives
2739 ## 0.0.122 — 2017-04-07
2740 * Rustup to *rustc 1.18.0-nightly (91ae22a01 2017-04-05)*
2741 * New lint: [`op_ref`]
2743 ## 0.0.121 — 2017-03-21
2744 * Rustup to *rustc 1.17.0-nightly (134c4a0f0 2017-03-20)*
2746 ## 0.0.120 — 2017-03-17
2747 * Rustup to *rustc 1.17.0-nightly (0aeb9c129 2017-03-15)*
2749 ## 0.0.119 — 2017-03-13
2750 * Rustup to *rustc 1.17.0-nightly (824c9ebbd 2017-03-12)*
2752 ## 0.0.118 — 2017-03-05
2753 * Rustup to *rustc 1.17.0-nightly (b1e31766d 2017-03-03)*
2755 ## 0.0.117 — 2017-03-01
2756 * Rustup to *rustc 1.17.0-nightly (be760566c 2017-02-28)*
2758 ## 0.0.116 — 2017-02-28
2759 * Fix `cargo clippy` on 64 bit windows systems
2761 ## 0.0.115 — 2017-02-27
2762 * Rustup to *rustc 1.17.0-nightly (60a0edc6c 2017-02-26)*
2763 * New lints: [`zero_ptr`], [`never_loop`], [`mut_from_ref`]
2765 ## 0.0.114 — 2017-02-08
2766 * Rustup to *rustc 1.17.0-nightly (c49d10207 2017-02-07)*
2767 * Tests are now ui tests (testing the exact output of rustc)
2769 ## 0.0.113 — 2017-02-04
2770 * Rustup to *rustc 1.16.0-nightly (eedaa94e3 2017-02-02)*
2771 * New lint: [`large_enum_variant`]
2772 * `explicit_into_iter_loop` provides suggestions
2774 ## 0.0.112 — 2017-01-27
2775 * Rustup to *rustc 1.16.0-nightly (df8debf6d 2017-01-25)*
2777 ## 0.0.111 — 2017-01-21
2778 * Rustup to *rustc 1.16.0-nightly (a52da95ce 2017-01-20)*
2780 ## 0.0.110 — 2017-01-20
2781 * Add badges and categories to `Cargo.toml`
2783 ## 0.0.109 — 2017-01-19
2784 * Update to *rustc 1.16.0-nightly (c07a6ae77 2017-01-17)*
2786 ## 0.0.108 — 2017-01-12
2787 * Update to *rustc 1.16.0-nightly (2782e8f8f 2017-01-12)*
2789 ## 0.0.107 — 2017-01-11
2790 * Update regex dependency
2791 * Fix FP when matching `&&mut` by `&ref`
2792 * Reintroduce `for (_, x) in &mut hash_map` -> `for x in hash_map.values_mut()`
2793 * New lints: [`unused_io_amount`], [`forget_ref`], [`short_circuit_statement`]
2795 ## 0.0.106 — 2017-01-04
2796 * Fix FP introduced by rustup in [`wrong_self_convention`]
2798 ## 0.0.105 — 2017-01-04
2799 * Update to *rustc 1.16.0-nightly (468227129 2017-01-03)*
2800 * New lints: [`deref_addrof`], [`double_parens`], [`pub_enum_variant_names`]
2801 * Fix suggestion in [`new_without_default`]
2802 * FP fix in [`absurd_extreme_comparisons`]
2804 ## 0.0.104 — 2016-12-15
2805 * Update to *rustc 1.15.0-nightly (8f02c429a 2016-12-15)*
2807 ## 0.0.103 — 2016-11-25
2808 * Update to *rustc 1.15.0-nightly (d5814b03e 2016-11-23)*
2810 ## 0.0.102 — 2016-11-24
2811 * Update to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
2813 ## 0.0.101 — 2016-11-23
2814 * Update to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
2815 * New lint: [`string_extend_chars`]
2817 ## 0.0.100 — 2016-11-20
2818 * Update to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
2820 ## 0.0.99 — 2016-11-18
2821 * Update to rustc 1.15.0-nightly (0ed951993 2016-11-14)
2822 * New lint: [`get_unwrap`]
2824 ## 0.0.98 — 2016-11-08
2825 * Fixes an issue due to a change in how cargo handles `--sysroot`, which broke `cargo clippy`
2827 ## 0.0.97 — 2016-11-03
2828 * For convenience, `cargo clippy` defines a `cargo-clippy` feature. This was
2829 previously added for a short time under the name `clippy` but removed for
2831 * `cargo clippy --help` is more helping (and less helpful :smile:)
2832 * Rustup to *rustc 1.14.0-nightly (5665bdf3e 2016-11-02)*
2833 * New lints: [`if_let_redundant_pattern_matching`], [`partialeq_ne_impl`]
2835 ## 0.0.96 — 2016-10-22
2836 * Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)*
2837 * New lint: [`iter_skip_next`]
2839 ## 0.0.95 — 2016-10-06
2840 * Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
2842 ## 0.0.94 — 2016-10-04
2843 * Fixes bustage on Windows due to forbidden directory name
2845 ## 0.0.93 — 2016-10-03
2846 * Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
2847 * `option_map_unwrap_or` and `option_map_unwrap_or_else` are now
2849 * New lint: [`explicit_into_iter_loop`]
2851 ## 0.0.92 — 2016-09-30
2852 * Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
2854 ## 0.0.91 — 2016-09-28
2855 * Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
2857 ## 0.0.90 — 2016-09-09
2858 * Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
2860 ## 0.0.89 — 2016-09-06
2861 * Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
2863 ## 0.0.88 — 2016-09-04
2864 * Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)*
2865 * The following lints are not new but were only usable through the `clippy`
2866 lint groups: [`filter_next`], `for_loop_over_option`,
2867 `for_loop_over_result` and [`match_overlapping_arm`]. You should now be
2868 able to `#[allow/deny]` them individually and they are available directly
2869 through `cargo clippy`.
2871 ## 0.0.87 — 2016-08-31
2872 * Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)*
2873 * New lints: [`builtin_type_shadow`]
2874 * Fix FP in [`zero_prefixed_literal`] and `0b`/`0o`
2876 ## 0.0.86 — 2016-08-28
2877 * Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
2878 * New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
2880 ## 0.0.85 — 2016-08-19
2881 * Fix ICE with [`useless_attribute`]
2882 * [`useless_attribute`] ignores `unused_imports` on `use` statements
2884 ## 0.0.84 — 2016-08-18
2885 * Rustup to *rustc 1.13.0-nightly (aef6971ca 2016-08-17)*
2887 ## 0.0.83 — 2016-08-17
2888 * Rustup to *rustc 1.12.0-nightly (1bf5fa326 2016-08-16)*
2889 * New lints: [`print_with_newline`], [`useless_attribute`]
2891 ## 0.0.82 — 2016-08-17
2892 * Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)*
2893 * New lint: [`module_inception`]
2895 ## 0.0.81 — 2016-08-14
2896 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)*
2897 * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`]
2898 * False positive fix in [`too_many_arguments`]
2899 * Addition of functionality to [`needless_borrow`]
2900 * Suggestions for [`clone_on_copy`]
2901 * Bug fix in [`wrong_self_convention`]
2904 ## 0.0.80 — 2016-07-31
2905 * Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)*
2906 * New lints: [`misrefactored_assign_op`], [`serde_api_misuse`]
2908 ## 0.0.79 — 2016-07-10
2909 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
2910 * Major suggestions refactoring
2912 ## 0.0.78 — 2016-07-02
2913 * Rustup to *rustc 1.11.0-nightly (01411937f 2016-07-01)*
2914 * New lints: [`wrong_transmute`], [`double_neg`], [`filter_map`]
2915 * For compatibility, `cargo clippy` does not defines the `clippy` feature
2916 introduced in 0.0.76 anymore
2917 * [`collapsible_if`] now considers `if let`
2919 ## 0.0.77 — 2016-06-21
2920 * Rustup to *rustc 1.11.0-nightly (5522e678b 2016-06-20)*
2921 * New lints: `stutter` and [`iter_nth`]
2923 ## 0.0.76 — 2016-06-10
2924 * Rustup to *rustc 1.11.0-nightly (7d2f75a95 2016-06-09)*
2925 * `cargo clippy` now automatically defines the `clippy` feature
2926 * New lint: [`not_unsafe_ptr_arg_deref`]
2928 ## 0.0.75 — 2016-06-08
2929 * Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*
2931 ## 0.0.74 — 2016-06-07
2932 * Fix bug with `cargo-clippy` JSON parsing
2933 * Add the `CLIPPY_DISABLE_DOCS_LINKS` environment variable to deactivate the
2934 “for further information visit *lint-link*” message.
2936 ## 0.0.73 — 2016-06-05
2937 * Fix false positives in [`useless_let_if_seq`]
2939 ## 0.0.72 — 2016-06-04
2940 * Fix false positives in [`useless_let_if_seq`]
2942 ## 0.0.71 — 2016-05-31
2943 * Rustup to *rustc 1.11.0-nightly (a967611d8 2016-05-30)*
2944 * New lint: [`useless_let_if_seq`]
2946 ## 0.0.70 — 2016-05-28
2947 * Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
2948 * [`invalid_regex`] and [`trivial_regex`] can now warn on `RegexSet::new`,
2949 `RegexBuilder::new` and byte regexes
2951 ## 0.0.69 — 2016-05-20
2952 * Rustup to *rustc 1.10.0-nightly (476fe6eef 2016-05-21)*
2953 * [`used_underscore_binding`] has been made `Allow` temporarily
2955 ## 0.0.68 — 2016-05-17
2956 * Rustup to *rustc 1.10.0-nightly (cd6a40017 2016-05-16)*
2957 * New lint: [`unnecessary_operation`]
2959 ## 0.0.67 — 2016-05-12
2960 * Rustup to *rustc 1.10.0-nightly (22ac88f1a 2016-05-11)*
2962 ## 0.0.66 — 2016-05-11
2963 * New `cargo clippy` subcommand
2964 * New lints: [`assign_op_pattern`], [`assign_ops`], [`needless_borrow`]
2966 ## 0.0.65 — 2016-05-08
2967 * Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
2968 * New lints: [`float_arithmetic`], [`integer_arithmetic`]
2970 ## 0.0.64 — 2016-04-26
2971 * Rustup to *rustc 1.10.0-nightly (645dd013a 2016-04-24)*
2972 * New lints: `temporary_cstring_as_ptr`, [`unsafe_removed_from_name`], and [`mem_forget`]
2974 ## 0.0.63 — 2016-04-08
2975 * Rustup to *rustc 1.9.0-nightly (7979dd608 2016-04-07)*
2977 ## 0.0.62 — 2016-04-07
2978 * Rustup to *rustc 1.9.0-nightly (bf5da36f1 2016-04-06)*
2980 ## 0.0.61 — 2016-04-03
2981 * Rustup to *rustc 1.9.0-nightly (5ab11d72c 2016-04-02)*
2982 * New lint: [`invalid_upcast_comparisons`]
2984 ## 0.0.60 — 2016-04-01
2985 * Rustup to *rustc 1.9.0-nightly (e1195c24b 2016-03-31)*
2987 ## 0.0.59 — 2016-03-31
2988 * Rustup to *rustc 1.9.0-nightly (30a3849f2 2016-03-30)*
2989 * New lints: [`logic_bug`], [`nonminimal_bool`]
2990 * Fixed: [`match_same_arms`] now ignores arms with guards
2991 * Improved: [`useless_vec`] now warns on `for … in vec![…]`
2993 ## 0.0.58 — 2016-03-27
2994 * Rustup to *rustc 1.9.0-nightly (d5a91e695 2016-03-26)*
2995 * New lint: [`doc_markdown`]
2997 ## 0.0.57 — 2016-03-27
2998 * Update to *rustc 1.9.0-nightly (a1e29daf1 2016-03-25)*
2999 * Deprecated lints: [`str_to_string`], [`string_to_string`], [`unstable_as_slice`], [`unstable_as_mut_slice`]
3000 * New lint: [`crosspointer_transmute`]
3002 ## 0.0.56 — 2016-03-23
3003 * Update to *rustc 1.9.0-nightly (0dcc413e4 2016-03-22)*
3004 * New lints: [`many_single_char_names`] and [`similar_names`]
3006 ## 0.0.55 — 2016-03-21
3007 * Update to *rustc 1.9.0-nightly (02310fd31 2016-03-19)*
3009 ## 0.0.54 — 2016-03-16
3010 * Update to *rustc 1.9.0-nightly (c66d2380a 2016-03-15)*
3012 ## 0.0.53 — 2016-03-15
3013 * Add a [configuration file]
3017 ## 0.0.51 — 2016-03-13
3018 * Add `str` to types considered by [`len_zero`]
3019 * New lints: [`indexing_slicing`]
3021 ## 0.0.50 — 2016-03-11
3022 * Update to *rustc 1.9.0-nightly (c9629d61c 2016-03-10)*
3024 ## 0.0.49 — 2016-03-09
3025 * Update to *rustc 1.9.0-nightly (eabfc160f 2016-03-08)*
3026 * New lints: [`overflow_check_conditional`], `unused_label`, [`new_without_default`]
3028 ## 0.0.48 — 2016-03-07
3029 * Fixed: ICE in [`needless_range_loop`] with globals
3031 ## 0.0.47 — 2016-03-07
3032 * Update to *rustc 1.9.0-nightly (998a6720b 2016-03-07)*
3033 * New lint: [`redundant_closure_call`]
3035 [`AsMut`]: https://doc.rust-lang.org/std/convert/trait.AsMut.html
3036 [`AsRef`]: https://doc.rust-lang.org/std/convert/trait.AsRef.html
3037 [configuration file]: ./rust-clippy#configuration
3038 [pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
3039 [adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/doc/adding_lints.md
3040 [`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
3042 <!-- lint disable no-unused-definitions -->
3043 <!-- begin autogenerated links to lint list -->
3044 [`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
3045 [`allow_attributes_without_reason`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason
3046 [`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
3047 [`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
3048 [`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
3049 [`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
3050 [`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
3051 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
3052 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
3053 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
3054 [`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
3055 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
3056 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
3057 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
3058 [`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
3059 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
3060 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
3061 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
3062 [`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
3063 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
3064 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
3065 [`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
3066 [`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
3067 [`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
3068 [`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
3069 [`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
3070 [`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
3071 [`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
3072 [`cast_enum_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_truncation
3073 [`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
3074 [`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
3075 [`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
3076 [`cast_precision_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss
3077 [`cast_ptr_alignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment
3078 [`cast_ref_to_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ref_to_mut
3079 [`cast_sign_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
3080 [`cast_slice_different_sizes`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes
3081 [`char_lit_as_u8`]: https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
3082 [`chars_last_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
3083 [`chars_next_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
3084 [`checked_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions
3085 [`clone_double_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
3086 [`clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
3087 [`clone_on_ref_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_ref_ptr
3088 [`cloned_instead_of_copied`]: https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
3089 [`cmp_nan`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_nan
3090 [`cmp_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
3091 [`cmp_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
3092 [`cognitive_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
3093 [`collapsible_else_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
3094 [`collapsible_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
3095 [`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
3096 [`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
3097 [`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
3098 [`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
3099 [`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
3100 [`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
3101 [`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
3102 [`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
3103 [`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
3104 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
3105 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
3106 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
3107 [`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
3108 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
3109 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
3110 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
3111 [`deref_by_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing
3112 [`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
3113 [`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
3114 [`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
3115 [`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
3116 [`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
3117 [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
3118 [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
3119 [`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
3120 [`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
3121 [`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
3122 [`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
3123 [`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
3124 [`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
3125 [`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
3126 [`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
3127 [`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
3128 [`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
3129 [`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
3130 [`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
3131 [`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
3132 [`enum_clike_unportable_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant
3133 [`enum_glob_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
3134 [`enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
3135 [`eq_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
3136 [`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
3137 [`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
3138 [`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
3139 [`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
3140 [`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
3141 [`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
3142 [`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
3143 [`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
3144 [`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
3145 [`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
3146 [`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop
3147 [`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
3148 [`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
3149 [`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
3150 [`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
3151 [`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
3152 [`extend_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_with_drain
3153 [`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
3154 [`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
3155 [`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
3156 [`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
3157 [`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
3158 [`filter_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
3159 [`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
3160 [`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
3161 [`find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#find_map
3162 [`flat_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_identity
3163 [`flat_map_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
3164 [`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
3165 [`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
3166 [`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
3167 [`float_equality_without_abs`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_equality_without_abs
3168 [`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
3169 [`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
3170 [`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
3171 [`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
3172 [`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
3173 [`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
3174 [`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
3175 [`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
3176 [`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
3177 [`format_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
3178 [`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
3179 [`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
3180 [`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
3181 [`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
3182 [`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
3183 [`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
3184 [`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
3185 [`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
3186 [`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
3187 [`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
3188 [`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
3189 [`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
3190 [`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
3191 [`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
3192 [`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
3193 [`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
3194 [`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub
3195 [`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
3196 [`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
3197 [`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
3198 [`index_refutable_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice
3199 [`indexing_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
3200 [`ineffective_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask
3201 [`inefficient_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
3202 [`infallible_destructuring_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#infallible_destructuring_match
3203 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
3204 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
3205 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
3206 [`init_numbered_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
3207 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
3208 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
3209 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
3210 [`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
3211 [`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
3212 [`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
3213 [`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
3214 [`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
3215 [`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
3216 [`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
3217 [`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
3218 [`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
3219 [`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
3220 [`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
3221 [`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
3222 [`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
3223 [`iter_next_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
3224 [`iter_next_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
3225 [`iter_not_returning_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
3226 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
3227 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
3228 [`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
3229 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
3230 [`iter_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_with_drain
3231 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
3232 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
3233 [`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
3234 [`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
3235 [`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
3236 [`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
3237 [`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
3238 [`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
3239 [`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
3240 [`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
3241 [`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
3242 [`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
3243 [`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
3244 [`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
3245 [`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
3246 [`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
3247 [`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
3248 [`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
3249 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
3250 [`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
3251 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
3252 [`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
3253 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
3254 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
3255 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
3256 [`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
3257 [`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
3258 [`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
3259 [`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
3260 [`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
3261 [`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
3262 [`manual_split_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
3263 [`manual_str_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_str_repeat
3264 [`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
3265 [`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
3266 [`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
3267 [`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
3268 [`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
3269 [`map_collect_result_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_collect_result_unit
3270 [`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
3271 [`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
3272 [`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
3273 [`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
3274 [`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
3275 [`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
3276 [`match_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_bool
3277 [`match_like_matches_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
3278 [`match_on_vec_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
3279 [`match_overlapping_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
3280 [`match_ref_pats`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
3281 [`match_result_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
3282 [`match_same_arms`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
3283 [`match_single_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
3284 [`match_str_case_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_str_case_mismatch
3285 [`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
3286 [`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
3287 [`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
3288 [`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
3289 [`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
3290 [`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
3291 [`mem_replace_with_uninit`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
3292 [`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
3293 [`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
3294 [`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
3295 [`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
3296 [`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
3297 [`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
3298 [`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
3299 [`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
3300 [`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
3301 [`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
3302 [`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
3303 [`missing_spin_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
3304 [`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
3305 [`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
3306 [`mod_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
3307 [`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
3308 [`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
3309 [`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
3310 [`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
3311 [`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
3312 [`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
3313 [`must_use_candidate`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
3314 [`must_use_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_unit
3315 [`mut_from_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
3316 [`mut_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut
3317 [`mut_mutex_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mutex_lock
3318 [`mut_range_bound`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_range_bound
3319 [`mutable_key_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
3320 [`mutex_atomic`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
3321 [`mutex_integer`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer
3322 [`naive_bytecount`]: https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount
3323 [`needless_arbitrary_self_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
3324 [`needless_bitwise_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool
3325 [`needless_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
3326 [`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
3327 [`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
3328 [`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
3329 [`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
3330 [`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
3331 [`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
3332 [`needless_late_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
3333 [`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
3334 [`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
3335 [`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
3336 [`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
3337 [`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
3338 [`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
3339 [`needless_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_splitn
3340 [`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
3341 [`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
3342 [`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
3343 [`negative_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#negative_feature_names
3344 [`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
3345 [`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
3346 [`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
3347 [`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
3348 [`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
3349 [`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
3350 [`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
3351 [`non_send_fields_in_send_ty`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
3352 [`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
3353 [`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
3354 [`nonstandard_macro_braces`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
3355 [`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
3356 [`octal_escapes`]: https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes
3357 [`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
3358 [`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
3359 [`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
3360 [`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
3361 [`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
3362 [`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
3363 [`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
3364 [`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
3365 [`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
3366 [`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
3367 [`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
3368 [`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
3369 [`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
3370 [`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
3371 [`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
3372 [`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
3373 [`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
3374 [`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
3375 [`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
3376 [`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
3377 [`print_in_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_in_format_impl
3378 [`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
3379 [`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
3380 [`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
3381 [`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
3382 [`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
3383 [`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
3384 [`ptr_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
3385 [`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
3386 [`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
3387 [`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
3388 [`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
3389 [`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
3390 [`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
3391 [`range_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_step_by_zero
3392 [`range_zip_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_zip_with_len
3393 [`rc_buffer`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_buffer
3394 [`rc_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_mutex
3395 [`recursive_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl
3396 [`redundant_allocation`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_allocation
3397 [`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
3398 [`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
3399 [`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
3400 [`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
3401 [`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
3402 [`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
3403 [`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
3404 [`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
3405 [`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
3406 [`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
3407 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
3408 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
3409 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
3410 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
3411 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
3412 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
3413 [`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
3414 [`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
3415 [`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
3416 [`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
3417 [`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
3418 [`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
3419 [`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
3420 [`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
3421 [`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
3422 [`same_name_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
3423 [`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
3424 [`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
3425 [`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
3426 [`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
3427 [`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
3428 [`separated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
3429 [`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
3430 [`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
3431 [`shadow_same`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
3432 [`shadow_unrelated`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
3433 [`short_circuit_statement`]: https://rust-lang.github.io/rust-clippy/master/index.html#short_circuit_statement
3434 [`should_assert_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_assert_eq
3435 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
3436 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
3437 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
3438 [`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
3439 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
3440 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
3441 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
3442 [`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
3443 [`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
3444 [`size_of_in_element_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count
3445 [`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
3446 [`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
3447 [`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
3448 [`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
3449 [`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
3450 [`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
3451 [`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
3452 [`string_from_utf8_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_from_utf8_as_bytes
3453 [`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
3454 [`string_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_slice
3455 [`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
3456 [`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
3457 [`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
3458 [`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
3459 [`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
3460 [`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
3461 [`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
3462 [`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
3463 [`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
3464 [`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
3465 [`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
3466 [`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
3467 [`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
3468 [`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
3469 [`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
3470 [`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
3471 [`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
3472 [`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
3473 [`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
3474 [`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
3475 [`trailing_empty_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#trailing_empty_array
3476 [`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
3477 [`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
3478 [`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
3479 [`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
3480 [`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
3481 [`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
3482 [`transmute_num_to_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_num_to_bytes
3483 [`transmute_ptr_to_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
3484 [`transmute_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
3485 [`transmute_undefined_repr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr
3486 [`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
3487 [`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
3488 [`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
3489 [`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
3490 [`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
3491 [`type_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
3492 [`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
3493 [`undocumented_unsafe_blocks`]: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
3494 [`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops
3495 [`unicode_not_nfc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unicode_not_nfc
3496 [`unimplemented`]: https://rust-lang.github.io/rust-clippy/master/index.html#unimplemented
3497 [`uninit_assumed_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
3498 [`uninit_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec
3499 [`unit_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
3500 [`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
3501 [`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
3502 [`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
3503 [`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
3504 [`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
3505 [`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
3506 [`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
3507 [`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
3508 [`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
3509 [`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
3510 [`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
3511 [`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
3512 [`unnecessary_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
3513 [`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
3514 [`unnecessary_wraps`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
3515 [`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
3516 [`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
3517 [`unnested_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
3518 [`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
3519 [`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
3520 [`unsafe_derive_deserialize`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
3521 [`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
3522 [`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
3523 [`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
3524 [`unsound_collection_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsound_collection_transmute
3525 [`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
3526 [`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
3527 [`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
3528 [`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
3529 [`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
3530 [`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
3531 [`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
3532 [`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
3533 [`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
3534 [`unwrap_or_else_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
3535 [`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
3536 [`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
3537 [`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
3538 [`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
3539 [`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
3540 [`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
3541 [`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
3542 [`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
3543 [`useless_format`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
3544 [`useless_let_if_seq`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_let_if_seq
3545 [`useless_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute
3546 [`useless_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
3547 [`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
3548 [`vec_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
3549 [`vec_resize_to_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_resize_to_zero
3550 [`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
3551 [`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
3552 [`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
3553 [`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
3554 [`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
3555 [`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
3556 [`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
3557 [`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
3558 [`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
3559 [`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
3560 [`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
3561 [`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline
3562 [`writeln_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
3563 [`wrong_pub_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_pub_self_convention
3564 [`wrong_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
3565 [`wrong_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_transmute
3566 [`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
3567 [`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
3568 [`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
3569 [`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
3570 [`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
3571 <!-- end autogenerated links to lint list -->