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 [d0cf3481...master](https://github.com/rust-lang/rust-clippy/compare/d0cf3481...master)
13 Current stable, released 2022-05-19
15 [57b3c4b...d0cf3481](https://github.com/rust-lang/rust-clippy/compare/57b3c4b...d0cf3481)
19 * [`only_used_in_recursion`]
20 [#8422](https://github.com/rust-lang/rust-clippy/pull/8422)
21 * [`cast_enum_truncation`]
22 [#8381](https://github.com/rust-lang/rust-clippy/pull/8381)
23 * [`missing_spin_loop`]
24 [#8174](https://github.com/rust-lang/rust-clippy/pull/8174)
25 * [`deref_by_slicing`]
26 [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
28 [#8471](https://github.com/rust-lang/rust-clippy/pull/8471)
29 * [`allow_attributes_without_reason`] (Requires `#![feature(lint_reasons)]`)
30 [#8504](https://github.com/rust-lang/rust-clippy/pull/8504)
31 * [`print_in_format_impl`]
32 [#8253](https://github.com/rust-lang/rust-clippy/pull/8253)
33 * [`unnecessary_find_map`]
34 [#8489](https://github.com/rust-lang/rust-clippy/pull/8489)
36 [#8561](https://github.com/rust-lang/rust-clippy/pull/8561)
37 * [`unnecessary_join`]
38 [#8579](https://github.com/rust-lang/rust-clippy/pull/8579)
40 [#8483](https://github.com/rust-lang/rust-clippy/pull/8483)
41 * [`cast_enum_constructor`]
42 [#8562](https://github.com/rust-lang/rust-clippy/pull/8562)
43 * [`cast_slice_different_sizes`]
44 [#8445](https://github.com/rust-lang/rust-clippy/pull/8445)
46 ### Moves and Deprecations
48 * Moved [`transmute_undefined_repr`] to `nursery` (now allow-by-default)
49 [#8432](https://github.com/rust-lang/rust-clippy/pull/8432)
50 * Moved [`try_err`] to `restriction`
51 [#8544](https://github.com/rust-lang/rust-clippy/pull/8544)
52 * Move [`iter_with_drain`] to `nursery`
53 [#8541](https://github.com/rust-lang/rust-clippy/pull/8541)
54 * Renamed `to_string_in_display` to [`recursive_format_impl`]
55 [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
59 * [`dbg_macro`]: The lint level can now be set with crate attributes and works inside macros
60 [#8411](https://github.com/rust-lang/rust-clippy/pull/8411)
61 * [`ptr_as_ptr`]: Now works inside macros
62 [#8442](https://github.com/rust-lang/rust-clippy/pull/8442)
63 * [`use_self`]: Now works for variants in match expressions
64 [#8456](https://github.com/rust-lang/rust-clippy/pull/8456)
65 * [`await_holding_lock`]: Now lints for `parking_lot::{Mutex, RwLock}`
66 [#8419](https://github.com/rust-lang/rust-clippy/pull/8419)
67 * [`recursive_format_impl`]: Now checks for format calls on `self`
68 [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
70 ### False Positive Fixes
72 * [`new_without_default`]: No longer lints for `new()` methods with `#[doc(hidden)]`
73 [#8472](https://github.com/rust-lang/rust-clippy/pull/8472)
74 * [`transmute_undefined_repr`]: No longer lints for single field structs with `#[repr(C)]`,
75 generic parameters, wide pointers, unions, tuples and allow several forms of type erasure
76 [#8425](https://github.com/rust-lang/rust-clippy/pull/8425)
77 [#8553](https://github.com/rust-lang/rust-clippy/pull/8553)
78 [#8440](https://github.com/rust-lang/rust-clippy/pull/8440)
79 [#8547](https://github.com/rust-lang/rust-clippy/pull/8547)
80 * [`match_single_binding`], [`match_same_arms`], [`match_as_ref`], [`match_bool`]: No longer
81 lint `match` expressions with `cfg`ed arms
82 [#8443](https://github.com/rust-lang/rust-clippy/pull/8443)
83 * [`single_component_path_imports`]: No longer lint on macros
84 [#8537](https://github.com/rust-lang/rust-clippy/pull/8537)
85 * [`ptr_arg`]: Allow `&mut` arguments for `Cow<_>`
86 [#8552](https://github.com/rust-lang/rust-clippy/pull/8552)
87 * [`needless_borrow`]: No longer lints for method calls
88 [#8441](https://github.com/rust-lang/rust-clippy/pull/8441)
89 * [`match_same_arms`]: Now ensures that interposing arm patterns don't overlap
90 [#8232](https://github.com/rust-lang/rust-clippy/pull/8232)
91 * [`default_trait_access`]: Now allows `Default::default` in update expressions
92 [#8433](https://github.com/rust-lang/rust-clippy/pull/8433)
94 ### Suggestion Fixes/Improvements
96 * [`redundant_slicing`]: Fixed suggestion for a method calls
97 [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
98 * [`map_flatten`]: Long suggestions will now be split up into two help messages
99 [#8520](https://github.com/rust-lang/rust-clippy/pull/8520)
100 * [`unnecessary_lazy_evaluations`]: Now shows suggestions for longer code snippets
101 [#8543](https://github.com/rust-lang/rust-clippy/pull/8543)
102 * [`unnecessary_sort_by`]: Now suggests `Reverse` including the path
103 [#8462](https://github.com/rust-lang/rust-clippy/pull/8462)
104 * [`search_is_some`]: More suggestions are now `MachineApplicable`
105 [#8536](https://github.com/rust-lang/rust-clippy/pull/8536)
107 ### Documentation Improvements
109 * [`new_without_default`]: Document `pub` requirement for the struct and fields
110 [#8429](https://github.com/rust-lang/rust-clippy/pull/8429)
116 [0eff589...57b3c4b](https://github.com/rust-lang/rust-clippy/compare/0eff589...57b3c4b)
120 * [`single_char_lifetime_names`]
121 [#8236](https://github.com/rust-lang/rust-clippy/pull/8236)
122 * [`iter_overeager_cloned`]
123 [#8203](https://github.com/rust-lang/rust-clippy/pull/8203)
124 * [`transmute_undefined_repr`]
125 [#8398](https://github.com/rust-lang/rust-clippy/pull/8398)
126 * [`default_union_representation`]
127 [#8289](https://github.com/rust-lang/rust-clippy/pull/8289)
129 [#8213](https://github.com/rust-lang/rust-clippy/pull/8213)
131 [#8210](https://github.com/rust-lang/rust-clippy/pull/8210)
133 ### Moves and Deprecations
135 * Moved [`disallowed_methods`] and [`disallowed_types`] to `style` (now warn-by-default)
136 [#8261](https://github.com/rust-lang/rust-clippy/pull/8261)
137 * Rename `ref_in_deref` to [`needless_borrow`]
138 [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
139 * Moved [`mutex_atomic`] to `nursery` (now allow-by-default)
140 [#8260](https://github.com/rust-lang/rust-clippy/pull/8260)
144 * [`ptr_arg`]: Now takes the argument usage into account and lints for mutable references
145 [#8271](https://github.com/rust-lang/rust-clippy/pull/8271)
146 * [`unused_io_amount`]: Now supports async read and write traits
147 [#8179](https://github.com/rust-lang/rust-clippy/pull/8179)
148 * [`while_let_on_iterator`]: Improved detection to catch more cases
149 [#8221](https://github.com/rust-lang/rust-clippy/pull/8221)
150 * [`trait_duplication_in_bounds`]: Now covers trait functions with `Self` bounds
151 [#8252](https://github.com/rust-lang/rust-clippy/pull/8252)
152 * [`unwrap_used`]: Now works for `.get(i).unwrap()` and `.get_mut(i).unwrap()`
153 [#8372](https://github.com/rust-lang/rust-clippy/pull/8372)
154 * [`map_clone`]: The suggestion takes `msrv` into account
155 [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
156 * [`manual_bits`] and [`borrow_as_ptr`]: Now track the `clippy::msrv` attribute
157 [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
158 * [`disallowed_methods`]: Now works for methods on primitive types
159 [#8112](https://github.com/rust-lang/rust-clippy/pull/8112)
160 * [`not_unsafe_ptr_arg_deref`]: Now works for type aliases
161 [#8273](https://github.com/rust-lang/rust-clippy/pull/8273)
162 * [`needless_question_mark`]: Now works for async functions
163 [#8311](https://github.com/rust-lang/rust-clippy/pull/8311)
164 * [`iter_not_returning_iterator`]: Now handles type projections
165 [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
166 * [`wrong_self_convention`]: Now detects wrong `self` references in more cases
167 [#8208](https://github.com/rust-lang/rust-clippy/pull/8208)
168 * [`single_match`]: Now works for `match` statements with tuples
169 [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
171 ### False Positive Fixes
173 * [`erasing_op`]: No longer triggers if the output type changes
174 [#8204](https://github.com/rust-lang/rust-clippy/pull/8204)
175 * [`if_same_then_else`]: No longer triggers for `if let` statements
176 [#8297](https://github.com/rust-lang/rust-clippy/pull/8297)
177 * [`manual_memcpy`]: No longer lints on `VecDeque`
178 [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
179 * [`trait_duplication_in_bounds`]: Now takes path segments into account
180 [#8315](https://github.com/rust-lang/rust-clippy/pull/8315)
181 * [`deref_addrof`]: No longer lints when the dereference or borrow occurs in different a context
182 [#8268](https://github.com/rust-lang/rust-clippy/pull/8268)
183 * [`type_repetition_in_bounds`]: Now checks for full equality to prevent false positives
184 [#8224](https://github.com/rust-lang/rust-clippy/pull/8224)
185 * [`ptr_arg`]: No longer lint for mutable references in traits
186 [#8369](https://github.com/rust-lang/rust-clippy/pull/8369)
187 * [`implicit_clone`]: No longer lints for double references
188 [#8231](https://github.com/rust-lang/rust-clippy/pull/8231)
189 * [`needless_lifetimes`]: No longer lints lifetimes for explicit `self` types
190 [#8278](https://github.com/rust-lang/rust-clippy/pull/8278)
191 * [`op_ref`]: No longer lints in `BinOp` impl if that can cause recursion
192 [#8298](https://github.com/rust-lang/rust-clippy/pull/8298)
193 * [`enum_variant_names`]: No longer triggers for empty variant names
194 [#8329](https://github.com/rust-lang/rust-clippy/pull/8329)
195 * [`redundant_closure`]: No longer lints for `Arc<T>` or `Rc<T>`
196 [#8193](https://github.com/rust-lang/rust-clippy/pull/8193)
197 * [`iter_not_returning_iterator`]: No longer lints on trait implementations but therefore on trait definitions
198 [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
199 * [`single_match`]: No longer lints on exhaustive enum patterns without a wildcard
200 [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
201 * [`manual_swap`]: No longer lints on cases that involve automatic dereferences
202 [#8220](https://github.com/rust-lang/rust-clippy/pull/8220)
203 * [`useless_format`]: Now works for implicit named arguments
204 [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
206 ### Suggestion Fixes/Improvements
208 * [`needless_borrow`]: Prevent mutable borrows being moved and suggest removing the borrow on method calls
209 [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
210 * [`chars_next_cmp`]: Correctly excapes the suggestion
211 [#8376](https://github.com/rust-lang/rust-clippy/pull/8376)
212 * [`explicit_write`]: Add suggestions for `write!`s with format arguments
213 [#8365](https://github.com/rust-lang/rust-clippy/pull/8365)
214 * [`manual_memcpy`]: Suggests `copy_from_slice` when applicable
215 [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
216 * [`or_fun_call`]: Improved suggestion display for long arguments
217 [#8292](https://github.com/rust-lang/rust-clippy/pull/8292)
218 * [`unnecessary_cast`]: Now correctly includes the sign
219 [#8350](https://github.com/rust-lang/rust-clippy/pull/8350)
220 * [`cmp_owned`]: No longer flips the comparison order
221 [#8299](https://github.com/rust-lang/rust-clippy/pull/8299)
222 * [`explicit_counter_loop`]: Now correctly suggests `iter()` on references
223 [#8382](https://github.com/rust-lang/rust-clippy/pull/8382)
227 * [`manual_split_once`]
228 [#8250](https://github.com/rust-lang/rust-clippy/pull/8250)
230 ### Documentation Improvements
232 * [`map_flatten`]: Add documentation for the `Option` type
233 [#8354](https://github.com/rust-lang/rust-clippy/pull/8354)
234 * Document that Clippy's driver might use a different code generation than rustc
235 [#8037](https://github.com/rust-lang/rust-clippy/pull/8037)
236 * Clippy's lint list will now automatically focus the search box
237 [#8343](https://github.com/rust-lang/rust-clippy/pull/8343)
241 * Clippy now warns if we find multiple Clippy config files exist
242 [#8326](https://github.com/rust-lang/rust-clippy/pull/8326)
248 [e181011...0eff589](https://github.com/rust-lang/rust-clippy/compare/e181011...0eff589)
252 * [`index_refutable_slice`]
253 [#7643](https://github.com/rust-lang/rust-clippy/pull/7643)
254 * [`needless_splitn`]
255 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
256 * [`unnecessary_to_owned`]
257 [#7978](https://github.com/rust-lang/rust-clippy/pull/7978)
258 * [`needless_late_init`]
259 [#7995](https://github.com/rust-lang/rust-clippy/pull/7995)
260 * [`octal_escapes`] [#8007](https://github.com/rust-lang/rust-clippy/pull/8007)
261 * [`return_self_not_must_use`]
262 [#8071](https://github.com/rust-lang/rust-clippy/pull/8071)
263 * [`init_numbered_fields`]
264 [#8170](https://github.com/rust-lang/rust-clippy/pull/8170)
266 ### Moves and Deprecations
268 * Move `if_then_panic` to `pedantic` and rename to [`manual_assert`] (now
269 allow-by-default) [#7810](https://github.com/rust-lang/rust-clippy/pull/7810)
270 * Rename `disallow_type` to [`disallowed_types`] and `disallowed_method` to
271 [`disallowed_methods`]
272 [#7984](https://github.com/rust-lang/rust-clippy/pull/7984)
273 * Move [`map_flatten`] to `complexity` (now warn-by-default)
274 [#8054](https://github.com/rust-lang/rust-clippy/pull/8054)
278 * [`match_overlapping_arm`]: Fix false negative where after included ranges,
279 overlapping ranges weren't linted anymore
280 [#7909](https://github.com/rust-lang/rust-clippy/pull/7909)
281 * [`deprecated_cfg_attr`]: Now takes the specified MSRV into account
282 [#7944](https://github.com/rust-lang/rust-clippy/pull/7944)
283 * [`cast_lossless`]: Now also lints for `bool` to integer casts
284 [#7948](https://github.com/rust-lang/rust-clippy/pull/7948)
285 * [`let_underscore_lock`]: Also emit lints for the `parking_lot` crate
286 [#7957](https://github.com/rust-lang/rust-clippy/pull/7957)
287 * [`needless_borrow`]
288 [#7977](https://github.com/rust-lang/rust-clippy/pull/7977)
289 * Lint when a borrow is auto-dereffed more than once
290 * Lint in the trailing expression of a block for a match arm
291 * [`strlen_on_c_strings`]
292 [8001](https://github.com/rust-lang/rust-clippy/pull/8001)
293 * Lint when used without a fully-qualified path
294 * Suggest removing the surrounding unsafe block when possible
295 * [`non_ascii_literal`]: Now also lints on `char`s, not just `string`s
296 [#8034](https://github.com/rust-lang/rust-clippy/pull/8034)
297 * [`single_char_pattern`]: Now also lints on `split_inclusive`, `split_once`,
298 `rsplit_once`, `replace`, and `replacen`
299 [#8077](https://github.com/rust-lang/rust-clippy/pull/8077)
300 * [`unwrap_or_else_default`]: Now also lints on `std` constructors like
301 `Vec::new`, `HashSet::new`, and `HashMap::new`
302 [#8163](https://github.com/rust-lang/rust-clippy/pull/8163)
303 * [`shadow_reuse`]: Now also lints on shadowed `if let` bindings, instead of
305 [#8165](https://github.com/rust-lang/rust-clippy/pull/8165)
307 ### False Positive Fixes
309 * [`or_fun_call`], [`unnecessary_lazy_evaluations`]: Improve heuristics, so that
310 cheap functions (e.g. calling `.len()` on a `Vec`) won't get linted anymore
311 [#7639](https://github.com/rust-lang/rust-clippy/pull/7639)
312 * [`manual_split_once`]: No longer suggests code changing the original behavior
313 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
314 * Don't show [`no_effect`] or [`unnecessary_operation`] warning for unit struct
315 implementing `FnOnce`
316 [#7898](https://github.com/rust-lang/rust-clippy/pull/7898)
317 * [`semicolon_if_nothing_returned`]: Fixed a bug, where the lint wrongly
318 triggered on `let-else` statements
319 [#7955](https://github.com/rust-lang/rust-clippy/pull/7955)
320 * [`if_then_some_else_none`]: No longer lints if there is an early return
321 [#7980](https://github.com/rust-lang/rust-clippy/pull/7980)
322 * [`needless_collect`]: No longer suggests removal of `collect` when removal
323 would create code requiring mutably borrowing a value multiple times
324 [#7982](https://github.com/rust-lang/rust-clippy/pull/7982)
325 * [`shadow_same`]: Fix false positive for `async` function's params
326 [#7997](https://github.com/rust-lang/rust-clippy/pull/7997)
327 * [`suboptimal_flops`]: No longer triggers in constant functions
328 [#8009](https://github.com/rust-lang/rust-clippy/pull/8009)
329 * [`type_complexity`]: No longer lints on associated types in traits
330 [#8030](https://github.com/rust-lang/rust-clippy/pull/8030)
331 * [`question_mark`]: No longer lints if returned object is not local
332 [#8080](https://github.com/rust-lang/rust-clippy/pull/8080)
333 * [`option_if_let_else`]: No longer lint on complex sub-patterns
334 [#8086](https://github.com/rust-lang/rust-clippy/pull/8086)
335 * [`blocks_in_if_conditions`]: No longer lints on empty closures
336 [#8100](https://github.com/rust-lang/rust-clippy/pull/8100)
337 * [`enum_variant_names`]: No longer lint when first prefix is only a substring
339 [#8127](https://github.com/rust-lang/rust-clippy/pull/8127)
340 * [`identity_op`]: Only lint on integral operands
341 [#8183](https://github.com/rust-lang/rust-clippy/pull/8183)
343 ### Suggestion Fixes/Improvements
345 * [`search_is_some`]: Fix suggestion for `any()` not taking item by reference
346 [#7463](https://github.com/rust-lang/rust-clippy/pull/7463)
347 * [`almost_swapped`]: Now detects if there is a `no_std` or `no_core` attribute
348 and adapts the suggestion accordingly
349 [#7877](https://github.com/rust-lang/rust-clippy/pull/7877)
350 * [`redundant_pattern_matching`]: Fix suggestion for deref expressions
351 [#7949](https://github.com/rust-lang/rust-clippy/pull/7949)
352 * [`explicit_counter_loop`]: Now also produces a suggestion for non-`usize`
353 types [#7950](https://github.com/rust-lang/rust-clippy/pull/7950)
354 * [`manual_map`]: Fix suggestion when used with unsafe functions and blocks
355 [#7968](https://github.com/rust-lang/rust-clippy/pull/7968)
356 * [`option_map_or_none`]: Suggest `map` over `and_then` when possible
357 [#7971](https://github.com/rust-lang/rust-clippy/pull/7971)
358 * [`option_if_let_else`]: No longer expands macros in the suggestion
359 [#7974](https://github.com/rust-lang/rust-clippy/pull/7974)
360 * [`iter_cloned_collect`]: Suggest `copied` over `cloned` when possible
361 [#8006](https://github.com/rust-lang/rust-clippy/pull/8006)
362 * [`doc_markdown`]: No longer uses inline hints to improve readability of
363 suggestion [#8011](https://github.com/rust-lang/rust-clippy/pull/8011)
364 * [`needless_question_mark`]: Now better explains the suggestion
365 [#8028](https://github.com/rust-lang/rust-clippy/pull/8028)
366 * [`single_char_pattern`]: Escape backslash `\` in suggestion
367 [#8067](https://github.com/rust-lang/rust-clippy/pull/8067)
368 * [`needless_bool`]: Suggest `a != b` over `!(a == b)`
369 [#8117](https://github.com/rust-lang/rust-clippy/pull/8117)
370 * [`iter_skip_next`]: Suggest to add a `mut` if it is necessary in order to
371 apply this lints suggestion
372 [#8133](https://github.com/rust-lang/rust-clippy/pull/8133)
373 * [`neg_multiply`]: Now produces a suggestion
374 [#8144](https://github.com/rust-lang/rust-clippy/pull/8144)
375 * [`needless_return`]: Now suggests the unit type `()` over an empty block `{}`
376 in match arms [#8185](https://github.com/rust-lang/rust-clippy/pull/8185)
377 * [`suboptimal_flops`]: Now gives a syntactically correct suggestion for
378 `to_radians` and `to_degrees`
379 [#8187](https://github.com/rust-lang/rust-clippy/pull/8187)
383 * [`undocumented_unsafe_blocks`]
384 [#7945](https://github.com/rust-lang/rust-clippy/pull/7945)
385 [#7988](https://github.com/rust-lang/rust-clippy/pull/7988)
386 * [`unnecessary_cast`]
387 [#8167](https://github.com/rust-lang/rust-clippy/pull/8167)
389 ### Documentation Improvements
391 * [`print_stdout`], [`print_stderr`], [`dbg_macro`]: Document how the lint level
392 can be changed crate-wide
393 [#8040](https://github.com/rust-lang/rust-clippy/pull/8040)
394 * Added a note to the `README` that config changes don't apply to already
395 compiled code [#8175](https://github.com/rust-lang/rust-clippy/pull/8175)
400 list](https://rust-lang.github.io/rust-clippy/master/index.html) now displays
401 the version a lint was added. :tada:
402 [#7813](https://github.com/rust-lang/rust-clippy/pull/7813)
403 * New and improved issue templates
404 [#8032](https://github.com/rust-lang/rust-clippy/pull/8032)
405 * _Dev:_ Add `cargo dev lint` command, to run your modified Clippy version on a
406 file [#7917](https://github.com/rust-lang/rust-clippy/pull/7917)
412 [00e31fa...e181011](https://github.com/rust-lang/rust-clippy/compare/00e31fa...e181011)
416 * Move [`non_send_fields_in_send_ty`] to `nursery` (now allow-by-default)
417 [#8075](https://github.com/rust-lang/rust-clippy/pull/8075)
418 * [`useless_format`]: Handle implicit named arguments
419 [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
423 * [`transmute_num_to_bytes`]
424 [#7805](https://github.com/rust-lang/rust-clippy/pull/7805)
425 * [`match_str_case_mismatch`]
426 [#7806](https://github.com/rust-lang/rust-clippy/pull/7806)
427 * [`format_in_format_args`], [`to_string_in_format_args`]
428 [#7743](https://github.com/rust-lang/rust-clippy/pull/7743)
430 [#7682](https://github.com/rust-lang/rust-clippy/pull/7682)
431 * [`fn_to_numeric_cast_any`]
432 [#7705](https://github.com/rust-lang/rust-clippy/pull/7705)
433 * [`undocumented_unsafe_blocks`]
434 [#7748](https://github.com/rust-lang/rust-clippy/pull/7748)
435 * [`trailing_empty_array`]
436 [#7838](https://github.com/rust-lang/rust-clippy/pull/7838)
438 [#7878](https://github.com/rust-lang/rust-clippy/pull/7878)
440 ### Moves or deprecations of lints
442 * Move [`non_send_fields_in_send_ty`] to `suspicious`
443 [#7874](https://github.com/rust-lang/rust-clippy/pull/7874)
444 * Move [`non_ascii_literal`] to `restriction`
445 [#7907](https://github.com/rust-lang/rust-clippy/pull/7907)
447 ### Changes that expand what code existing lints cover
449 * [`question_mark`] now covers `Result`
450 [#7840](https://github.com/rust-lang/rust-clippy/pull/7840)
451 * Make [`useless_format`] recognize bare `format!("")`
452 [#7801](https://github.com/rust-lang/rust-clippy/pull/7801)
453 * Lint on underscored variables with no side effects in [`no_effect`]
454 [#7775](https://github.com/rust-lang/rust-clippy/pull/7775)
455 * Expand [`match_ref_pats`] to check for multiple reference patterns
456 [#7800](https://github.com/rust-lang/rust-clippy/pull/7800)
458 ### False positive fixes
460 * Fix false positive of [`implicit_saturating_sub`] with `else` clause
461 [#7832](https://github.com/rust-lang/rust-clippy/pull/7832)
462 * Fix [`question_mark`] when there is call in conditional predicate
463 [#7860](https://github.com/rust-lang/rust-clippy/pull/7860)
464 * [`mut_mut`] no longer lints when type is defined in external macros
465 [#7795](https://github.com/rust-lang/rust-clippy/pull/7795)
466 * Avoid [`eq_op`] in test functions
467 [#7811](https://github.com/rust-lang/rust-clippy/pull/7811)
468 * [`cast_possible_truncation`] no longer lints when cast is coming from `signum`
469 method call [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
470 * [`match_str_case_mismatch`] no longer lints on uncased characters
471 [#7865](https://github.com/rust-lang/rust-clippy/pull/7865)
472 * [`ptr_arg`] no longer lints references to type aliases
473 [#7890](https://github.com/rust-lang/rust-clippy/pull/7890)
474 * [`missing_safety_doc`] now also accepts "implementation safety" headers
475 [#7856](https://github.com/rust-lang/rust-clippy/pull/7856)
476 * [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]`
477 attribute [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
478 * [`if_not_else`] now ignores else-if statements
479 [#7895](https://github.com/rust-lang/rust-clippy/pull/7895)
480 * Avoid linting [`cast_possible_truncation`] on bit-reducing operations
481 [#7819](https://github.com/rust-lang/rust-clippy/pull/7819)
482 * Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are
483 involved [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
484 * [`unnecessary_sort_by`] now checks if argument implements `Ord` trait
485 [#7824](https://github.com/rust-lang/rust-clippy/pull/7824)
486 * Fix false positive in [`match_overlapping_arm`]
487 [#7847](https://github.com/rust-lang/rust-clippy/pull/7847)
488 * Prevent [`needless_lifetimes`] false positive in `async` function definition
489 [#7901](https://github.com/rust-lang/rust-clippy/pull/7901)
491 ### Suggestion fixes/improvements
493 * Keep an initial `::` when [`doc_markdown`] suggests to use ticks
494 [#7916](https://github.com/rust-lang/rust-clippy/pull/7916)
495 * Add a machine applicable suggestion for the [`doc_markdown`] missing backticks
496 lint [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
497 * [`equatable_if_let`] no longer expands macros in the suggestion
498 [#7788](https://github.com/rust-lang/rust-clippy/pull/7788)
499 * Make [`shadow_reuse`] suggestion less verbose
500 [#7782](https://github.com/rust-lang/rust-clippy/pull/7782)
504 * Fix ICE in [`enum_variant_names`]
505 [#7873](https://github.com/rust-lang/rust-clippy/pull/7873)
506 * Fix ICE in [`undocumented_unsafe_blocks`]
507 [#7891](https://github.com/rust-lang/rust-clippy/pull/7891)
509 ### Documentation improvements
511 * Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`],
512 [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
513 [#7827](https://github.com/rust-lang/rust-clippy/pull/7827)
514 * Fix typo in example for [`match_result_ok`]
515 [#7815](https://github.com/rust-lang/rust-clippy/pull/7815)
519 * Allow giving reasons for [`disallowed_types`]
520 [#7791](https://github.com/rust-lang/rust-clippy/pull/7791)
521 * Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust
522 2021. [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
523 * Fix regression in [`semicolon_if_nothing_returned`] on macros containing while
524 loops [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
525 * Added a new configuration `literal-suffix-style` to enforce a certain style
526 writing [`unseparated_literal_suffix`]
527 [#7726](https://github.com/rust-lang/rust-clippy/pull/7726)
533 [7bfc26e...00e31fa](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...00e31fa)
537 * [`negative_feature_names`]
538 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
539 * [`redundant_feature_names`]
540 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
541 * [`mod_module_files`]
542 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
543 * [`self_named_module_files`]
544 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
545 * [`manual_split_once`]
546 [#7565](https://github.com/rust-lang/rust-clippy/pull/7565)
547 * [`derivable_impls`]
548 [#7570](https://github.com/rust-lang/rust-clippy/pull/7570)
549 * [`needless_option_as_deref`]
550 [#7596](https://github.com/rust-lang/rust-clippy/pull/7596)
551 * [`iter_not_returning_iterator`]
552 [#7610](https://github.com/rust-lang/rust-clippy/pull/7610)
553 * [`same_name_method`]
554 [#7653](https://github.com/rust-lang/rust-clippy/pull/7653)
555 * [`manual_assert`] [#7669](https://github.com/rust-lang/rust-clippy/pull/7669)
556 * [`non_send_fields_in_send_ty`]
557 [#7709](https://github.com/rust-lang/rust-clippy/pull/7709)
558 * [`equatable_if_let`]
559 [#7762](https://github.com/rust-lang/rust-clippy/pull/7762)
561 ### Moves and Deprecations
563 * Move [`shadow_unrelated`] to `restriction`
564 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
565 * Move [`option_if_let_else`] to `nursery`
566 [#7568](https://github.com/rust-lang/rust-clippy/pull/7568)
567 * Move [`branches_sharing_code`] to `nursery`
568 [#7595](https://github.com/rust-lang/rust-clippy/pull/7595)
569 * Rename `if_let_some_result` to [`match_result_ok`] which now also handles
570 `while let` cases [#7608](https://github.com/rust-lang/rust-clippy/pull/7608)
571 * Move [`many_single_char_names`] to `pedantic`
572 [#7671](https://github.com/rust-lang/rust-clippy/pull/7671)
573 * Move [`float_cmp`] to `pedantic`
574 [#7692](https://github.com/rust-lang/rust-clippy/pull/7692)
575 * Rename `box_vec` to [`box_collection`] and lint on more general cases
576 [#7693](https://github.com/rust-lang/rust-clippy/pull/7693)
577 * Uplift `invalid_atomic_ordering` to rustc
578 [rust-lang/rust#84039](https://github.com/rust-lang/rust/pull/84039)
582 * Rewrite the `shadow*` lints, so that they find a lot more shadows and are not
583 limited to certain patterns
584 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
585 * The `avoid-breaking-exported-api` configuration now also works for
586 [`box_collection`], [`redundant_allocation`], [`rc_buffer`], [`vec_box`],
587 [`option_option`], [`linkedlist`], [`rc_mutex`]
588 [#7560](https://github.com/rust-lang/rust-clippy/pull/7560)
589 * [`unnecessary_unwrap`]: Now also checks for `expect`s
590 [#7584](https://github.com/rust-lang/rust-clippy/pull/7584)
591 * [`disallowed_methods`]: Allow adding a reason that will be displayed with the
593 [#7621](https://github.com/rust-lang/rust-clippy/pull/7621)
594 * [`approx_constant`]: Now checks the MSRV for `LOG10_2` and `LOG2_10`
595 [#7629](https://github.com/rust-lang/rust-clippy/pull/7629)
596 * [`approx_constant`]: Add `TAU`
597 [#7642](https://github.com/rust-lang/rust-clippy/pull/7642)
598 * [`needless_borrow`]: Now also lints on needless mutable borrows
599 [#7657](https://github.com/rust-lang/rust-clippy/pull/7657)
600 * [`missing_safety_doc`]: Now also lints on unsafe traits
601 [#7734](https://github.com/rust-lang/rust-clippy/pull/7734)
603 ### False Positive Fixes
605 * [`manual_map`]: No longer lints when the option is borrowed in the match and
606 also consumed in the arm
607 [#7531](https://github.com/rust-lang/rust-clippy/pull/7531)
608 * [`filter_next`]: No longer lints if `filter` method is not the
609 `Iterator::filter` method
610 [#7562](https://github.com/rust-lang/rust-clippy/pull/7562)
611 * [`manual_flatten`]: No longer lints if expression is used after `if let`
612 [#7566](https://github.com/rust-lang/rust-clippy/pull/7566)
613 * [`option_if_let_else`]: Multiple fixes
614 [#7573](https://github.com/rust-lang/rust-clippy/pull/7573)
615 * `break` and `continue` statements local to the would-be closure are
617 * Don't lint in const contexts
618 * Don't lint when yield expressions are used
619 * Don't lint when the captures made by the would-be closure conflict with
621 * Don't lint when a field of a local is used when the type could be
622 potentially moved from
623 * In some cases, don't lint when scrutinee expression conflicts with the
624 captures of the would-be closure
625 * [`redundant_allocation`]: No longer lints on `Box<Box<dyn T>>` which replaces
626 wide pointers with thin pointers
627 [#7592](https://github.com/rust-lang/rust-clippy/pull/7592)
628 * [`bool_assert_comparison`]: No longer lints on types that do not implement the
629 `Not` trait with `Output = bool`
630 [#7605](https://github.com/rust-lang/rust-clippy/pull/7605)
631 * [`mut_range_bound`]: No longer lints on range bound mutations, that are
632 immediately followed by a `break;`
633 [#7607](https://github.com/rust-lang/rust-clippy/pull/7607)
634 * [`mutable_key_type`]: Improve accuracy and document remaining false positives
636 [#7640](https://github.com/rust-lang/rust-clippy/pull/7640)
637 * [`redundant_closure`]: Rewrite the lint to fix various false positives and
638 false negatives [#7661](https://github.com/rust-lang/rust-clippy/pull/7661)
639 * [`large_enum_variant`]: No longer wrongly identifies the second largest
640 variant [#7677](https://github.com/rust-lang/rust-clippy/pull/7677)
641 * [`needless_return`]: No longer lints on let-else expressions
642 [#7685](https://github.com/rust-lang/rust-clippy/pull/7685)
643 * [`suspicious_else_formatting`]: No longer lints in proc-macros
644 [#7707](https://github.com/rust-lang/rust-clippy/pull/7707)
645 * [`excessive_precision`]: No longer lints when in some cases the float was
646 already written in the shortest form
647 [#7722](https://github.com/rust-lang/rust-clippy/pull/7722)
648 * [`doc_markdown`]: No longer lints on intra-doc links
649 [#7772](https://github.com/rust-lang/rust-clippy/pull/7772)
651 ### Suggestion Fixes/Improvements
653 * [`unnecessary_operation`]: Recommend using an `assert!` instead of using a
654 function call in an indexing operation
655 [#7453](https://github.com/rust-lang/rust-clippy/pull/7453)
656 * [`manual_split_once`]: Produce semantically equivalent suggestion when
657 `rsplitn` is used [#7663](https://github.com/rust-lang/rust-clippy/pull/7663)
658 * [`while_let_on_iterator`]: Produce correct suggestion when using `&mut`
659 [#7690](https://github.com/rust-lang/rust-clippy/pull/7690)
660 * [`manual_assert`]: No better handles complex conditions
661 [#7741](https://github.com/rust-lang/rust-clippy/pull/7741)
662 * Correctly handle signs in exponents in numeric literals lints
663 [#7747](https://github.com/rust-lang/rust-clippy/pull/7747)
664 * [`suspicious_map`]: Now also suggests to use `inspect` as an alternative
665 [#7770](https://github.com/rust-lang/rust-clippy/pull/7770)
666 * Drop exponent from suggestion if it is 0 in numeric literals lints
667 [#7774](https://github.com/rust-lang/rust-clippy/pull/7774)
671 * [`implicit_hasher`]
672 [#7761](https://github.com/rust-lang/rust-clippy/pull/7761)
676 * Clippy now uses the 2021
677 [Edition!](https://www.youtube.com/watch?v=q0aNduqb2Ro)
678 [#7664](https://github.com/rust-lang/rust-clippy/pull/7664)
684 [74d1561...7bfc26e](https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e)
688 * [`unwrap_or_else_default`]
689 [#7516](https://github.com/rust-lang/rust-clippy/pull/7516)
693 * [`needless_continue`]: Now also lints in `loop { continue; }` case
694 [#7477](https://github.com/rust-lang/rust-clippy/pull/7477)
695 * [`disallowed_types`]: Now also primitive types can be disallowed
696 [#7488](https://github.com/rust-lang/rust-clippy/pull/7488)
697 * [`manual_swap`]: Now also lints on xor swaps
698 [#7506](https://github.com/rust-lang/rust-clippy/pull/7506)
699 * [`map_flatten`]: Now also lints on the `Result` type
700 [#7522](https://github.com/rust-lang/rust-clippy/pull/7522)
701 * [`no_effect`]: Now also lints on inclusive ranges
702 [#7556](https://github.com/rust-lang/rust-clippy/pull/7556)
704 ### False Positive Fixes
706 * [`nonstandard_macro_braces`]: No longer lints on similar named nested macros
707 [#7478](https://github.com/rust-lang/rust-clippy/pull/7478)
708 * [`too_many_lines`]: No longer lints in closures to avoid duplicated diagnostics
709 [#7534](https://github.com/rust-lang/rust-clippy/pull/7534)
710 * [`similar_names`]: No longer complains about `iter` and `item` being too
711 similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546)
713 ### Suggestion Fixes/Improvements
715 * [`similar_names`]: No longer suggests to insert or add an underscore as a fix
716 [#7221](https://github.com/rust-lang/rust-clippy/pull/7221)
717 * [`new_without_default`]: No longer shows the full qualified type path when
718 suggesting adding a `Default` implementation
719 [#7493](https://github.com/rust-lang/rust-clippy/pull/7493)
720 * [`while_let_on_iterator`]: Now suggests re-borrowing mutable references
721 [#7520](https://github.com/rust-lang/rust-clippy/pull/7520)
722 * [`extend_with_drain`]: Improve code suggestion for mutable and immutable
723 references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533)
724 * [`trivially_copy_pass_by_ref`]: Now properly handles `Self` type
725 [#7535](https://github.com/rust-lang/rust-clippy/pull/7535)
726 * [`never_loop`]: Now suggests using `if let` instead of a `for` loop when
727 applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541)
729 ### Documentation Improvements
731 * Clippy now uses a lint to generate its lint documentation. [Lints all the way
732 down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down).
733 [#7502](https://github.com/rust-lang/rust-clippy/pull/7502)
734 * Reworked Clippy's website:
735 [#7172](https://github.com/rust-lang/rust-clippy/issues/7172)
736 [#7279](https://github.com/rust-lang/rust-clippy/pull/7279)
737 * Added applicability information about lints
738 * Added a link to jump into the implementation
739 * Improved loading times
740 * Adapted some styling
741 * `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag
742 [#7492](https://github.com/rust-lang/rust-clippy/pull/7492)
743 * [`unnested_or_patterns`]: Removed `or_patterns` feature gate in the code
744 example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507)
750 [3ae8faf...74d1561](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561)
752 ### Important Changes
754 * Stabilized `cargo clippy --fix` :tada:
755 [#7405](https://github.com/rust-lang/rust-clippy/pull/7405)
760 [#7316](https://github.com/rust-lang/rust-clippy/pull/7316)
761 * [`nonstandard_macro_braces`]
762 [#7299](https://github.com/rust-lang/rust-clippy/pull/7299)
763 * [`strlen_on_c_strings`]
764 [#7243](https://github.com/rust-lang/rust-clippy/pull/7243)
765 * [`self_named_constructors`]
766 [#7403](https://github.com/rust-lang/rust-clippy/pull/7403)
767 * [`disallowed_script_idents`]
768 [#7400](https://github.com/rust-lang/rust-clippy/pull/7400)
769 * [`disallowed_types`]
770 [#7315](https://github.com/rust-lang/rust-clippy/pull/7315)
771 * [`missing_enforced_import_renames`]
772 [#7300](https://github.com/rust-lang/rust-clippy/pull/7300)
773 * [`extend_with_drain`]
774 [#7270](https://github.com/rust-lang/rust-clippy/pull/7270)
776 ### Moves and Deprecations
778 * Moved [`from_iter_instead_of_collect`] to `pedantic`
779 [#7375](https://github.com/rust-lang/rust-clippy/pull/7375)
780 * Added `suspicious` as a new lint group for *code that is most likely wrong or useless*
781 [#7350](https://github.com/rust-lang/rust-clippy/pull/7350)
782 * Moved [`blanket_clippy_restriction_lints`] to `suspicious`
783 * Moved [`empty_loop`] to `suspicious`
784 * Moved [`eval_order_dependence`] to `suspicious`
785 * Moved [`float_equality_without_abs`] to `suspicious`
786 * Moved [`for_loops_over_fallibles`] to `suspicious`
787 * Moved [`misrefactored_assign_op`] to `suspicious`
788 * Moved [`mut_range_bound`] to `suspicious`
789 * Moved [`mutable_key_type`] to `suspicious`
790 * Moved [`suspicious_arithmetic_impl`] to `suspicious`
791 * Moved [`suspicious_assignment_formatting`] to `suspicious`
792 * Moved [`suspicious_else_formatting`] to `suspicious`
793 * Moved [`suspicious_map`] to `suspicious`
794 * Moved [`suspicious_op_assign_impl`] to `suspicious`
795 * Moved [`suspicious_unary_op_formatting`] to `suspicious`
799 * [`while_let_on_iterator`]: Now suggests `&mut iter` inside closures
800 [#7262](https://github.com/rust-lang/rust-clippy/pull/7262)
802 * Now detects unbalanced ticks
803 [#7357](https://github.com/rust-lang/rust-clippy/pull/7357)
804 * Add `FreeBSD` to the default configuration as an allowed identifier
805 [#7334](https://github.com/rust-lang/rust-clippy/pull/7334)
806 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]: Now allows wildcards for enums with unstable
808 [#7407](https://github.com/rust-lang/rust-clippy/pull/7407)
809 * [`redundant_allocation`]: Now additionally supports the `Arc<>` type
810 [#7308](https://github.com/rust-lang/rust-clippy/pull/7308)
811 * [`blacklisted_name`]: Now allows blacklisted names in test code
812 [#7379](https://github.com/rust-lang/rust-clippy/pull/7379)
813 * [`redundant_closure`]: Suggests `&mut` for `FnMut`
814 [#7437](https://github.com/rust-lang/rust-clippy/pull/7437)
815 * [`disallowed_methods`], [`disallowed_types`]: The configuration values `disallowed-method` and `disallowed-type`
816 no longer require fully qualified paths
817 [#7345](https://github.com/rust-lang/rust-clippy/pull/7345)
818 * [`zst_offset`]: Fixed lint invocation after it was accidentally suppressed
819 [#7396](https://github.com/rust-lang/rust-clippy/pull/7396)
821 ### False Positive Fixes
823 * [`default_numeric_fallback`]: No longer lints on float literals as function arguments
824 [#7446](https://github.com/rust-lang/rust-clippy/pull/7446)
825 * [`use_self`]: No longer lints on type parameters
826 [#7288](https://github.com/rust-lang/rust-clippy/pull/7288)
827 * [`unimplemented`]: Now ignores the `assert` and `debug_assert` macros
828 [#7439](https://github.com/rust-lang/rust-clippy/pull/7439)
829 * [`branches_sharing_code`]: Now always checks for block expressions
830 [#7462](https://github.com/rust-lang/rust-clippy/pull/7462)
831 * [`field_reassign_with_default`]: No longer triggers in macros
832 [#7160](https://github.com/rust-lang/rust-clippy/pull/7160)
833 * [`redundant_clone`]: No longer lints on required clones for borrowed data
834 [#7346](https://github.com/rust-lang/rust-clippy/pull/7346)
835 * [`default_numeric_fallback`]: No longer triggers in external macros
836 [#7325](https://github.com/rust-lang/rust-clippy/pull/7325)
837 * [`needless_bool`]: No longer lints in macros
838 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
839 * [`useless_format`]: No longer triggers when additional text is being appended
840 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
841 * [`assertions_on_constants`]: `cfg!(...)` is no longer considered to be a constant
842 [#7319](https://github.com/rust-lang/rust-clippy/pull/7319)
844 ### Suggestion Fixes/Improvements
846 * [`needless_collect`]: Now show correct lint messages for shadowed values
847 [#7289](https://github.com/rust-lang/rust-clippy/pull/7289)
848 * [`wrong_pub_self_convention`]: The deprecated message now suggest the correct configuration value
849 [#7382](https://github.com/rust-lang/rust-clippy/pull/7382)
850 * [`semicolon_if_nothing_returned`]: Allow missing semicolon in blocks with only one expression
851 [#7326](https://github.com/rust-lang/rust-clippy/pull/7326)
855 * [`zero_sized_map_values`]
856 [#7470](https://github.com/rust-lang/rust-clippy/pull/7470)
857 * [`redundant_pattern_matching`]
858 [#7471](https://github.com/rust-lang/rust-clippy/pull/7471)
860 [#7473](https://github.com/rust-lang/rust-clippy/pull/7473)
862 [#7428](https://github.com/rust-lang/rust-clippy/pull/7428)
868 [7c7683c...3ae8faf](https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf)
872 - [`ref_binding_to_reference`]
873 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
874 - [`needless_bitwise_bool`]
875 [#7133](https://github.com/rust-lang/rust-clippy/pull/7133)
876 - [`unused_async`] [#7225](https://github.com/rust-lang/rust-clippy/pull/7225)
877 - [`manual_str_repeat`]
878 [#7265](https://github.com/rust-lang/rust-clippy/pull/7265)
879 - [`suspicious_splitn`]
880 [#7292](https://github.com/rust-lang/rust-clippy/pull/7292)
882 ### Moves and Deprecations
884 - Deprecate `pub_enum_variant_names` and `wrong_pub_self_convention` in favor of
885 the new `avoid-breaking-exported-api` config option (see
886 [Enhancements](#1-54-enhancements))
887 [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
888 - Move [`inconsistent_struct_constructor`] to `pedantic`
889 [#7193](https://github.com/rust-lang/rust-clippy/pull/7193)
890 - Move [`needless_borrow`] to `style` (now warn-by-default)
891 [#7254](https://github.com/rust-lang/rust-clippy/pull/7254)
892 - Move [`suspicious_operation_groupings`] to `nursery`
893 [#7266](https://github.com/rust-lang/rust-clippy/pull/7266)
894 - Move [`semicolon_if_nothing_returned`] to `pedantic`
895 [#7268](https://github.com/rust-lang/rust-clippy/pull/7268)
897 ### Enhancements <a name="1-54-enhancements"></a>
899 - [`while_let_on_iterator`]: Now also lints in nested loops
900 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
901 - [`single_char_pattern`]: Now also lints on `strip_prefix` and `strip_suffix`
902 [#7156](https://github.com/rust-lang/rust-clippy/pull/7156)
903 - [`needless_collect`]: Now also lints on assignments with type annotations
904 [#7163](https://github.com/rust-lang/rust-clippy/pull/7163)
905 - [`if_then_some_else_none`]: Now works with the MSRV config
906 [#7177](https://github.com/rust-lang/rust-clippy/pull/7177)
907 - Add `avoid-breaking-exported-api` config option for the lints
908 [`enum_variant_names`], [`large_types_passed_by_value`],
909 [`trivially_copy_pass_by_ref`], [`unnecessary_wraps`],
910 [`upper_case_acronyms`], and [`wrong_self_convention`]. We recommend to set
911 this configuration option to `false` before a major release (1.0/2.0/...) to
912 clean up the API [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
913 - [`needless_collect`]: Now lints on even more data structures
914 [#7188](https://github.com/rust-lang/rust-clippy/pull/7188)
915 - [`missing_docs_in_private_items`]: No longer sees `#[<name> = "<value>"]` like
916 attributes as sufficient documentation
917 [#7281](https://github.com/rust-lang/rust-clippy/pull/7281)
918 - [`needless_collect`], [`short_circuit_statement`], [`unnecessary_operation`]:
919 Now work as expected when used with `allow`
920 [#7282](https://github.com/rust-lang/rust-clippy/pull/7282)
922 ### False Positive Fixes
924 - [`implicit_return`]: Now takes all diverging functions in account to avoid
925 false positives [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
926 - [`while_let_on_iterator`]: No longer lints when the iterator is a struct field
927 and the struct is used in the loop
928 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
929 - [`multiple_inherent_impl`]: No longer lints with generic arguments
930 [#7089](https://github.com/rust-lang/rust-clippy/pull/7089)
931 - [`comparison_chain`]: No longer lints in a `const` context
932 [#7118](https://github.com/rust-lang/rust-clippy/pull/7118)
933 - [`while_immutable_condition`]: Fix false positive where mutation in the loop
934 variable wasn't picked up
935 [#7144](https://github.com/rust-lang/rust-clippy/pull/7144)
936 - [`default_trait_access`]: No longer lints in macros
937 [#7150](https://github.com/rust-lang/rust-clippy/pull/7150)
938 - [`needless_question_mark`]: No longer lints when the inner value is implicitly
939 dereferenced [#7165](https://github.com/rust-lang/rust-clippy/pull/7165)
940 - [`unused_unit`]: No longer lints when multiple macro contexts are involved
941 [#7167](https://github.com/rust-lang/rust-clippy/pull/7167)
942 - [`eval_order_dependence`]: Fix false positive in async context
943 [#7174](https://github.com/rust-lang/rust-clippy/pull/7174)
944 - [`unnecessary_filter_map`]: No longer lints if the `filter_map` changes the
945 type [#7175](https://github.com/rust-lang/rust-clippy/pull/7175)
946 - [`wrong_self_convention`]: No longer lints in trait implementations of
947 non-`Copy` types [#7182](https://github.com/rust-lang/rust-clippy/pull/7182)
948 - [`suboptimal_flops`]: No longer lints on `powi(2)`
949 [#7201](https://github.com/rust-lang/rust-clippy/pull/7201)
950 - [`wrong_self_convention`]: No longer lints if there is no implicit `self`
951 [#7215](https://github.com/rust-lang/rust-clippy/pull/7215)
952 - [`option_if_let_else`]: No longer lints on `else if let` pattern
953 [#7216](https://github.com/rust-lang/rust-clippy/pull/7216)
954 - [`use_self`], [`useless_conversion`]: Fix false positives when generic
955 arguments are involved
956 [#7223](https://github.com/rust-lang/rust-clippy/pull/7223)
957 - [`manual_unwrap_or`]: Fix false positive with deref coercion
958 [#7233](https://github.com/rust-lang/rust-clippy/pull/7233)
959 - [`similar_names`]: No longer lints on `wparam`/`lparam`
960 [#7255](https://github.com/rust-lang/rust-clippy/pull/7255)
961 - [`redundant_closure`]: No longer lints on using the `vec![]` macro in a
962 closure [#7263](https://github.com/rust-lang/rust-clippy/pull/7263)
964 ### Suggestion Fixes/Improvements
966 - [`implicit_return`]
967 [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
968 - Fix suggestion for async functions
969 - Improve suggestion with macros
970 - Suggest to change `break` to `return` when appropriate
971 - [`while_let_on_iterator`]: Now suggests `&mut iter` when necessary
972 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
973 - [`match_single_binding`]: Improve suggestion when match scrutinee has side
974 effects [#7095](https://github.com/rust-lang/rust-clippy/pull/7095)
975 - [`needless_borrow`]: Now suggests to also change usage sites as needed
976 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
977 - [`write_with_newline`]: Improve suggestion when only `\n` is written to the
978 buffer [#7183](https://github.com/rust-lang/rust-clippy/pull/7183)
979 - [`from_iter_instead_of_collect`]: The suggestion is now auto applicable also
980 when a `<_ as Trait>::_` is involved
981 [#7264](https://github.com/rust-lang/rust-clippy/pull/7264)
982 - [`not_unsafe_ptr_arg_deref`]: Improved error message
983 [#7294](https://github.com/rust-lang/rust-clippy/pull/7294)
987 - Fix ICE when running Clippy on `libstd`
988 [#7140](https://github.com/rust-lang/rust-clippy/pull/7140)
989 - [`implicit_return`]
990 [#7242](https://github.com/rust-lang/rust-clippy/pull/7242)
996 [6ed6f1e...7c7683c](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...7c7683c)
1000 * [`option_filter_map`]
1001 [#6342](https://github.com/rust-lang/rust-clippy/pull/6342)
1002 * [`branches_sharing_code`]
1003 [#6463](https://github.com/rust-lang/rust-clippy/pull/6463)
1004 * [`needless_for_each`]
1005 [#6706](https://github.com/rust-lang/rust-clippy/pull/6706)
1006 * [`if_then_some_else_none`]
1007 [#6859](https://github.com/rust-lang/rust-clippy/pull/6859)
1008 * [`non_octal_unix_permissions`]
1009 [#7001](https://github.com/rust-lang/rust-clippy/pull/7001)
1010 * [`unnecessary_self_imports`]
1011 [#7072](https://github.com/rust-lang/rust-clippy/pull/7072)
1012 * [`bool_assert_comparison`]
1013 [#7083](https://github.com/rust-lang/rust-clippy/pull/7083)
1014 * [`cloned_instead_of_copied`]
1015 [#7098](https://github.com/rust-lang/rust-clippy/pull/7098)
1016 * [`flat_map_option`]
1017 [#7101](https://github.com/rust-lang/rust-clippy/pull/7101)
1019 ### Moves and Deprecations
1021 * Deprecate [`filter_map`] lint
1022 [#7059](https://github.com/rust-lang/rust-clippy/pull/7059)
1023 * Move [`transmute_ptr_to_ptr`] to `pedantic`
1024 [#7102](https://github.com/rust-lang/rust-clippy/pull/7102)
1028 * [`mem_replace_with_default`]: Also lint on common std constructors
1029 [#6820](https://github.com/rust-lang/rust-clippy/pull/6820)
1030 * [`wrong_self_convention`]: Also lint on `to_*_mut` methods
1031 [#6828](https://github.com/rust-lang/rust-clippy/pull/6828)
1032 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]:
1033 [#6863](https://github.com/rust-lang/rust-clippy/pull/6863)
1034 * Attempt to find a common path prefix in suggestion
1035 * Don't lint on `Option` and `Result`
1036 * Consider `Self` prefix
1037 * [`explicit_deref_methods`]: Also lint on chained `deref` calls
1038 [#6865](https://github.com/rust-lang/rust-clippy/pull/6865)
1039 * [`or_fun_call`]: Also lint on `unsafe` blocks
1040 [#6928](https://github.com/rust-lang/rust-clippy/pull/6928)
1041 * [`vec_box`], [`linkedlist`], [`option_option`]: Also lint in `const` and
1042 `static` items [#6938](https://github.com/rust-lang/rust-clippy/pull/6938)
1043 * [`search_is_some`]: Also check for `is_none`
1044 [#6942](https://github.com/rust-lang/rust-clippy/pull/6942)
1045 * [`string_lit_as_bytes`]: Also lint on `into_bytes`
1046 [#6959](https://github.com/rust-lang/rust-clippy/pull/6959)
1047 * [`len_without_is_empty`]: Also lint if function signatures of `len` and
1048 `is_empty` don't match
1049 [#6980](https://github.com/rust-lang/rust-clippy/pull/6980)
1050 * [`redundant_pattern_matching`]: Also lint if the pattern is a `&` pattern
1051 [#6991](https://github.com/rust-lang/rust-clippy/pull/6991)
1052 * [`clone_on_copy`]: Also lint on chained method calls taking `self` by value
1053 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1054 * [`missing_panics_doc`]: Also lint on `assert_eq!` and `assert_ne!`
1055 [#7029](https://github.com/rust-lang/rust-clippy/pull/7029)
1056 * [`needless_return`]: Also lint in `async` functions
1057 [#7067](https://github.com/rust-lang/rust-clippy/pull/7067)
1058 * [`unused_io_amount`]: Also lint on expressions like `_.read().ok()?`
1059 [#7100](https://github.com/rust-lang/rust-clippy/pull/7100)
1060 * [`iter_cloned_collect`]: Also lint on large arrays, since const-generics are
1061 now stable [#7138](https://github.com/rust-lang/rust-clippy/pull/7138)
1063 ### False Positive Fixes
1065 * [`upper_case_acronyms`]: No longer lints on public items
1066 [#6805](https://github.com/rust-lang/rust-clippy/pull/6805)
1067 * [`suspicious_map`]: No longer lints when side effects may occur inside the
1068 `map` call [#6831](https://github.com/rust-lang/rust-clippy/pull/6831)
1069 * [`manual_map`], [`manual_unwrap_or`]: No longer lints in `const` functions
1070 [#6917](https://github.com/rust-lang/rust-clippy/pull/6917)
1071 * [`wrong_self_convention`]: Now respects `Copy` types
1072 [#6924](https://github.com/rust-lang/rust-clippy/pull/6924)
1073 * [`needless_question_mark`]: No longer lints if the `?` and the `Some(..)` come
1074 from different macro contexts [#6935](https://github.com/rust-lang/rust-clippy/pull/6935)
1075 * [`map_entry`]: Better detect if the entry API can be used
1076 [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
1077 * [`or_fun_call`]: No longer lints on some `len` function calls
1078 [#6950](https://github.com/rust-lang/rust-clippy/pull/6950)
1079 * [`new_ret_no_self`]: No longer lints when `Self` is returned with different
1080 generic arguments [#6952](https://github.com/rust-lang/rust-clippy/pull/6952)
1081 * [`upper_case_acronyms`]: No longer lints on public items
1082 [#6981](https://github.com/rust-lang/rust-clippy/pull/6981)
1083 * [`explicit_into_iter_loop`]: Only lint when `into_iter` is an implementation
1084 of `IntoIterator` [#6982](https://github.com/rust-lang/rust-clippy/pull/6982)
1085 * [`expl_impl_clone_on_copy`]: Take generic constraints into account before
1086 suggesting to use `derive` instead
1087 [#6993](https://github.com/rust-lang/rust-clippy/pull/6993)
1088 * [`missing_panics_doc`]: No longer lints when only debug-assertions are used
1089 [#6996](https://github.com/rust-lang/rust-clippy/pull/6996)
1090 * [`clone_on_copy`]: Only lint when using the `Clone` trait
1091 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1092 * [`wrong_self_convention`]: No longer lints inside a trait implementation
1093 [#7002](https://github.com/rust-lang/rust-clippy/pull/7002)
1094 * [`redundant_clone`]: No longer lints when the cloned value is modified while
1096 [#7011](https://github.com/rust-lang/rust-clippy/pull/7011)
1097 * [`same_item_push`]: No longer lints if the `Vec` is used in the loop body
1098 [#7018](https://github.com/rust-lang/rust-clippy/pull/7018)
1099 * [`cargo_common_metadata`]: Remove author requirement
1100 [#7026](https://github.com/rust-lang/rust-clippy/pull/7026)
1101 * [`panic_in_result_fn`]: No longer lints on `debug_assert` family
1102 [#7060](https://github.com/rust-lang/rust-clippy/pull/7060)
1103 * [`panic`]: No longer wrongfully lints on `debug_assert` with message
1104 [#7063](https://github.com/rust-lang/rust-clippy/pull/7063)
1105 * [`wrong_self_convention`]: No longer lints in trait implementations where no
1106 `self` is involved [#7064](https://github.com/rust-lang/rust-clippy/pull/7064)
1107 * [`missing_const_for_fn`]: No longer lints when unstable `const` function is
1108 involved [#7076](https://github.com/rust-lang/rust-clippy/pull/7076)
1109 * [`suspicious_else_formatting`]: Allow Allman style braces
1110 [#7087](https://github.com/rust-lang/rust-clippy/pull/7087)
1111 * [`inconsistent_struct_constructor`]: No longer lints in macros
1112 [#7097](https://github.com/rust-lang/rust-clippy/pull/7097)
1113 * [`single_component_path_imports`]: No longer lints on macro re-exports
1114 [#7120](https://github.com/rust-lang/rust-clippy/pull/7120)
1116 ### Suggestion Fixes/Improvements
1118 * [`redundant_pattern_matching`]: Add a note when applying this lint would
1119 change the drop order
1120 [#6568](https://github.com/rust-lang/rust-clippy/pull/6568)
1121 * [`write_literal`], [`print_literal`]: Add auto-applicable suggestion
1122 [#6821](https://github.com/rust-lang/rust-clippy/pull/6821)
1123 * [`manual_map`]: Fix suggestion for complex `if let ... else` chains
1124 [#6856](https://github.com/rust-lang/rust-clippy/pull/6856)
1125 * [`inconsistent_struct_constructor`]: Make lint description and message clearer
1126 [#6892](https://github.com/rust-lang/rust-clippy/pull/6892)
1127 * [`map_entry`]: Now suggests `or_insert`, `insert_with` or `match _.entry(_)`
1128 as appropriate [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
1129 * [`manual_flatten`]: Suggest to insert `copied` if necessary
1130 [#6962](https://github.com/rust-lang/rust-clippy/pull/6962)
1131 * [`redundant_slicing`]: Fix suggestion when a re-borrow might be required or
1132 when the value is from a macro call
1133 [#6975](https://github.com/rust-lang/rust-clippy/pull/6975)
1134 * [`match_wildcard_for_single_variants`]: Fix suggestion for hidden variant
1135 [#6988](https://github.com/rust-lang/rust-clippy/pull/6988)
1136 * [`clone_on_copy`]: Correct suggestion when the cloned value is a macro call
1137 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
1138 * [`manual_map`]: Fix suggestion at the end of an if chain
1139 [#7004](https://github.com/rust-lang/rust-clippy/pull/7004)
1140 * Fix needless parenthesis output in multiple lint suggestions
1141 [#7013](https://github.com/rust-lang/rust-clippy/pull/7013)
1142 * [`needless_collect`]: Better explanation in the lint message
1143 [#7020](https://github.com/rust-lang/rust-clippy/pull/7020)
1144 * [`useless_vec`]: Now considers mutability
1145 [#7036](https://github.com/rust-lang/rust-clippy/pull/7036)
1146 * [`useless_format`]: Wrap the content in braces if necessary
1147 [#7092](https://github.com/rust-lang/rust-clippy/pull/7092)
1148 * [`single_match`]: Don't suggest an equality check for types which don't
1149 implement `PartialEq`
1150 [#7093](https://github.com/rust-lang/rust-clippy/pull/7093)
1151 * [`from_over_into`]: Mention type in help message
1152 [#7099](https://github.com/rust-lang/rust-clippy/pull/7099)
1153 * [`manual_unwrap_or`]: Fix invalid code suggestion due to a macro call
1154 [#7136](https://github.com/rust-lang/rust-clippy/pull/7136)
1158 * [`macro_use_imports`]
1159 [#7022](https://github.com/rust-lang/rust-clippy/pull/7022)
1160 * [`missing_panics_doc`]
1161 [#7034](https://github.com/rust-lang/rust-clippy/pull/7034)
1162 * [`tabs_in_doc_comments`]
1163 [#7039](https://github.com/rust-lang/rust-clippy/pull/7039)
1164 * [`missing_const_for_fn`]
1165 [#7128](https://github.com/rust-lang/rust-clippy/pull/7128)
1170 list](https://rust-lang.github.io/rust-clippy/master/index.html) now supports
1171 themes [#7030](https://github.com/rust-lang/rust-clippy/pull/7030)
1172 * Lints that were uplifted to `rustc` now mention the new `rustc` name in the
1174 [#7056](https://github.com/rust-lang/rust-clippy/pull/7056)
1180 [3e41797...6ed6f1e](https://github.com/rust-lang/rust-clippy/compare/3e41797...6ed6f1e)
1184 * [`from_str_radix_10`]
1185 [#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
1186 * [`implicit_clone`]
1187 [#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
1188 * [`semicolon_if_nothing_returned`]
1189 [#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
1190 * [`manual_flatten`]
1191 [#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
1192 * [`inconsistent_struct_constructor`]
1193 [#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
1195 [#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
1196 * [`default_numeric_fallback`]
1197 [#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
1199 [#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
1200 * [`filter_map_identity`]
1201 [#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
1203 [#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
1205 ### Moves and Deprecations
1207 * Moved [`upper_case_acronyms`] to `pedantic`
1208 [#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
1209 * Moved [`manual_map`] to `nursery`
1210 [#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
1211 * Moved [`unnecessary_wraps`] to `pedantic`
1212 [#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
1213 * Moved [`trivial_regex`] to `nursery`
1214 [#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
1215 * Moved [`naive_bytecount`] to `pedantic`
1216 [#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
1217 * Moved [`upper_case_acronyms`] to `style`
1218 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
1219 * Moved [`manual_map`] to `style`
1220 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1224 * [`disallowed_methods`]: Now supports functions in addition to methods
1225 [#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
1226 * [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
1227 trigger the lint if there is more than one uppercase character next to each other
1228 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
1229 * [`collapsible_match`]: Now supports block comparison with different value names
1230 [#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
1231 * [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
1232 [#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
1233 * Improved value usage detection in closures
1234 [#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
1236 ### False Positive Fixes
1238 * [`use_self`]: No longer lints in macros
1239 [#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
1240 * [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
1241 [#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
1242 * [`missing_inline_in_public_items`]: No longer lints for procedural macros
1243 [#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
1244 * [`inherent_to_string`]: No longer lints on functions with function generics
1245 [#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
1246 * [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
1247 [#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
1248 * [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
1249 [#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
1250 * [`collapsible_if`]: No longer lints on if statements with attributes
1251 [#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
1252 * [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
1253 [#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
1254 * [`redundant_closure`]: Now ignores macros
1255 [#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
1256 * [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
1257 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1258 * [`vec_init_then_push`]: Fixed false positives for loops and if statements
1259 [#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
1260 * [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
1261 the `len` method as well as the type definition.
1262 [#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
1263 * [`let_underscore_drop`]: Only lints on types which implement `Drop`
1264 [#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
1265 * [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
1266 [#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
1267 * [`cargo_common_metadata`]: No longer lints if
1268 [`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
1269 is defined in the manifest
1270 [#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
1272 ### Suggestion Fixes/Improvements
1274 * [`collapsible_match`]: Fixed lint message capitalization
1275 [#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
1276 * [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
1277 [#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
1278 * [`manual_map`]: No longer expands macros in the suggestions
1279 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
1280 * Aligned Clippy's lint messages with the rustc dev guide
1281 [#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
1285 * [`zero_sized_map_values`]
1286 [#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
1288 ### Documentation Improvements
1290 * [`useless_format`]: Improved the documentation example
1291 [#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
1292 * Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
1293 [#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
1296 * Running `cargo clippy` after `cargo check` now works as expected
1297 (`cargo clippy` and `cargo check` no longer shares the same build cache)
1298 [#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
1299 * Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
1300 [#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
1301 * Extracted Clippy's `utils` module into the new `clippy_utils` crate
1302 [#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
1303 * Clippy lintcheck tool improvements
1304 [#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
1305 [#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
1306 [#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
1307 [#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
1308 [#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
1309 [#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
1315 [4911ab1...3e41797](https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797)
1319 * [`upper_case_acronyms`]
1320 [#6475](https://github.com/rust-lang/rust-clippy/pull/6475)
1321 * [`from_over_into`] [#6476](https://github.com/rust-lang/rust-clippy/pull/6476)
1322 * [`case_sensitive_file_extension_comparisons`]
1323 [#6500](https://github.com/rust-lang/rust-clippy/pull/6500)
1324 * [`needless_question_mark`]
1325 [#6507](https://github.com/rust-lang/rust-clippy/pull/6507)
1326 * [`missing_panics_doc`]
1327 [#6523](https://github.com/rust-lang/rust-clippy/pull/6523)
1328 * [`redundant_slicing`]
1329 [#6528](https://github.com/rust-lang/rust-clippy/pull/6528)
1330 * [`vec_init_then_push`]
1331 [#6538](https://github.com/rust-lang/rust-clippy/pull/6538)
1332 * [`ptr_as_ptr`] [#6542](https://github.com/rust-lang/rust-clippy/pull/6542)
1333 * [`collapsible_else_if`] (split out from `collapsible_if`)
1334 [#6544](https://github.com/rust-lang/rust-clippy/pull/6544)
1335 * [`inspect_for_each`] [#6577](https://github.com/rust-lang/rust-clippy/pull/6577)
1336 * [`manual_filter_map`]
1337 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
1338 * [`exhaustive_enums`]
1339 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
1340 * [`exhaustive_structs`]
1341 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
1343 ### Moves and Deprecations
1345 * Replace [`find_map`] with [`manual_find_map`]
1346 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
1347 * `unknown_clippy_lints` Now integrated in the `unknown_lints` rustc lint
1348 [#6653](https://github.com/rust-lang/rust-clippy/pull/6653)
1352 * [`ptr_arg`] Now also suggests to use `&Path` instead of `&PathBuf`
1353 [#6506](https://github.com/rust-lang/rust-clippy/pull/6506)
1354 * [`cast_ptr_alignment`] Also lint when the `pointer::cast` method is used
1355 [#6557](https://github.com/rust-lang/rust-clippy/pull/6557)
1356 * [`collapsible_match`] Now also deals with `&` and `*` operators in the `match`
1357 scrutinee [#6619](https://github.com/rust-lang/rust-clippy/pull/6619)
1359 ### False Positive Fixes
1361 * [`similar_names`] Ignore underscore prefixed names
1362 [#6403](https://github.com/rust-lang/rust-clippy/pull/6403)
1363 * [`print_literal`] and [`write_literal`] No longer lint numeric literals
1364 [#6408](https://github.com/rust-lang/rust-clippy/pull/6408)
1365 * [`large_enum_variant`] No longer lints in external macros
1366 [#6485](https://github.com/rust-lang/rust-clippy/pull/6485)
1367 * [`empty_enum`] Only lint if `never_type` feature is enabled
1368 [#6513](https://github.com/rust-lang/rust-clippy/pull/6513)
1369 * [`field_reassign_with_default`] No longer lints in macros
1370 [#6553](https://github.com/rust-lang/rust-clippy/pull/6553)
1371 * [`size_of_in_element_count`] No longer lints when dividing by element size
1372 [#6578](https://github.com/rust-lang/rust-clippy/pull/6578)
1373 * [`needless_return`] No longer lints in macros
1374 [#6586](https://github.com/rust-lang/rust-clippy/pull/6586)
1375 * [`match_overlapping_arm`] No longer lint when first arm is completely included
1376 in second arm [#6603](https://github.com/rust-lang/rust-clippy/pull/6603)
1377 * [`doc_markdown`] Add `WebGL` to the default configuration as an allowed
1378 identifier [#6605](https://github.com/rust-lang/rust-clippy/pull/6605)
1380 ### Suggestion Fixes/Improvements
1382 * [`field_reassign_with_default`] Don't expand macro in lint suggestion
1383 [#6531](https://github.com/rust-lang/rust-clippy/pull/6531)
1384 * [`match_like_matches_macro`] Strip references in suggestion
1385 [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
1386 * [`single_match`] Suggest `if` over `if let` when possible
1387 [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
1388 * `ref_in_deref` Use parentheses correctly in suggestion
1389 [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
1390 * [`stable_sort_primitive`] Clarify error message
1391 [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
1395 * [`zero_sized_map_values`]
1396 [#6582](https://github.com/rust-lang/rust-clippy/pull/6582)
1398 ### Documentation Improvements
1400 * Improve search performance on the Clippy website and make it possible to
1401 directly search for lints on the GitHub issue tracker
1402 [#6483](https://github.com/rust-lang/rust-clippy/pull/6483)
1403 * Clean up `README.md` by removing outdated paragraph
1404 [#6488](https://github.com/rust-lang/rust-clippy/pull/6488)
1405 * [`await_holding_refcell_ref`] and [`await_holding_lock`]
1406 [#6585](https://github.com/rust-lang/rust-clippy/pull/6585)
1407 * [`as_conversions`] [#6608](https://github.com/rust-lang/rust-clippy/pull/6608)
1411 * Clippy now has a [Roadmap] for 2021. If you like to get involved in a bigger
1412 project, take a look at the [Roadmap project page]. All issues listed there
1413 are actively mentored
1414 [#6462](https://github.com/rust-lang/rust-clippy/pull/6462)
1415 * The Clippy version number now corresponds to the Rust version number
1416 [#6526](https://github.com/rust-lang/rust-clippy/pull/6526)
1417 * Fix oversight which caused Clippy to lint deps in some environments, where
1418 `CLIPPY_TESTS=true` was set somewhere
1419 [#6575](https://github.com/rust-lang/rust-clippy/pull/6575)
1420 * Add `cargo dev-lintcheck` tool to the Clippy Dev Tool
1421 [#6469](https://github.com/rust-lang/rust-clippy/pull/6469)
1423 [Roadmap]: https://github.com/rust-lang/rust-clippy/blob/master/doc/roadmap-2021.md
1424 [Roadmap project page]: https://github.com/rust-lang/rust-clippy/projects/3
1430 [b20d4c1...4bd77a1](https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1)
1434 * [`suspicious_operation_groupings`] [#6086](https://github.com/rust-lang/rust-clippy/pull/6086)
1435 * [`size_of_in_element_count`] [#6394](https://github.com/rust-lang/rust-clippy/pull/6394)
1436 * [`unnecessary_wraps`] [#6070](https://github.com/rust-lang/rust-clippy/pull/6070)
1437 * [`let_underscore_drop`] [#6305](https://github.com/rust-lang/rust-clippy/pull/6305)
1438 * [`collapsible_match`] [#6402](https://github.com/rust-lang/rust-clippy/pull/6402)
1439 * [`redundant_else`] [#6330](https://github.com/rust-lang/rust-clippy/pull/6330)
1440 * [`zero_sized_map_values`] [#6218](https://github.com/rust-lang/rust-clippy/pull/6218)
1441 * [`print_stderr`] [#6367](https://github.com/rust-lang/rust-clippy/pull/6367)
1442 * [`string_from_utf8_as_bytes`] [#6134](https://github.com/rust-lang/rust-clippy/pull/6134)
1444 ### Moves and Deprecations
1446 * Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
1447 as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
1448 * Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panics`
1449 [#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
1450 * Move [`map_err_ignore`] to `restriction`
1451 [#6416](https://github.com/rust-lang/rust-clippy/pull/6416)
1452 * Move [`await_holding_refcell_ref`] to `pedantic`
1453 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
1454 * Move [`await_holding_lock`] to `pedantic`
1455 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
1459 * Add the `unreadable-literal-lint-fractions` configuration to disable
1460 the `unreadable_literal` lint for fractions
1461 [#6421](https://github.com/rust-lang/rust-clippy/pull/6421)
1462 * [`clone_on_copy`]: Now shows the type in the lint message
1463 [#6443](https://github.com/rust-lang/rust-clippy/pull/6443)
1464 * [`redundant_pattern_matching`]: Now also lints on `std::task::Poll`
1465 [#6339](https://github.com/rust-lang/rust-clippy/pull/6339)
1466 * [`redundant_pattern_matching`]: Additionally also lints on `std::net::IpAddr`
1467 [#6377](https://github.com/rust-lang/rust-clippy/pull/6377)
1468 * [`search_is_some`]: Now suggests `contains` instead of `find(foo).is_some()`
1469 [#6119](https://github.com/rust-lang/rust-clippy/pull/6119)
1470 * [`clone_double_ref`]: Now prints the reference type in the lint message
1471 [#6442](https://github.com/rust-lang/rust-clippy/pull/6442)
1472 * [`modulo_one`]: Now also lints on -1.
1473 [#6360](https://github.com/rust-lang/rust-clippy/pull/6360)
1474 * [`empty_loop`]: Now lints no_std crates, too
1475 [#6205](https://github.com/rust-lang/rust-clippy/pull/6205)
1476 * [`or_fun_call`]: Now also lints when indexing `HashMap` or `BTreeMap`
1477 [#6267](https://github.com/rust-lang/rust-clippy/pull/6267)
1478 * [`wrong_self_convention`]: Now also lints in trait definitions
1479 [#6316](https://github.com/rust-lang/rust-clippy/pull/6316)
1480 * [`needless_borrow`]: Print the type in the lint message
1481 [#6449](https://github.com/rust-lang/rust-clippy/pull/6449)
1483 [msrv_readme]: https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
1485 ### False Positive Fixes
1487 * [`manual_range_contains`]: No longer lints in `const fn`
1488 [#6382](https://github.com/rust-lang/rust-clippy/pull/6382)
1489 * [`unnecessary_lazy_evaluations`]: No longer lints if closure argument is used
1490 [#6370](https://github.com/rust-lang/rust-clippy/pull/6370)
1491 * [`match_single_binding`]: Now ignores cases with `#[cfg()]` macros
1492 [#6435](https://github.com/rust-lang/rust-clippy/pull/6435)
1493 * [`match_like_matches_macro`]: No longer lints on arms with attributes
1494 [#6290](https://github.com/rust-lang/rust-clippy/pull/6290)
1495 * [`map_clone`]: No longer lints with deref and clone
1496 [#6269](https://github.com/rust-lang/rust-clippy/pull/6269)
1497 * [`map_clone`]: No longer lints in the case of &mut
1498 [#6301](https://github.com/rust-lang/rust-clippy/pull/6301)
1499 * [`needless_update`]: Now ignores `non_exhaustive` structs
1500 [#6464](https://github.com/rust-lang/rust-clippy/pull/6464)
1501 * [`needless_collect`]: No longer lints when a collect is needed multiple times
1502 [#6313](https://github.com/rust-lang/rust-clippy/pull/6313)
1503 * [`unnecessary_cast`] No longer lints cfg-dependent types
1504 [#6369](https://github.com/rust-lang/rust-clippy/pull/6369)
1505 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]:
1506 Both now ignore enums with frozen variants
1507 [#6110](https://github.com/rust-lang/rust-clippy/pull/6110)
1508 * [`field_reassign_with_default`] No longer lint for private fields
1509 [#6537](https://github.com/rust-lang/rust-clippy/pull/6537)
1512 ### Suggestion Fixes/Improvements
1514 * [`vec_box`]: Provide correct type scope suggestion
1515 [#6271](https://github.com/rust-lang/rust-clippy/pull/6271)
1516 * [`manual_range_contains`]: Give correct suggestion when using floats
1517 [#6320](https://github.com/rust-lang/rust-clippy/pull/6320)
1518 * [`unnecessary_lazy_evaluations`]: Don't always mark suggestion as MachineApplicable
1519 [#6272](https://github.com/rust-lang/rust-clippy/pull/6272)
1520 * [`manual_async_fn`]: Improve suggestion formatting
1521 [#6294](https://github.com/rust-lang/rust-clippy/pull/6294)
1522 * [`unnecessary_cast`]: Fix incorrectly formatted float literal suggestion
1523 [#6362](https://github.com/rust-lang/rust-clippy/pull/6362)
1527 * Fix a crash in [`from_iter_instead_of_collect`]
1528 [#6304](https://github.com/rust-lang/rust-clippy/pull/6304)
1529 * Fix a silent crash when parsing doc comments in [`needless_doctest_main`]
1530 [#6458](https://github.com/rust-lang/rust-clippy/pull/6458)
1532 ### Documentation Improvements
1534 * The lint website search has been improved ([#6477](https://github.com/rust-lang/rust-clippy/pull/6477)):
1535 * Searching for lints with dashes and spaces is possible now. For example
1536 `missing-errors-doc` and `missing errors doc` are now valid aliases for lint names
1537 * Improved fuzzy search in lint descriptions
1538 * Various README improvements
1539 [#6287](https://github.com/rust-lang/rust-clippy/pull/6287)
1540 * Add known problems to [`comparison_chain`] documentation
1541 [#6390](https://github.com/rust-lang/rust-clippy/pull/6390)
1542 * Fix example used in [`cargo_common_metadata`]
1543 [#6293](https://github.com/rust-lang/rust-clippy/pull/6293)
1544 * Improve [`map_clone`] documentation
1545 [#6340](https://github.com/rust-lang/rust-clippy/pull/6340)
1549 * You can now tell Clippy about the MSRV your project supports. Please refer to
1550 the specific README section to learn more about MSRV support [here][msrv_readme]
1551 [#6201](https://github.com/rust-lang/rust-clippy/pull/6201)
1552 * Add `--no-deps` option to avoid running on path dependencies in workspaces
1553 [#6188](https://github.com/rust-lang/rust-clippy/pull/6188)
1559 [e636b88...b20d4c1](https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1)
1563 * [`field_reassign_with_default`] [#5911](https://github.com/rust-lang/rust-clippy/pull/5911)
1564 * [`await_holding_refcell_ref`] [#6029](https://github.com/rust-lang/rust-clippy/pull/6029)
1565 * [`disallowed_methods`] [#6081](https://github.com/rust-lang/rust-clippy/pull/6081)
1566 * [`inline_asm_x86_att_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
1567 * [`inline_asm_x86_intel_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
1568 * [`from_iter_instead_of_collect`] [#6101](https://github.com/rust-lang/rust-clippy/pull/6101)
1569 * [`mut_mutex_lock`] [#6103](https://github.com/rust-lang/rust-clippy/pull/6103)
1570 * [`single_element_loop`] [#6109](https://github.com/rust-lang/rust-clippy/pull/6109)
1571 * [`manual_unwrap_or`] [#6123](https://github.com/rust-lang/rust-clippy/pull/6123)
1572 * [`large_types_passed_by_value`] [#6135](https://github.com/rust-lang/rust-clippy/pull/6135)
1573 * [`result_unit_err`] [#6157](https://github.com/rust-lang/rust-clippy/pull/6157)
1574 * [`ref_option_ref`] [#6165](https://github.com/rust-lang/rust-clippy/pull/6165)
1575 * [`manual_range_contains`] [#6177](https://github.com/rust-lang/rust-clippy/pull/6177)
1576 * [`unusual_byte_groupings`] [#6183](https://github.com/rust-lang/rust-clippy/pull/6183)
1577 * [`comparison_to_empty`] [#6226](https://github.com/rust-lang/rust-clippy/pull/6226)
1578 * [`map_collect_result_unit`] [#6227](https://github.com/rust-lang/rust-clippy/pull/6227)
1579 * [`manual_ok_or`] [#6233](https://github.com/rust-lang/rust-clippy/pull/6233)
1581 ### Moves and Deprecations
1583 * Rename `single_char_push_str` to [`single_char_add_str`]
1584 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
1585 * Rename `zero_width_space` to [`invisible_characters`]
1586 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
1587 * Deprecate `drop_bounds` (uplifted)
1588 [#6111](https://github.com/rust-lang/rust-clippy/pull/6111)
1589 * Move [`string_lit_as_bytes`] to `nursery`
1590 [#6117](https://github.com/rust-lang/rust-clippy/pull/6117)
1591 * Move [`rc_buffer`] to `restriction`
1592 [#6128](https://github.com/rust-lang/rust-clippy/pull/6128)
1596 * [`manual_memcpy`]: Also lint when there are loop counters (and produce a
1597 reliable suggestion)
1598 [#5727](https://github.com/rust-lang/rust-clippy/pull/5727)
1599 * [`single_char_add_str`]: Also lint on `String::insert_str`
1600 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
1601 * [`invisible_characters`]: Also lint the characters `\u{AD}` and `\u{2060}`
1602 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
1603 * [`eq_op`]: Also lint on the `assert_*!` macro family
1604 [#6167](https://github.com/rust-lang/rust-clippy/pull/6167)
1605 * [`items_after_statements`]: Also lint in local macro expansions
1606 [#6176](https://github.com/rust-lang/rust-clippy/pull/6176)
1607 * [`unnecessary_cast`]: Also lint casts on integer and float literals
1608 [#6187](https://github.com/rust-lang/rust-clippy/pull/6187)
1609 * [`manual_unwrap_or`]: Also lint `Result::unwrap_or`
1610 [#6190](https://github.com/rust-lang/rust-clippy/pull/6190)
1611 * [`match_like_matches_macro`]: Also lint when `match` has more than two arms
1612 [#6216](https://github.com/rust-lang/rust-clippy/pull/6216)
1613 * [`integer_arithmetic`]: Better handle `/` an `%` operators
1614 [#6229](https://github.com/rust-lang/rust-clippy/pull/6229)
1616 ### False Positive Fixes
1618 * [`needless_lifetimes`]: Bail out if the function has a `where` clause with the
1619 lifetime [#5978](https://github.com/rust-lang/rust-clippy/pull/5978)
1620 * [`explicit_counter_loop`]: No longer lints, when loop counter is used after it
1621 is incremented [#6076](https://github.com/rust-lang/rust-clippy/pull/6076)
1622 * [`or_fun_call`]: Revert changes addressing the handling of `const fn`
1623 [#6077](https://github.com/rust-lang/rust-clippy/pull/6077)
1624 * [`needless_range_loop`]: No longer lints, when the iterable is used in the
1625 range [#6102](https://github.com/rust-lang/rust-clippy/pull/6102)
1626 * [`inconsistent_digit_grouping`]: Fix bug when using floating point exponent
1627 [#6104](https://github.com/rust-lang/rust-clippy/pull/6104)
1628 * [`mistyped_literal_suffixes`]: No longer lints on the fractional part of a
1629 float (e.g. `713.32_64`)
1630 [#6114](https://github.com/rust-lang/rust-clippy/pull/6114)
1631 * [`invalid_regex`]: No longer lint on unicode characters within `bytes::Regex`
1632 [#6132](https://github.com/rust-lang/rust-clippy/pull/6132)
1633 * [`boxed_local`]: No longer lints on `extern fn` arguments
1634 [#6133](https://github.com/rust-lang/rust-clippy/pull/6133)
1635 * [`needless_lifetimes`]: Fix regression, where lifetime is used in `where`
1636 clause [#6198](https://github.com/rust-lang/rust-clippy/pull/6198)
1638 ### Suggestion Fixes/Improvements
1640 * [`unnecessary_sort_by`]: Avoid dereferencing the suggested closure parameter
1641 [#6078](https://github.com/rust-lang/rust-clippy/pull/6078)
1642 * [`needless_arbitrary_self_type`]: Correctly handle expanded code
1643 [#6093](https://github.com/rust-lang/rust-clippy/pull/6093)
1644 * [`useless_format`]: Preserve raw strings in suggestion
1645 [#6151](https://github.com/rust-lang/rust-clippy/pull/6151)
1646 * [`empty_loop`]: Suggest alternatives
1647 [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
1648 * [`borrowed_box`]: Correctly add parentheses in suggestion
1649 [#6200](https://github.com/rust-lang/rust-clippy/pull/6200)
1650 * [`unused_unit`]: Improve suggestion formatting
1651 [#6247](https://github.com/rust-lang/rust-clippy/pull/6247)
1653 ### Documentation Improvements
1655 * Some doc improvements:
1656 * [`rc_buffer`] [#6090](https://github.com/rust-lang/rust-clippy/pull/6090)
1657 * [`empty_loop`] [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
1658 * [`doc_markdown`]: Document problematic link text style
1659 [#6107](https://github.com/rust-lang/rust-clippy/pull/6107)
1665 [09bd400...e636b88](https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88)
1669 * [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
1670 * [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
1671 * [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
1672 * [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
1673 * [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
1674 * `to_string_in_display` [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
1675 * `single_char_push_str` [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
1677 ### Moves and Deprecations
1679 * Downgrade [`verbose_bit_mask`] to pedantic
1680 [#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
1684 * Extend [`precedence`] to handle chains of methods combined with unary negation
1685 [#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
1686 * [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
1687 [#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
1688 * [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
1689 [#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
1690 * `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
1691 [#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
1692 * Avoid [`redundant_pattern_matching`] triggering in macros
1693 [#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
1694 * [`option_if_let_else`]: distinguish pure from impure `else` expressions
1695 [#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
1696 * [`needless_doctest_main`]: parse doctests instead of using textual search
1697 [#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
1698 * [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
1699 [#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
1700 * Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
1701 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
1702 * [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
1703 [#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
1705 ### False Positive Fixes
1707 * [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
1708 [#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
1709 * [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
1710 [#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
1711 * [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
1712 [#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
1713 * Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
1714 [#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
1715 * [`doc_markdown`]: allow using "GraphQL" without backticks
1716 [#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
1717 * `to_string_in_display`: avoid linting when calling `to_string()` on anything that is not `self`
1718 [#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
1719 * [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
1720 [#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
1721 * [`should_implement_trait`]: ignore methods with lifetime parameters
1722 [#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
1723 * [`needless_return`]: avoid linting if a temporary borrows a local variable
1724 [#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
1725 * Restrict [`unnecessary_sort_by`] to non-reference, Copy types
1726 [#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
1727 * Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
1728 [#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
1729 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
1730 [#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
1732 ### Suggestion Fixes/Improvements
1734 * [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
1735 [#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
1736 * [`useless_conversion`]: show the type in the error message
1737 [#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
1738 * [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
1739 [#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
1740 * [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
1741 [#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
1742 * [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
1743 [#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
1744 * [`collapsible_if`]: don't use expanded code in the suggestion
1745 [#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
1746 * Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
1747 [#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
1748 * [`unit_arg`]: improve the readability of the suggestion
1749 [#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
1750 * [`stable_sort_primitive`]: print the type that is being sorted in the lint message
1751 [#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
1752 * Show line count and max lines in [`too_many_lines`] lint message
1753 [#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
1754 * Keep parentheses in the suggestion of [`useless_conversion`] where applicable
1755 [#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
1756 * [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
1757 [#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
1758 * [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
1759 [#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
1760 * Make lint messages adhere to rustc dev guide conventions
1761 [#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
1765 * Fix ICE in [`repeat_once`]
1766 [#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
1768 ### Documentation Improvements
1770 * [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
1771 [#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
1772 * [`unnecessary_mut_passed`]: fix typo
1773 [#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
1774 * Add example of false positive to [`ptr_arg`] docs.
1775 [#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
1776 * [`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`
1777 [#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
1783 [c2c07fa...09bd400](https://github.com/rust-lang/rust-clippy/compare/c2c07fa...09bd400)
1787 * [`derive_ord_xor_partial_ord`] [#5848](https://github.com/rust-lang/rust-clippy/pull/5848)
1788 * [`trait_duplication_in_bounds`] [#5852](https://github.com/rust-lang/rust-clippy/pull/5852)
1789 * [`map_identity`] [#5694](https://github.com/rust-lang/rust-clippy/pull/5694)
1790 * [`unit_return_expecting_ord`] [#5737](https://github.com/rust-lang/rust-clippy/pull/5737)
1791 * [`pattern_type_mismatch`] [#4841](https://github.com/rust-lang/rust-clippy/pull/4841)
1792 * [`repeat_once`] [#5773](https://github.com/rust-lang/rust-clippy/pull/5773)
1793 * [`same_item_push`] [#5825](https://github.com/rust-lang/rust-clippy/pull/5825)
1794 * [`needless_arbitrary_self_type`] [#5869](https://github.com/rust-lang/rust-clippy/pull/5869)
1795 * [`match_like_matches_macro`] [#5769](https://github.com/rust-lang/rust-clippy/pull/5769)
1796 * [`stable_sort_primitive`] [#5809](https://github.com/rust-lang/rust-clippy/pull/5809)
1797 * [`blanket_clippy_restriction_lints`] [#5750](https://github.com/rust-lang/rust-clippy/pull/5750)
1798 * [`option_if_let_else`] [#5301](https://github.com/rust-lang/rust-clippy/pull/5301)
1800 ### Moves and Deprecations
1802 * Deprecate [`regex_macro`] lint
1803 [#5760](https://github.com/rust-lang/rust-clippy/pull/5760)
1804 * Move [`range_minus_one`] to `pedantic`
1805 [#5752](https://github.com/rust-lang/rust-clippy/pull/5752)
1809 * Improve [`needless_collect`] by catching `collect` calls followed by `iter` or `into_iter` calls
1810 [#5837](https://github.com/rust-lang/rust-clippy/pull/5837)
1811 * [`panic`], [`todo`], [`unimplemented`] and [`unreachable`] now detect calls with formatting
1812 [#5811](https://github.com/rust-lang/rust-clippy/pull/5811)
1813 * Detect more cases of [`suboptimal_flops`] and [`imprecise_flops`]
1814 [#5443](https://github.com/rust-lang/rust-clippy/pull/5443)
1815 * Handle asymmetrical implementations of `PartialEq` in [`cmp_owned`]
1816 [#5701](https://github.com/rust-lang/rust-clippy/pull/5701)
1817 * Make it possible to allow [`unsafe_derive_deserialize`]
1818 [#5870](https://github.com/rust-lang/rust-clippy/pull/5870)
1819 * Catch `ord.min(a).max(b)` where a < b in [`min_max`]
1820 [#5871](https://github.com/rust-lang/rust-clippy/pull/5871)
1821 * Make [`clone_on_copy`] suggestion machine applicable
1822 [#5745](https://github.com/rust-lang/rust-clippy/pull/5745)
1823 * Enable [`len_zero`] on ranges now that `is_empty` is stable on them
1824 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
1826 ### False Positive Fixes
1828 * Avoid triggering [`or_fun_call`] with const fns that take no arguments
1829 [#5889](https://github.com/rust-lang/rust-clippy/pull/5889)
1830 * Fix [`redundant_closure_call`] false positive for closures that have multiple calls
1831 [#5800](https://github.com/rust-lang/rust-clippy/pull/5800)
1832 * Don't lint cases involving `ManuallyDrop` in [`redundant_clone`]
1833 [#5824](https://github.com/rust-lang/rust-clippy/pull/5824)
1834 * Treat a single expression the same as a single statement in the 2nd arm of a match in [`single_match_else`]
1835 [#5771](https://github.com/rust-lang/rust-clippy/pull/5771)
1836 * Don't trigger [`unnested_or_patterns`] if the feature `or_patterns` is not enabled
1837 [#5758](https://github.com/rust-lang/rust-clippy/pull/5758)
1838 * Avoid linting if key borrows in [`unnecessary_sort_by`]
1839 [#5756](https://github.com/rust-lang/rust-clippy/pull/5756)
1840 * Consider `Try` impl for `Poll` when generating suggestions in [`try_err`]
1841 [#5857](https://github.com/rust-lang/rust-clippy/pull/5857)
1842 * Take input lifetimes into account in `manual_async_fn`
1843 [#5859](https://github.com/rust-lang/rust-clippy/pull/5859)
1844 * Fix multiple false positives in [`type_repetition_in_bounds`] and add a configuration option
1845 [#5761](https://github.com/rust-lang/rust-clippy/pull/5761)
1846 * Limit the [`suspicious_arithmetic_impl`] lint to one binary operation
1847 [#5820](https://github.com/rust-lang/rust-clippy/pull/5820)
1849 ### Suggestion Fixes/Improvements
1851 * Improve readability of [`shadow_unrelated`] suggestion by truncating the RHS snippet
1852 [#5788](https://github.com/rust-lang/rust-clippy/pull/5788)
1853 * Suggest `filter_map` instead of `flat_map` when mapping to `Option` in [`map_flatten`]
1854 [#5846](https://github.com/rust-lang/rust-clippy/pull/5846)
1855 * Ensure suggestion is shown correctly for long method call chains in [`iter_nth_zero`]
1856 [#5793](https://github.com/rust-lang/rust-clippy/pull/5793)
1857 * Drop borrow operator in suggestions of [`redundant_pattern_matching`]
1858 [#5815](https://github.com/rust-lang/rust-clippy/pull/5815)
1859 * Add suggestion for [`iter_skip_next`]
1860 [#5843](https://github.com/rust-lang/rust-clippy/pull/5843)
1861 * Improve [`collapsible_if`] fix suggestion
1862 [#5732](https://github.com/rust-lang/rust-clippy/pull/5732)
1866 * Fix ICE caused by [`needless_collect`]
1867 [#5877](https://github.com/rust-lang/rust-clippy/pull/5877)
1868 * Fix ICE caused by [`unnested_or_patterns`]
1869 [#5784](https://github.com/rust-lang/rust-clippy/pull/5784)
1871 ### Documentation Improvements
1873 * Fix grammar of [`await_holding_lock`] documentation
1874 [#5748](https://github.com/rust-lang/rust-clippy/pull/5748)
1878 * Make lints adhere to the rustc dev guide
1879 [#5888](https://github.com/rust-lang/rust-clippy/pull/5888)
1885 [7ea7cd1...c2c07fa](https://github.com/rust-lang/rust-clippy/compare/7ea7cd1...c2c07fa)
1889 * [`unnested_or_patterns`] [#5378](https://github.com/rust-lang/rust-clippy/pull/5378)
1890 * [`iter_next_slice`] [#5597](https://github.com/rust-lang/rust-clippy/pull/5597)
1891 * [`unnecessary_sort_by`] [#5623](https://github.com/rust-lang/rust-clippy/pull/5623)
1892 * [`vec_resize_to_zero`] [#5637](https://github.com/rust-lang/rust-clippy/pull/5637)
1894 ### Moves and Deprecations
1896 * Move [`cast_ptr_alignment`] to pedantic [#5667](https://github.com/rust-lang/rust-clippy/pull/5667)
1900 * Improve [`mem_replace_with_uninit`] lint [#5695](https://github.com/rust-lang/rust-clippy/pull/5695)
1902 ### False Positive Fixes
1904 * [`len_zero`]: Avoid linting ranges when the `range_is_empty` feature is not enabled
1905 [#5656](https://github.com/rust-lang/rust-clippy/pull/5656)
1906 * [`let_and_return`]: Don't lint if a temporary borrow is involved
1907 [#5680](https://github.com/rust-lang/rust-clippy/pull/5680)
1908 * [`reversed_empty_ranges`]: Avoid linting `N..N` in for loop arguments in
1909 [#5692](https://github.com/rust-lang/rust-clippy/pull/5692)
1910 * [`if_same_then_else`]: Don't assume multiplication is always commutative
1911 [#5702](https://github.com/rust-lang/rust-clippy/pull/5702)
1912 * [`blacklisted_name`]: Remove `bar` from the default configuration
1913 [#5712](https://github.com/rust-lang/rust-clippy/pull/5712)
1914 * [`redundant_pattern_matching`]: Avoid suggesting non-`const fn` calls in const contexts
1915 [#5724](https://github.com/rust-lang/rust-clippy/pull/5724)
1917 ### Suggestion Fixes/Improvements
1919 * Fix suggestion of [`unit_arg`] lint, so that it suggest semantic equivalent code
1920 [#4455](https://github.com/rust-lang/rust-clippy/pull/4455)
1921 * Add auto applicable suggestion to [`macro_use_imports`]
1922 [#5279](https://github.com/rust-lang/rust-clippy/pull/5279)
1926 * Fix ICE in the `consts` module of Clippy [#5709](https://github.com/rust-lang/rust-clippy/pull/5709)
1928 ### Documentation Improvements
1930 * Improve code examples across multiple lints [#5664](https://github.com/rust-lang/rust-clippy/pull/5664)
1934 * Introduce a `--rustc` flag to `clippy-driver`, which turns `clippy-driver`
1935 into `rustc` and passes all the given arguments to `rustc`. This is especially
1936 useful for tools that need the `rustc` version Clippy was compiled with,
1937 instead of the Clippy version. E.g. `clippy-driver --rustc --version` will
1938 print the output of `rustc --version`.
1939 [#5178](https://github.com/rust-lang/rust-clippy/pull/5178)
1940 * New issue templates now make it easier to complain if Clippy is too annoying
1941 or not annoying enough! [#5735](https://github.com/rust-lang/rust-clippy/pull/5735)
1947 [891e1a8...7ea7cd1](https://github.com/rust-lang/rust-clippy/compare/891e1a8...7ea7cd1)
1951 * [`match_wildcard_for_single_variants`] [#5582](https://github.com/rust-lang/rust-clippy/pull/5582)
1952 * [`unsafe_derive_deserialize`] [#5493](https://github.com/rust-lang/rust-clippy/pull/5493)
1953 * [`if_let_mutex`] [#5332](https://github.com/rust-lang/rust-clippy/pull/5332)
1954 * [`mismatched_target_os`] [#5506](https://github.com/rust-lang/rust-clippy/pull/5506)
1955 * [`await_holding_lock`] [#5439](https://github.com/rust-lang/rust-clippy/pull/5439)
1956 * [`match_on_vec_items`] [#5522](https://github.com/rust-lang/rust-clippy/pull/5522)
1957 * [`manual_async_fn`] [#5576](https://github.com/rust-lang/rust-clippy/pull/5576)
1958 * [`reversed_empty_ranges`] [#5583](https://github.com/rust-lang/rust-clippy/pull/5583)
1959 * [`manual_non_exhaustive`] [#5550](https://github.com/rust-lang/rust-clippy/pull/5550)
1961 ### Moves and Deprecations
1963 * Downgrade [`match_bool`] to pedantic [#5408](https://github.com/rust-lang/rust-clippy/pull/5408)
1964 * Downgrade [`match_wild_err_arm`] to pedantic and update help messages. [#5622](https://github.com/rust-lang/rust-clippy/pull/5622)
1965 * Downgrade [`useless_let_if_seq`] to nursery. [#5599](https://github.com/rust-lang/rust-clippy/pull/5599)
1966 * Generalize `option_and_then_some` and rename to [`bind_instead_of_map`]. [#5529](https://github.com/rust-lang/rust-clippy/pull/5529)
1967 * Rename `identity_conversion` to [`useless_conversion`]. [#5568](https://github.com/rust-lang/rust-clippy/pull/5568)
1968 * Merge `block_in_if_condition_expr` and `block_in_if_condition_stmt` into [`blocks_in_if_conditions`].
1969 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1970 * Merge `option_map_unwrap_or`, `option_map_unwrap_or_else` and `result_map_unwrap_or_else` into [`map_unwrap_or`].
1971 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1972 * Merge `option_unwrap_used` and `result_unwrap_used` into [`unwrap_used`].
1973 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1974 * Merge `option_expect_used` and `result_expect_used` into [`expect_used`].
1975 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1976 * Merge `for_loop_over_option` and `for_loop_over_result` into [`for_loops_over_fallibles`].
1977 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
1981 * Avoid running cargo lints when not enabled to improve performance. [#5505](https://github.com/rust-lang/rust-clippy/pull/5505)
1982 * Extend [`useless_conversion`] with `TryFrom` and `TryInto`. [#5631](https://github.com/rust-lang/rust-clippy/pull/5631)
1983 * Lint also in type parameters and where clauses in [`unused_unit`]. [#5592](https://github.com/rust-lang/rust-clippy/pull/5592)
1984 * Do not suggest deriving `Default` in [`new_without_default`]. [#5616](https://github.com/rust-lang/rust-clippy/pull/5616)
1986 ### False Positive Fixes
1988 * [`while_let_on_iterator`] [#5525](https://github.com/rust-lang/rust-clippy/pull/5525)
1989 * [`empty_line_after_outer_attr`] [#5609](https://github.com/rust-lang/rust-clippy/pull/5609)
1990 * [`unnecessary_unwrap`] [#5558](https://github.com/rust-lang/rust-clippy/pull/5558)
1991 * [`comparison_chain`] [#5596](https://github.com/rust-lang/rust-clippy/pull/5596)
1992 * Don't trigger [`used_underscore_binding`] in await desugaring. [#5535](https://github.com/rust-lang/rust-clippy/pull/5535)
1993 * Don't trigger [`borrowed_box`] on mutable references. [#5491](https://github.com/rust-lang/rust-clippy/pull/5491)
1994 * Allow `1 << 0` in [`identity_op`]. [#5602](https://github.com/rust-lang/rust-clippy/pull/5602)
1995 * Allow `use super::*;` glob imports in [`wildcard_imports`]. [#5564](https://github.com/rust-lang/rust-clippy/pull/5564)
1996 * Whitelist more words in [`doc_markdown`]. [#5611](https://github.com/rust-lang/rust-clippy/pull/5611)
1997 * Skip dev and build deps in [`multiple_crate_versions`]. [#5636](https://github.com/rust-lang/rust-clippy/pull/5636)
1998 * Honor `allow` attribute on arguments in [`ptr_arg`]. [#5647](https://github.com/rust-lang/rust-clippy/pull/5647)
1999 * Honor lint level attributes for [`redundant_field_names`], [`just_underscores_and_digits`], [`many_single_char_names`]
2000 and [`similar_names`]. [#5651](https://github.com/rust-lang/rust-clippy/pull/5651)
2001 * Ignore calls to `len` in [`or_fun_call`]. [#4429](https://github.com/rust-lang/rust-clippy/pull/4429)
2003 ### Suggestion Improvements
2005 * Simplify suggestions in [`manual_memcpy`]. [#5536](https://github.com/rust-lang/rust-clippy/pull/5536)
2006 * Fix suggestion in [`redundant_pattern_matching`] for macros. [#5511](https://github.com/rust-lang/rust-clippy/pull/5511)
2007 * Avoid suggesting `copied()` for mutable references in [`map_clone`]. [#5530](https://github.com/rust-lang/rust-clippy/pull/5530)
2008 * Improve help message for [`clone_double_ref`]. [#5547](https://github.com/rust-lang/rust-clippy/pull/5547)
2012 * Fix ICE caused in unwrap module. [#5590](https://github.com/rust-lang/rust-clippy/pull/5590)
2013 * Fix ICE on rustc test issue-69020-assoc-const-arith-overflow.rs [#5499](https://github.com/rust-lang/rust-clippy/pull/5499)
2017 * Clarify the documentation of [`unnecessary_mut_passed`]. [#5639](https://github.com/rust-lang/rust-clippy/pull/5639)
2018 * Extend example for [`unneeded_field_pattern`]. [#5541](https://github.com/rust-lang/rust-clippy/pull/5541)
2024 [204bb9b...891e1a8](https://github.com/rust-lang/rust-clippy/compare/204bb9b...891e1a8)
2028 * [`explicit_deref_methods`] [#5226](https://github.com/rust-lang/rust-clippy/pull/5226)
2029 * [`implicit_saturating_sub`] [#5427](https://github.com/rust-lang/rust-clippy/pull/5427)
2030 * [`macro_use_imports`] [#5230](https://github.com/rust-lang/rust-clippy/pull/5230)
2031 * [`verbose_file_reads`] [#5272](https://github.com/rust-lang/rust-clippy/pull/5272)
2032 * [`future_not_send`] [#5423](https://github.com/rust-lang/rust-clippy/pull/5423)
2033 * [`redundant_pub_crate`] [#5319](https://github.com/rust-lang/rust-clippy/pull/5319)
2034 * [`large_const_arrays`] [#5248](https://github.com/rust-lang/rust-clippy/pull/5248)
2035 * [`result_map_or_into_option`] [#5415](https://github.com/rust-lang/rust-clippy/pull/5415)
2036 * [`redundant_allocation`] [#5349](https://github.com/rust-lang/rust-clippy/pull/5349)
2037 * [`fn_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
2038 * [`vtable_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
2041 ### Moves and Deprecations
2043 * Deprecate [`replace_consts`] lint [#5380](https://github.com/rust-lang/rust-clippy/pull/5380)
2044 * Move [`cognitive_complexity`] to nursery [#5428](https://github.com/rust-lang/rust-clippy/pull/5428)
2045 * Move [`useless_transmute`] to nursery [#5364](https://github.com/rust-lang/rust-clippy/pull/5364)
2046 * Downgrade [`inefficient_to_string`] to pedantic [#5412](https://github.com/rust-lang/rust-clippy/pull/5412)
2047 * Downgrade [`option_option`] to pedantic [#5401](https://github.com/rust-lang/rust-clippy/pull/5401)
2048 * Downgrade [`unreadable_literal`] to pedantic [#5419](https://github.com/rust-lang/rust-clippy/pull/5419)
2049 * Downgrade [`let_unit_value`] to pedantic [#5409](https://github.com/rust-lang/rust-clippy/pull/5409)
2050 * Downgrade [`trivially_copy_pass_by_ref`] to pedantic [#5410](https://github.com/rust-lang/rust-clippy/pull/5410)
2051 * Downgrade [`implicit_hasher`] to pedantic [#5411](https://github.com/rust-lang/rust-clippy/pull/5411)
2055 * On _nightly_ you can now use `cargo clippy --fix -Z unstable-options` to
2056 auto-fix lints that support this [#5363](https://github.com/rust-lang/rust-clippy/pull/5363)
2057 * Make [`redundant_clone`] also trigger on cases where the cloned value is not
2058 consumed. [#5304](https://github.com/rust-lang/rust-clippy/pull/5304)
2059 * Expand [`integer_arithmetic`] to also disallow bit-shifting [#5430](https://github.com/rust-lang/rust-clippy/pull/5430)
2060 * [`option_as_ref_deref`] now detects more deref cases [#5425](https://github.com/rust-lang/rust-clippy/pull/5425)
2061 * [`large_enum_variant`] now report the sizes of the largest and second-largest variants [#5466](https://github.com/rust-lang/rust-clippy/pull/5466)
2062 * [`bool_comparison`] now also checks for inequality comparisons that can be
2063 written more concisely [#5365](https://github.com/rust-lang/rust-clippy/pull/5365)
2064 * Expand [`clone_on_copy`] to work in method call arguments as well [#5441](https://github.com/rust-lang/rust-clippy/pull/5441)
2065 * [`redundant_pattern_matching`] now also handles `while let` [#5483](https://github.com/rust-lang/rust-clippy/pull/5483)
2066 * [`integer_arithmetic`] now also lints references of integers [#5329](https://github.com/rust-lang/rust-clippy/pull/5329)
2067 * Expand [`float_cmp_const`] to also work on arrays [#5345](https://github.com/rust-lang/rust-clippy/pull/5345)
2068 * Trigger [`map_flatten`] when map is called on an `Option` [#5473](https://github.com/rust-lang/rust-clippy/pull/5473)
2070 ### False Positive Fixes
2072 * [`many_single_char_names`] [#5468](https://github.com/rust-lang/rust-clippy/pull/5468)
2073 * [`should_implement_trait`] [#5437](https://github.com/rust-lang/rust-clippy/pull/5437)
2074 * [`unused_self`] [#5387](https://github.com/rust-lang/rust-clippy/pull/5387)
2075 * [`redundant_clone`] [#5453](https://github.com/rust-lang/rust-clippy/pull/5453)
2076 * [`precedence`] [#5445](https://github.com/rust-lang/rust-clippy/pull/5445)
2077 * [`suspicious_op_assign_impl`] [#5424](https://github.com/rust-lang/rust-clippy/pull/5424)
2078 * [`needless_lifetimes`] [#5293](https://github.com/rust-lang/rust-clippy/pull/5293)
2079 * [`redundant_pattern`] [#5287](https://github.com/rust-lang/rust-clippy/pull/5287)
2080 * [`inconsistent_digit_grouping`] [#5451](https://github.com/rust-lang/rust-clippy/pull/5451)
2083 ### Suggestion Improvements
2085 * Improved [`question_mark`] lint suggestion so that it doesn't add redundant `as_ref()` [#5481](https://github.com/rust-lang/rust-clippy/pull/5481)
2086 * Improve the suggested placeholder in [`option_map_unit_fn`] [#5292](https://github.com/rust-lang/rust-clippy/pull/5292)
2087 * Improve suggestion for [`match_single_binding`] when triggered inside a closure [#5350](https://github.com/rust-lang/rust-clippy/pull/5350)
2091 * Handle the unstable `trivial_bounds` feature [#5296](https://github.com/rust-lang/rust-clippy/pull/5296)
2092 * `shadow_*` lints [#5297](https://github.com/rust-lang/rust-clippy/pull/5297)
2096 * Fix documentation generation for configurable lints [#5353](https://github.com/rust-lang/rust-clippy/pull/5353)
2097 * Update documentation for [`new_ret_no_self`] [#5448](https://github.com/rust-lang/rust-clippy/pull/5448)
2098 * The documentation for [`option_option`] now suggest using a tri-state enum [#5403](https://github.com/rust-lang/rust-clippy/pull/5403)
2099 * Fix bit mask example in [`verbose_bit_mask`] documentation [#5454](https://github.com/rust-lang/rust-clippy/pull/5454)
2100 * [`wildcard_imports`] documentation now mentions that `use ...::prelude::*` is
2101 not linted [#5312](https://github.com/rust-lang/rust-clippy/pull/5312)
2107 [4ee1206...204bb9b](https://github.com/rust-lang/rust-clippy/compare/4ee1206...204bb9b)
2111 * [`imprecise_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
2112 * [`suboptimal_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
2113 * [`wildcard_imports`] [#5029](https://github.com/rust-lang/rust-clippy/pull/5029)
2114 * [`single_component_path_imports`] [#5058](https://github.com/rust-lang/rust-clippy/pull/5058)
2115 * [`match_single_binding`] [#5061](https://github.com/rust-lang/rust-clippy/pull/5061)
2116 * [`let_underscore_lock`] [#5101](https://github.com/rust-lang/rust-clippy/pull/5101)
2117 * [`struct_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
2118 * [`fn_params_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
2119 * [`option_env_unwrap`] [#5148](https://github.com/rust-lang/rust-clippy/pull/5148)
2120 * [`lossy_float_literal`] [#5202](https://github.com/rust-lang/rust-clippy/pull/5202)
2121 * [`rest_pat_in_fully_bound_structs`] [#5258](https://github.com/rust-lang/rust-clippy/pull/5258)
2123 ### Moves and Deprecations
2125 * Move [`unneeded_field_pattern`] to pedantic group [#5200](https://github.com/rust-lang/rust-clippy/pull/5200)
2129 * Make [`missing_errors_doc`] lint also trigger on `async` functions
2130 [#5181](https://github.com/rust-lang/rust-clippy/pull/5181)
2131 * Add more constants to [`approx_constant`] [#5193](https://github.com/rust-lang/rust-clippy/pull/5193)
2132 * Extend [`question_mark`] lint [#5266](https://github.com/rust-lang/rust-clippy/pull/5266)
2134 ### False Positive Fixes
2136 * [`use_debug`] [#5047](https://github.com/rust-lang/rust-clippy/pull/5047)
2137 * [`unnecessary_unwrap`] [#5132](https://github.com/rust-lang/rust-clippy/pull/5132)
2138 * [`zero_prefixed_literal`] [#5170](https://github.com/rust-lang/rust-clippy/pull/5170)
2139 * [`missing_const_for_fn`] [#5216](https://github.com/rust-lang/rust-clippy/pull/5216)
2141 ### Suggestion Improvements
2143 * Improve suggestion when blocks of code are suggested [#5134](https://github.com/rust-lang/rust-clippy/pull/5134)
2147 * `misc_early` lints [#5129](https://github.com/rust-lang/rust-clippy/pull/5129)
2148 * [`missing_errors_doc`] [#5213](https://github.com/rust-lang/rust-clippy/pull/5213)
2149 * Fix ICE when evaluating `usize`s [#5256](https://github.com/rust-lang/rust-clippy/pull/5256)
2153 * Improve documentation of [`iter_nth_zero`]
2154 * Add documentation pages for stable releases [#5171](https://github.com/rust-lang/rust-clippy/pull/5171)
2158 * Clippy now completely runs on GitHub Actions [#5190](https://github.com/rust-lang/rust-clippy/pull/5190)
2165 [69f99e7...4ee1206](https://github.com/rust-lang/rust-clippy/compare/69f99e7...4ee1206)
2169 * [`filetype_is_file`] [#4543](https://github.com/rust-lang/rust-clippy/pull/4543)
2170 * [`let_underscore_must_use`] [#4823](https://github.com/rust-lang/rust-clippy/pull/4823)
2171 * [`modulo_arithmetic`] [#4867](https://github.com/rust-lang/rust-clippy/pull/4867)
2172 * [`mem_replace_with_default`] [#4881](https://github.com/rust-lang/rust-clippy/pull/4881)
2173 * [`mutable_key_type`] [#4885](https://github.com/rust-lang/rust-clippy/pull/4885)
2174 * [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
2175 * [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
2176 * [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
2177 * `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
2178 * [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
2180 ### Moves and Deprecations
2182 * Move [`transmute_float_to_int`] from nursery to complexity group
2183 [#5015](https://github.com/rust-lang/rust-clippy/pull/5015)
2184 * Move [`range_plus_one`] to pedantic group [#5057](https://github.com/rust-lang/rust-clippy/pull/5057)
2185 * Move [`debug_assert_with_mut_call`] to nursery group [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
2186 * Deprecate `unused_label` [#4930](https://github.com/rust-lang/rust-clippy/pull/4930)
2190 * Lint vectored IO in [`unused_io_amount`] [#5027](https://github.com/rust-lang/rust-clippy/pull/5027)
2191 * Make [`vec_box`] configurable by adding a size threshold [#5081](https://github.com/rust-lang/rust-clippy/pull/5081)
2192 * Also lint constants in [`cmp_nan`] [#4910](https://github.com/rust-lang/rust-clippy/pull/4910)
2193 * Fix false negative in [`expect_fun_call`] [#4915](https://github.com/rust-lang/rust-clippy/pull/4915)
2194 * Fix false negative in [`redundant_clone`] [#5017](https://github.com/rust-lang/rust-clippy/pull/5017)
2196 ### False Positive Fixes
2198 * [`map_clone`] [#4937](https://github.com/rust-lang/rust-clippy/pull/4937)
2199 * [`replace_consts`] [#4977](https://github.com/rust-lang/rust-clippy/pull/4977)
2200 * [`let_and_return`] [#5008](https://github.com/rust-lang/rust-clippy/pull/5008)
2201 * [`eq_op`] [#5079](https://github.com/rust-lang/rust-clippy/pull/5079)
2202 * [`possible_missing_comma`] [#5083](https://github.com/rust-lang/rust-clippy/pull/5083)
2203 * [`debug_assert_with_mut_call`] [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
2204 * Don't trigger [`let_underscore_must_use`] in external macros
2205 [#5082](https://github.com/rust-lang/rust-clippy/pull/5082)
2206 * Don't trigger [`empty_loop`] in `no_std` crates [#5086](https://github.com/rust-lang/rust-clippy/pull/5086)
2208 ### Suggestion Improvements
2210 * `option_map_unwrap_or` [#4634](https://github.com/rust-lang/rust-clippy/pull/4634)
2211 * [`wildcard_enum_match_arm`] [#4934](https://github.com/rust-lang/rust-clippy/pull/4934)
2212 * [`cognitive_complexity`] [#4935](https://github.com/rust-lang/rust-clippy/pull/4935)
2213 * [`decimal_literal_representation`] [#4956](https://github.com/rust-lang/rust-clippy/pull/4956)
2214 * `unknown_clippy_lints` [#4963](https://github.com/rust-lang/rust-clippy/pull/4963)
2215 * [`explicit_into_iter_loop`] [#4978](https://github.com/rust-lang/rust-clippy/pull/4978)
2216 * [`useless_attribute`] [#5022](https://github.com/rust-lang/rust-clippy/pull/5022)
2217 * `if_let_some_result` [#5032](https://github.com/rust-lang/rust-clippy/pull/5032)
2221 * [`unsound_collection_transmute`] [#4975](https://github.com/rust-lang/rust-clippy/pull/4975)
2225 * Improve documentation of [`empty_enum`], [`replace_consts`], [`redundant_clone`], and [`iterator_step_by_zero`]
2232 [c8e3cfb...69f99e7](https://github.com/rust-lang/rust-clippy/compare/c8e3cfb...69f99e7)
2235 * [`exit`] [#4697](https://github.com/rust-lang/rust-clippy/pull/4697)
2236 * [`to_digit_is_some`] [#4801](https://github.com/rust-lang/rust-clippy/pull/4801)
2237 * [`tabs_in_doc_comments`] [#4806](https://github.com/rust-lang/rust-clippy/pull/4806)
2238 * [`large_stack_arrays`] [#4807](https://github.com/rust-lang/rust-clippy/pull/4807)
2239 * [`same_functions_in_if_condition`] [#4814](https://github.com/rust-lang/rust-clippy/pull/4814)
2240 * [`zst_offset`] [#4816](https://github.com/rust-lang/rust-clippy/pull/4816)
2241 * [`as_conversions`] [#4821](https://github.com/rust-lang/rust-clippy/pull/4821)
2242 * [`missing_errors_doc`] [#4884](https://github.com/rust-lang/rust-clippy/pull/4884)
2243 * [`transmute_float_to_int`] [#4889](https://github.com/rust-lang/rust-clippy/pull/4889)
2244 * Remove plugin interface, see
2245 [Inside Rust Blog](https://blog.rust-lang.org/inside-rust/2019/11/04/Clippy-removes-plugin-interface.html) for
2246 details [#4714](https://github.com/rust-lang/rust-clippy/pull/4714)
2247 * Move [`use_self`] to nursery group [#4863](https://github.com/rust-lang/rust-clippy/pull/4863)
2248 * Deprecate `into_iter_on_array` [#4788](https://github.com/rust-lang/rust-clippy/pull/4788)
2249 * Expand [`string_lit_as_bytes`] to also trigger when literal has escapes
2250 [#4808](https://github.com/rust-lang/rust-clippy/pull/4808)
2251 * Fix false positive in `comparison_chain` [#4842](https://github.com/rust-lang/rust-clippy/pull/4842)
2252 * Fix false positive in `while_immutable_condition` [#4730](https://github.com/rust-lang/rust-clippy/pull/4730)
2253 * Fix false positive in `explicit_counter_loop` [#4803](https://github.com/rust-lang/rust-clippy/pull/4803)
2254 * Fix false positive in `must_use_candidate` [#4794](https://github.com/rust-lang/rust-clippy/pull/4794)
2255 * Fix false positive in `print_with_newline` and `write_with_newline`
2256 [#4769](https://github.com/rust-lang/rust-clippy/pull/4769)
2257 * Fix false positive in `derive_hash_xor_eq` [#4766](https://github.com/rust-lang/rust-clippy/pull/4766)
2258 * Fix false positive in `missing_inline_in_public_items` [#4870](https://github.com/rust-lang/rust-clippy/pull/4870)
2259 * Fix false positive in `string_add` [#4880](https://github.com/rust-lang/rust-clippy/pull/4880)
2260 * Fix false positive in `float_arithmetic` [#4851](https://github.com/rust-lang/rust-clippy/pull/4851)
2261 * Fix false positive in `cast_sign_loss` [#4883](https://github.com/rust-lang/rust-clippy/pull/4883)
2262 * Fix false positive in `manual_swap` [#4877](https://github.com/rust-lang/rust-clippy/pull/4877)
2263 * Fix ICEs occurring while checking some block expressions [#4772](https://github.com/rust-lang/rust-clippy/pull/4772)
2264 * Fix ICE in `use_self` [#4776](https://github.com/rust-lang/rust-clippy/pull/4776)
2265 * Fix ICEs related to `const_generics` [#4780](https://github.com/rust-lang/rust-clippy/pull/4780)
2266 * Display help when running `clippy-driver` without arguments, instead of ICEing
2267 [#4810](https://github.com/rust-lang/rust-clippy/pull/4810)
2268 * Clippy has its own ICE message now [#4588](https://github.com/rust-lang/rust-clippy/pull/4588)
2269 * Show deprecated lints in the documentation again [#4757](https://github.com/rust-lang/rust-clippy/pull/4757)
2270 * Improve Documentation by adding positive examples to some lints
2271 [#4832](https://github.com/rust-lang/rust-clippy/pull/4832)
2277 [4e7e71b...c8e3cfb](https://github.com/rust-lang/rust-clippy/compare/4e7e71b...c8e3cfb)
2280 * [`unneeded_wildcard_pattern`] [#4537](https://github.com/rust-lang/rust-clippy/pull/4537)
2281 * [`needless_doctest_main`] [#4603](https://github.com/rust-lang/rust-clippy/pull/4603)
2282 * [`suspicious_unary_op_formatting`] [#4615](https://github.com/rust-lang/rust-clippy/pull/4615)
2283 * [`debug_assert_with_mut_call`] [#4680](https://github.com/rust-lang/rust-clippy/pull/4680)
2284 * [`unused_self`] [#4619](https://github.com/rust-lang/rust-clippy/pull/4619)
2285 * [`inefficient_to_string`] [#4683](https://github.com/rust-lang/rust-clippy/pull/4683)
2286 * [`must_use_unit`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2287 * [`must_use_candidate`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2288 * [`double_must_use`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
2289 * [`comparison_chain`] [#4569](https://github.com/rust-lang/rust-clippy/pull/4569)
2290 * [`unsound_collection_transmute`] [#4592](https://github.com/rust-lang/rust-clippy/pull/4592)
2291 * [`panic`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2292 * [`unreachable`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2293 * [`todo`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2294 * `option_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2295 * `result_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
2296 * Move `redundant_clone` to perf group [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
2297 * Move `manual_mul_add` to nursery group [#4736](https://github.com/rust-lang/rust-clippy/pull/4736)
2298 * 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)
2299 * Expand `integer_arithmetic` to also detect mutating arithmetic like `+=` [#4585](https://github.com/rust-lang/rust-clippy/pull/4585)
2300 * Fix false positive in `nonminimal_bool` [#4568](https://github.com/rust-lang/rust-clippy/pull/4568)
2301 * Fix false positive in `missing_safety_doc` [#4611](https://github.com/rust-lang/rust-clippy/pull/4611)
2302 * Fix false positive in `cast_sign_loss` [#4614](https://github.com/rust-lang/rust-clippy/pull/4614)
2303 * Fix false positive in `redundant_clone` [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
2304 * Fix false positive in `try_err` [#4721](https://github.com/rust-lang/rust-clippy/pull/4721)
2305 * Fix false positive in `toplevel_ref_arg` [#4570](https://github.com/rust-lang/rust-clippy/pull/4570)
2306 * Fix false positive in `multiple_inherent_impl` [#4593](https://github.com/rust-lang/rust-clippy/pull/4593)
2307 * Improve more suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4575](https://github.com/rust-lang/rust-clippy/pull/4575)
2308 * Improve suggestion for `zero_ptr` [#4599](https://github.com/rust-lang/rust-clippy/pull/4599)
2309 * Improve suggestion for `explicit_counter_loop` [#4691](https://github.com/rust-lang/rust-clippy/pull/4691)
2310 * Improve suggestion for `mul_add` [#4602](https://github.com/rust-lang/rust-clippy/pull/4602)
2311 * Improve suggestion for `assertions_on_constants` [#4635](https://github.com/rust-lang/rust-clippy/pull/4635)
2312 * Fix ICE in `use_self` [#4671](https://github.com/rust-lang/rust-clippy/pull/4671)
2313 * Fix ICE when encountering const casts [#4590](https://github.com/rust-lang/rust-clippy/pull/4590)
2319 [3aea860...4e7e71b](https://github.com/rust-lang/rust-clippy/compare/3aea860...4e7e71b)
2322 * [`uninit_assumed_init`] [#4479](https://github.com/rust-lang/rust-clippy/pull/4479)
2323 * [`flat_map_identity`] [#4231](https://github.com/rust-lang/rust-clippy/pull/4231)
2324 * [`missing_safety_doc`] [#4535](https://github.com/rust-lang/rust-clippy/pull/4535)
2325 * [`mem_replace_with_uninit`] [#4511](https://github.com/rust-lang/rust-clippy/pull/4511)
2326 * [`suspicious_map`] [#4394](https://github.com/rust-lang/rust-clippy/pull/4394)
2327 * `option_and_then_some` [#4386](https://github.com/rust-lang/rust-clippy/pull/4386)
2328 * [`manual_saturating_arithmetic`] [#4498](https://github.com/rust-lang/rust-clippy/pull/4498)
2329 * 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)
2330 * Move `type_repetition_in_bounds` to pedantic group [#4403](https://github.com/rust-lang/rust-clippy/pull/4403)
2331 * Move `cast_lossless` to pedantic group [#4539](https://github.com/rust-lang/rust-clippy/pull/4539)
2332 * `temporary_cstring_as_ptr` now catches more cases [#4425](https://github.com/rust-lang/rust-clippy/pull/4425)
2333 * `use_self` now works in constructors, too [#4525](https://github.com/rust-lang/rust-clippy/pull/4525)
2334 * `cargo_common_metadata` now checks for license files [#4518](https://github.com/rust-lang/rust-clippy/pull/4518)
2335 * `cognitive_complexity` now includes the measured complexity in the warning message [#4469](https://github.com/rust-lang/rust-clippy/pull/4469)
2336 * Fix false positives in `block_in_if_*` lints [#4458](https://github.com/rust-lang/rust-clippy/pull/4458)
2337 * Fix false positive in `cast_lossless` [#4473](https://github.com/rust-lang/rust-clippy/pull/4473)
2338 * Fix false positive in `clone_on_copy` [#4411](https://github.com/rust-lang/rust-clippy/pull/4411)
2339 * Fix false positive in `deref_addrof` [#4487](https://github.com/rust-lang/rust-clippy/pull/4487)
2340 * Fix false positive in `too_many_lines` [#4490](https://github.com/rust-lang/rust-clippy/pull/4490)
2341 * Fix false positive in `new_ret_no_self` [#4365](https://github.com/rust-lang/rust-clippy/pull/4365)
2342 * Fix false positive in `manual_swap` [#4478](https://github.com/rust-lang/rust-clippy/pull/4478)
2343 * Fix false positive in `missing_const_for_fn` [#4450](https://github.com/rust-lang/rust-clippy/pull/4450)
2344 * Fix false positive in `extra_unused_lifetimes` [#4477](https://github.com/rust-lang/rust-clippy/pull/4477)
2345 * Fix false positive in `inherent_to_string` [#4460](https://github.com/rust-lang/rust-clippy/pull/4460)
2346 * Fix false positive in `map_entry` [#4495](https://github.com/rust-lang/rust-clippy/pull/4495)
2347 * Fix false positive in `unused_unit` [#4445](https://github.com/rust-lang/rust-clippy/pull/4445)
2348 * Fix false positive in `redundant_pattern` [#4489](https://github.com/rust-lang/rust-clippy/pull/4489)
2349 * Fix false positive in `wrong_self_convention` [#4369](https://github.com/rust-lang/rust-clippy/pull/4369)
2350 * Improve various suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4558](https://github.com/rust-lang/rust-clippy/pull/4558)
2351 * Improve suggestions for `redundant_pattern_matching` [#4352](https://github.com/rust-lang/rust-clippy/pull/4352)
2352 * Improve suggestions for `explicit_write` [#4544](https://github.com/rust-lang/rust-clippy/pull/4544)
2353 * Improve suggestion for `or_fun_call` [#4522](https://github.com/rust-lang/rust-clippy/pull/4522)
2354 * Improve suggestion for `match_as_ref` [#4446](https://github.com/rust-lang/rust-clippy/pull/4446)
2355 * Improve suggestion for `unnecessary_fold_span` [#4382](https://github.com/rust-lang/rust-clippy/pull/4382)
2356 * Add suggestions for `unseparated_literal_suffix` [#4401](https://github.com/rust-lang/rust-clippy/pull/4401)
2357 * Add suggestions for `char_lit_as_u8` [#4418](https://github.com/rust-lang/rust-clippy/pull/4418)
2363 [e3cb40e...3aea860](https://github.com/rust-lang/rust-clippy/compare/e3cb40e...3aea860)
2366 * [`main_recursion`] [#4203](https://github.com/rust-lang/rust-clippy/pull/4203)
2367 * [`inherent_to_string`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
2368 * [`inherent_to_string_shadow_display`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
2369 * [`type_repetition_in_bounds`] [#3766](https://github.com/rust-lang/rust-clippy/pull/3766)
2370 * [`try_err`] [#4222](https://github.com/rust-lang/rust-clippy/pull/4222)
2371 * Move `{unnnecessary,panicking}_unwrap` out of nursery [#4307](https://github.com/rust-lang/rust-clippy/pull/4307)
2372 * Extend the `use_self` lint to suggest uses of `Self::Variant` [#4308](https://github.com/rust-lang/rust-clippy/pull/4308)
2373 * Improve suggestion for needless return [#4262](https://github.com/rust-lang/rust-clippy/pull/4262)
2374 * Add auto-fixable suggestion for `let_unit` [#4337](https://github.com/rust-lang/rust-clippy/pull/4337)
2375 * Fix false positive in `pub_enum_variant_names` and `enum_variant_names` [#4345](https://github.com/rust-lang/rust-clippy/pull/4345)
2376 * Fix false positive in `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
2377 * Fix false positive in `string_lit_as_bytes` [#4233](https://github.com/rust-lang/rust-clippy/pull/4233)
2378 * Fix false positive in `needless_lifetimes` [#4266](https://github.com/rust-lang/rust-clippy/pull/4266)
2379 * Fix false positive in `float_cmp` [#4275](https://github.com/rust-lang/rust-clippy/pull/4275)
2380 * Fix false positives in `needless_return` [#4274](https://github.com/rust-lang/rust-clippy/pull/4274)
2381 * Fix false negative in `match_same_arms` [#4246](https://github.com/rust-lang/rust-clippy/pull/4246)
2382 * Fix incorrect suggestion for `needless_bool` [#4335](https://github.com/rust-lang/rust-clippy/pull/4335)
2383 * Improve suggestion for `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
2384 * Improve suggestion for `single_char_literal` [#4361](https://github.com/rust-lang/rust-clippy/pull/4361)
2385 * Improve suggestion for `len_zero` [#4314](https://github.com/rust-lang/rust-clippy/pull/4314)
2386 * Fix ICE in `implicit_hasher` [#4268](https://github.com/rust-lang/rust-clippy/pull/4268)
2387 * Fix allow bug in `trivially_copy_pass_by_ref` [#4250](https://github.com/rust-lang/rust-clippy/pull/4250)
2393 [082cfa7...e3cb40e](https://github.com/rust-lang/rust-clippy/compare/082cfa7...e3cb40e)
2396 * [`checked_conversions`] [#4088](https://github.com/rust-lang/rust-clippy/pull/4088)
2397 * [`get_last_with_len`] [#3832](https://github.com/rust-lang/rust-clippy/pull/3832)
2398 * [`integer_division`] [#4195](https://github.com/rust-lang/rust-clippy/pull/4195)
2399 * Renamed Lint: `const_static_lifetime` is now called [`redundant_static_lifetimes`].
2400 The lint now covers statics in addition to consts [#4162](https://github.com/rust-lang/rust-clippy/pull/4162)
2401 * [`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)
2402 * [`needless_return`] now works with void functions [#4220](https://github.com/rust-lang/rust-clippy/pull/4220)
2403 * Fix false positive in [`redundant_closure`] [#4190](https://github.com/rust-lang/rust-clippy/pull/4190)
2404 * Fix false positive in [`useless_attribute`] [#4107](https://github.com/rust-lang/rust-clippy/pull/4107)
2405 * Fix incorrect suggestion for [`float_cmp`] [#4214](https://github.com/rust-lang/rust-clippy/pull/4214)
2406 * Add suggestions for [`print_with_newline`] and [`write_with_newline`] [#4136](https://github.com/rust-lang/rust-clippy/pull/4136)
2407 * Improve suggestions for `option_map_unwrap_or_else` and `result_map_unwrap_or_else` [#4164](https://github.com/rust-lang/rust-clippy/pull/4164)
2408 * Improve suggestions for [`non_ascii_literal`] [#4119](https://github.com/rust-lang/rust-clippy/pull/4119)
2409 * Improve diagnostics for [`let_and_return`] [#4137](https://github.com/rust-lang/rust-clippy/pull/4137)
2410 * Improve diagnostics for [`trivially_copy_pass_by_ref`] [#4071](https://github.com/rust-lang/rust-clippy/pull/4071)
2411 * Add macro check for [`unreadable_literal`] [#4099](https://github.com/rust-lang/rust-clippy/pull/4099)
2417 [eb9f9b1...082cfa7](https://github.com/rust-lang/rust-clippy/compare/eb9f9b1...082cfa7)
2419 * New lints: [`find_map`], [`filter_map_next`] [#4039](https://github.com/rust-lang/rust-clippy/pull/4039)
2420 * New lint: [`path_buf_push_overwrite`] [#3954](https://github.com/rust-lang/rust-clippy/pull/3954)
2421 * Move `path_buf_push_overwrite` to the nursery [#4013](https://github.com/rust-lang/rust-clippy/pull/4013)
2422 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
2423 * Allow allowing of [`toplevel_ref_arg`] lint [#4007](https://github.com/rust-lang/rust-clippy/pull/4007)
2424 * Fix false negative in [`or_fun_call`] pertaining to nested constructors [#4084](https://github.com/rust-lang/rust-clippy/pull/4084)
2425 * Fix false positive in [`or_fun_call`] pertaining to enum variant constructors [#4018](https://github.com/rust-lang/rust-clippy/pull/4018)
2426 * Fix false positive in [`useless_let_if_seq`] pertaining to interior mutability [#4035](https://github.com/rust-lang/rust-clippy/pull/4035)
2427 * Fix false positive in [`redundant_closure`] pertaining to non-function types [#4008](https://github.com/rust-lang/rust-clippy/pull/4008)
2428 * Fix false positive in [`let_and_return`] pertaining to attributes on `let`s [#4024](https://github.com/rust-lang/rust-clippy/pull/4024)
2429 * Fix false positive in [`module_name_repetitions`] lint pertaining to attributes [#4006](https://github.com/rust-lang/rust-clippy/pull/4006)
2430 * Fix false positive on [`assertions_on_constants`] pertaining to `debug_assert!` [#3989](https://github.com/rust-lang/rust-clippy/pull/3989)
2431 * 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)
2432 * Improve suggestion for [`search_is_some`] [#4049](https://github.com/rust-lang/rust-clippy/pull/4049)
2433 * Improve suggestion applicability for [`naive_bytecount`] [#3984](https://github.com/rust-lang/rust-clippy/pull/3984)
2434 * Improve suggestion applicability for [`while_let_loop`] [#3975](https://github.com/rust-lang/rust-clippy/pull/3975)
2435 * Improve diagnostics for [`too_many_arguments`] [#4053](https://github.com/rust-lang/rust-clippy/pull/4053)
2436 * Improve diagnostics for [`cast_lossless`] [#4021](https://github.com/rust-lang/rust-clippy/pull/4021)
2437 * Deal with macro checks in desugarings better [#4082](https://github.com/rust-lang/rust-clippy/pull/4082)
2438 * Add macro check for [`unnecessary_cast`] [#4026](https://github.com/rust-lang/rust-clippy/pull/4026)
2439 * Remove [`approx_constant`]'s documentation's "Known problems" section. [#4027](https://github.com/rust-lang/rust-clippy/pull/4027)
2440 * Fix ICE in [`suspicious_else_formatting`] [#3960](https://github.com/rust-lang/rust-clippy/pull/3960)
2441 * Fix ICE in [`decimal_literal_representation`] [#3931](https://github.com/rust-lang/rust-clippy/pull/3931)
2448 [1fac380..37f5c1e](https://github.com/rust-lang/rust-clippy/compare/1fac380...37f5c1e)
2450 * New lint: `drop_bounds` to detect `T: Drop` bounds
2451 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
2452 * Rename `cyclomatic_complexity` to [`cognitive_complexity`], start work on making lint more practical for Rust code
2453 * Move [`get_unwrap`] to the restriction category
2454 * Improve suggestions for [`iter_cloned_collect`]
2455 * Improve suggestions for [`cast_lossless`] to suggest suffixed literals
2456 * Fix false positives in [`print_with_newline`] and [`write_with_newline`] pertaining to raw strings
2457 * Fix false positive in [`needless_range_loop`] pertaining to structs without a `.iter()`
2458 * Fix false positive in [`bool_comparison`] pertaining to non-bool types
2459 * Fix false positive in [`redundant_closure`] pertaining to differences in borrows
2460 * Fix false positive in `option_map_unwrap_or` on non-copy types
2461 * Fix false positives in [`missing_const_for_fn`] pertaining to macros and trait method impls
2462 * Fix false positive in [`needless_pass_by_value`] pertaining to procedural macros
2463 * Fix false positive in [`needless_continue`] pertaining to loop labels
2464 * Fix false positive for [`boxed_local`] pertaining to arguments moved into closures
2465 * Fix false positive for [`use_self`] in nested functions
2466 * Fix suggestion for [`expect_fun_call`] (https://github.com/rust-lang/rust-clippy/pull/3846)
2467 * Fix suggestion for [`explicit_counter_loop`] to deal with parenthesizing range variables
2468 * Fix suggestion for [`single_char_pattern`] to correctly escape single quotes
2469 * Avoid triggering [`redundant_closure`] in macros
2470 * 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)
2476 [1b89724...1fac380](https://github.com/rust-lang/rust-clippy/compare/1b89724...1fac380)
2478 * New lint: [`assertions_on_constants`] to detect for example `assert!(true)`
2479 * New lint: [`dbg_macro`] to detect uses of the `dbg!` macro
2480 * New lint: [`missing_const_for_fn`] that can suggest functions to be made `const`
2481 * New lint: [`too_many_lines`] to detect functions with excessive LOC. It can be
2482 configured using the `too-many-lines-threshold` configuration.
2483 * New lint: [`wildcard_enum_match_arm`] to check for wildcard enum matches using `_`
2484 * Expand `redundant_closure` to also work for methods (not only functions)
2485 * Fix ICEs in `vec_box`, `needless_pass_by_value` and `implicit_hasher`
2486 * Fix false positive in `cast_sign_loss`
2487 * Fix false positive in `integer_arithmetic`
2488 * Fix false positive in `unit_arg`
2489 * Fix false positives in `implicit_return`
2490 * Add suggestion to `explicit_write`
2491 * Improve suggestions for `question_mark` lint
2492 * Fix incorrect suggestion for `cast_lossless`
2493 * Fix incorrect suggestion for `expect_fun_call`
2494 * Fix incorrect suggestion for `needless_bool`
2495 * Fix incorrect suggestion for `needless_range_loop`
2496 * Fix incorrect suggestion for `use_self`
2497 * Fix incorrect suggestion for `while_let_on_iterator`
2498 * Clippy is now slightly easier to invoke in non-cargo contexts. See
2499 [#3665][pull3665] for more details.
2500 * We now have [improved documentation][adding_lints] on how to add new lints
2506 [b2601be...1b89724](https://github.com/rust-lang/rust-clippy/compare/b2601be...1b89724)
2508 * New lints: [`implicit_return`], [`vec_box`], [`cast_ref_to_mut`]
2509 * The `rust-clippy` repository is now part of the `rust-lang` org.
2510 * Rename `stutter` to `module_name_repetitions`
2511 * Merge `new_without_default_derive` into `new_without_default` lint
2512 * Move `large_digit_groups` from `style` group to `pedantic`
2513 * Expand `bool_comparison` to check for `<`, `<=`, `>`, `>=`, and `!=`
2514 comparisons against booleans
2515 * Expand `no_effect` to detect writes to constants such as `A_CONST.field = 2`
2516 * Expand `redundant_clone` to work on struct fields
2517 * Expand `suspicious_else_formatting` to detect `if .. {..} {..}`
2518 * Expand `use_self` to work on tuple structs and also in local macros
2519 * Fix ICE in `result_map_unit_fn` and `option_map_unit_fn`
2520 * Fix false positives in `implicit_return`
2521 * Fix false positives in `use_self`
2522 * Fix false negative in `clone_on_copy`
2523 * Fix false positive in `doc_markdown`
2524 * Fix false positive in `empty_loop`
2525 * Fix false positive in `if_same_then_else`
2526 * Fix false positive in `infinite_iter`
2527 * Fix false positive in `question_mark`
2528 * Fix false positive in `useless_asref`
2529 * Fix false positive in `wildcard_dependencies`
2530 * Fix false positive in `write_with_newline`
2531 * Add suggestion to `explicit_write`
2532 * Improve suggestions for `question_mark` lint
2533 * Fix incorrect suggestion for `get_unwrap`
2539 [2e26fdc2...b2601be](https://github.com/rust-lang/rust-clippy/compare/2e26fdc2...b2601be)
2541 * New lints: [`slow_vector_initialization`], `mem_discriminant_non_enum`,
2542 [`redundant_clone`], [`wildcard_dependencies`],
2543 [`into_iter_on_ref`], `into_iter_on_array`, [`deprecated_cfg_attr`],
2544 [`cargo_common_metadata`]
2545 * Add support for `u128` and `i128` to integer related lints
2546 * Add float support to `mistyped_literal_suffixes`
2547 * Fix false positives in `use_self`
2548 * Fix false positives in `missing_comma`
2549 * Fix false positives in `new_ret_no_self`
2550 * Fix false positives in `possible_missing_comma`
2551 * Fix false positive in `integer_arithmetic` in constant items
2552 * Fix false positive in `needless_borrow`
2553 * Fix false positive in `out_of_bounds_indexing`
2554 * Fix false positive in `new_without_default_derive`
2555 * Fix false positive in `string_lit_as_bytes`
2556 * Fix false negative in `out_of_bounds_indexing`
2557 * Fix false negative in `use_self`. It will now also check existential types
2558 * Fix incorrect suggestion for `redundant_closure_call`
2559 * Fix various suggestions that contained expanded macros
2560 * Fix `bool_comparison` triggering 3 times on on on the same code
2561 * Expand `trivially_copy_pass_by_ref` to work on trait methods
2562 * Improve suggestion for `needless_range_loop`
2563 * Move `needless_pass_by_value` from `pedantic` group to `style`
2569 [125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
2571 * Clippy has been relicensed under a dual MIT / Apache license.
2572 See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
2574 * With Rust 1.31, Clippy is no longer available via crates.io. The recommended
2575 installation method is via `rustup component add clippy`.
2576 * New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
2577 [`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
2578 * Fix ICE in `if_let_redundant_pattern_matching`
2579 * Fix ICE in `needless_pass_by_value` when encountering a generic function
2580 argument with a lifetime parameter
2581 * Fix ICE in `needless_range_loop`
2582 * Fix ICE in `single_char_pattern` when encountering a constant value
2583 * Fix false positive in `assign_op_pattern`
2584 * Fix false positive in `boxed_local` on trait implementations
2585 * Fix false positive in `cmp_owned`
2586 * Fix false positive in `collapsible_if` when conditionals have comments
2587 * Fix false positive in `double_parens`
2588 * Fix false positive in `excessive_precision`
2589 * Fix false positive in `explicit_counter_loop`
2590 * Fix false positive in `fn_to_numeric_cast_with_truncation`
2591 * Fix false positive in `map_clone`
2592 * Fix false positive in `new_ret_no_self`
2593 * Fix false positive in `new_without_default` when `new` is unsafe
2594 * Fix false positive in `type_complexity` when using extern types
2595 * Fix false positive in `useless_format`
2596 * Fix false positive in `wrong_self_convention`
2597 * Fix incorrect suggestion for `excessive_precision`
2598 * Fix incorrect suggestion for `expect_fun_call`
2599 * Fix incorrect suggestion for `get_unwrap`
2600 * Fix incorrect suggestion for `useless_format`
2601 * `fn_to_numeric_cast_with_truncation` lint can be disabled again
2602 * Improve suggestions for `manual_memcpy`
2603 * Improve help message for `needless_lifetimes`
2609 [14207503...125907ad](https://github.com/rust-lang/rust-clippy/compare/14207503...125907ad)
2611 * Deprecate `assign_ops` lint
2612 * New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
2613 [`needless_collect`], [`copy_iterator`]
2614 * `cargo clippy -V` now includes the Clippy commit hash of the Rust
2616 * Fix ICE in `implicit_hasher`
2617 * Fix ICE when encountering `println!("{}" a);`
2618 * Fix ICE when encountering a macro call in match statements
2619 * Fix false positive in `default_trait_access`
2620 * Fix false positive in `trivially_copy_pass_by_ref`
2621 * Fix false positive in `similar_names`
2622 * Fix false positive in `redundant_field_name`
2623 * Fix false positive in `expect_fun_call`
2624 * Fix false negative in `identity_conversion`
2625 * Fix false negative in `explicit_counter_loop`
2626 * Fix `range_plus_one` suggestion and false negative
2627 * `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
2628 * Fix `useless_attribute` to also whitelist `unused_extern_crates`
2629 * Fix incorrect suggestion for `single_char_pattern`
2630 * Improve suggestion for `identity_conversion` lint
2631 * Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
2632 * Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
2633 * Move `shadow_unrelated` from `restriction` group to `pedantic`
2634 * Move `indexing_slicing` from `pedantic` group to `restriction`
2640 [v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
2642 * :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
2644 You can now run `rustup component add clippy-preview` and then `cargo
2645 clippy` to run Clippy. This should put an end to the continuous nightly
2646 upgrades for Clippy users.
2647 * Clippy now follows the Rust versioning scheme instead of its own
2648 * Fix ICE when encountering a `while let (..) = x.iter()` construct
2649 * Fix false positives in `use_self`
2650 * Fix false positive in `trivially_copy_pass_by_ref`
2651 * Fix false positive in `useless_attribute` lint
2652 * Fix false positive in `print_literal`
2653 * Fix `use_self` regressions
2654 * Improve lint message for `neg_cmp_op_on_partial_ord`
2655 * Improve suggestion highlight for `single_char_pattern`
2656 * Improve suggestions for various print/write macro lints
2657 * Improve website header
2659 ## 0.0.212 (2018-07-10)
2660 * Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
2663 * Rustup to *rustc 1.28.0-nightly (e3bf634e0 2018-06-28)*
2666 * Rustup to *rustc 1.28.0-nightly (01cc982e9 2018-06-24)*
2669 * Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
2672 * Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*
2675 * Rustup to *rustc 1.28.0-nightly (2a0062974 2018-06-09)*
2678 * Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)*
2681 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)*
2682 * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint
2685 * Rustup to *rustc 1.28.0-nightly (71e87be38 2018-05-22)*
2688 * Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
2689 * Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
2692 * Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*
2695 * Rustup to *rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)*
2698 * Rustup to *rustc 1.27.0-nightly (9fae15374 2018-05-13)*
2701 * Rustup to *rustc 1.27.0-nightly (ff2ac35db 2018-05-12)*
2704 * Rustup to *rustc 1.27.0-nightly (acd3871ba 2018-05-10)*
2707 * Rustup to *rustc 1.27.0-nightly (428ea5f6b 2018-05-06)*
2710 * Rustup to *rustc 1.27.0-nightly (e82261dfb 2018-05-03)*
2713 * Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
2716 * Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
2717 * New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
2720 * Rustup to *rustc 1.27.0-nightly (eeea94c11 2018-04-06)*
2723 * Rustup to *rustc 1.27.0-nightly (fb44b4c0e 2018-04-04)*
2724 * New lint: [`print_literal`]
2727 * Rustup to *rustc 1.26.0-nightly (ae544ee1c 2018-03-29)*
2728 * Lint audit; categorize lints as style, correctness, complexity, pedantic, nursery, restriction.
2731 * Fix a bunch of intermittent cargo bugs
2734 * Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
2737 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
2738 * New lint: [`while_immutable_condition`]
2741 * Rustup to *rustc 1.26.0-nightly (322d7f7b9 2018-02-25)*
2742 * New lints: [`redundant_field_names`], [`suspicious_arithmetic_impl`], [`suspicious_op_assign_impl`]
2745 * Rustup to *rustc 1.25.0-nightly (0c6091fbd 2018-02-04)*
2746 * Various false positive fixes
2749 * Rustup to *rustc 1.25.0-nightly (56733bc9f 2018-02-01)*
2750 * New lint: [`question_mark`]
2753 * Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)*
2754 * New lints: [`double_comparisons`], [`empty_line_after_outer_attr`]
2757 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)*
2758 * New lint: [`misaligned_transmute`]
2761 * Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
2762 * New lint: [`decimal_literal_representation`]
2765 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
2766 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
2767 * Removed `unit_expr`
2768 * Various false positive fixes for [`needless_pass_by_value`]
2771 * Rustup to *rustc 1.25.0-nightly (3f92e8d89 2018-01-14)*
2774 * Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
2777 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
2780 * Rustup to *rustc 1.24.0-nightly (250b49205 2017-12-21)*
2781 * New lint: [`match_as_ref`]
2784 * Rustup to *rustc 1.24.0-nightly (0077d128d 2017-12-14)*
2787 * Rustup to *rustc 1.24.0-nightly (bb42071f6 2017-12-01)*
2790 * Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
2793 * Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*
2796 * Rustup to *rustc 1.23.0-nightly (d0f8e2913 2017-11-16)*
2799 * Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
2802 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
2805 * Rustup to *rustc 1.23.0-nightly (3b82e4c74 2017-11-05)*
2806 * New lints: [`just_underscores_and_digits`], `result_map_unwrap_or_else`, [`transmute_bytes_to_str`]
2809 * Rustup to *rustc 1.23.0-nightly (f0fe716db 2017-10-30)*
2812 * Rustup to *rustc 1.23.0-nightly (90ef3372e 2017-10-29)*
2813 * New lints: `const_static_lifetime`, [`erasing_op`], [`fallible_impl_from`], [`println_empty_string`], [`useless_asref`]
2816 * Rustup to *rustc 1.22.0-nightly (b7960878b 2017-10-18)*
2817 * New lints: [`explicit_write`], `identity_conversion`, [`implicit_hasher`], `invalid_ref`, [`option_map_or_none`],
2818 [`range_minus_one`], [`range_plus_one`], [`transmute_int_to_bool`], [`transmute_int_to_char`],
2819 [`transmute_int_to_float`]
2822 * Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
2823 * New lint: [`mut_range_bound`]
2826 * Update to *rustc 1.22.0-nightly (6c476ce46 2017-09-25)*
2827 * New lint: [`int_plus_one`]
2830 * Update to *rustc 1.22.0-nightly (14039a42a 2017-09-22)*
2833 * Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
2834 * New lint: [`chars_last_cmp`]
2835 * Improved suggestions for [`needless_borrow`], [`ptr_arg`],
2838 * Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
2841 * Update to *rustc 1.22.0-nightly (dd08c3070 2017-09-12)*
2844 * Update to *rustc 1.22.0-nightly (eba374fb2 2017-09-11)*
2845 * New lint: [`clone_on_ref_ptr`]
2848 * New lint: [`manual_memcpy`]
2849 * [`cast_lossless`] no longer has redundant parentheses in its suggestions
2850 * Update to *rustc 1.22.0-nightly (dead08cb3 2017-09-08)*
2852 ## 0.0.157 - 2017-09-04
2853 * Update to *rustc 1.22.0-nightly (981ce7d8d 2017-09-03)*
2854 * New lint: `unit_expr`
2856 ## 0.0.156 - 2017-09-03
2857 * Update to *rustc 1.22.0-nightly (744dd6c1d 2017-09-02)*
2860 * Update to *rustc 1.21.0-nightly (c11f689d2 2017-08-29)*
2861 * New lint: [`infinite_iter`], [`maybe_infinite_iter`], [`cast_lossless`]
2864 * Update to *rustc 1.21.0-nightly (2c0558f63 2017-08-24)*
2865 * Fix [`use_self`] triggering inside derives
2866 * Add support for linting an entire workspace with `cargo clippy --all`
2867 * New lint: [`naive_bytecount`]
2870 * Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)*
2871 * New lint: [`use_self`]
2874 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)*
2877 * Update to *rustc 1.21.0-nightly (13d94d5fa 2017-08-10)*
2880 * Update to *rustc 1.21.0-nightly (215e0b10e 2017-08-08)*
2883 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)*
2884 * New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`]
2887 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)*
2890 * Update to *rustc 1.21.0-nightly (52a330969 2017-07-27)*
2891 * Fixes false positives in `inline_always`
2892 * Fixes false negatives in `panic_params`
2895 * Update to *rustc 1.20.0-nightly (afe145d22 2017-07-23)*
2898 * Update to *rustc 1.20.0-nightly (086eaa78e 2017-07-15)*
2901 * Update to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
2902 * Fix `cargo clippy` crashing on `dylib` projects
2903 * Fix false positives around `nested_while_let` and `never_loop`
2906 * Update to *rustc 1.20.0-nightly (067971139 2017-07-02)*
2909 * Rewrite of the `doc_markdown` lint.
2910 * Deprecated [`range_step_by_zero`]
2911 * New lint: [`iterator_step_by_zero`]
2912 * New lint: [`needless_borrowed_reference`]
2913 * Update to *rustc 1.20.0-nightly (69c65d296 2017-06-28)*
2915 ## 0.0.140 - 2017-06-16
2916 * Update to *rustc 1.19.0-nightly (258ae6dd9 2017-06-15)*
2918 ## 0.0.139 — 2017-06-10
2919 * Update to *rustc 1.19.0-nightly (4bf5c99af 2017-06-10)*
2920 * Fix bugs with for loop desugaring
2921 * Check for [`AsRef`]/[`AsMut`] arguments in [`wrong_self_convention`]
2923 ## 0.0.138 — 2017-06-05
2924 * Update to *rustc 1.19.0-nightly (0418fa9d3 2017-06-04)*
2926 ## 0.0.137 — 2017-06-05
2927 * Update to *rustc 1.19.0-nightly (6684d176c 2017-06-03)*
2929 ## 0.0.136 — 2017—05—26
2930 * Update to *rustc 1.19.0-nightly (557967766 2017-05-26)*
2932 ## 0.0.135 — 2017—05—24
2933 * Update to *rustc 1.19.0-nightly (5b13bff52 2017-05-23)*
2935 ## 0.0.134 — 2017—05—19
2936 * Update to *rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)*
2938 ## 0.0.133 — 2017—05—14
2939 * Update to *rustc 1.19.0-nightly (826d8f385 2017-05-13)*
2941 ## 0.0.132 — 2017—05—05
2942 * Fix various bugs and some ices
2944 ## 0.0.131 — 2017—05—04
2945 * Update to *rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)*
2947 ## 0.0.130 — 2017—05—03
2948 * Update to *rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)*
2950 ## 0.0.129 — 2017-05-01
2951 * Update to *rustc 1.19.0-nightly (06fb4d256 2017-04-30)*
2953 ## 0.0.128 — 2017-04-28
2954 * Update to *rustc 1.18.0-nightly (94e884b63 2017-04-27)*
2956 ## 0.0.127 — 2017-04-27
2957 * Update to *rustc 1.18.0-nightly (036983201 2017-04-26)*
2958 * New lint: [`needless_continue`]
2960 ## 0.0.126 — 2017-04-24
2961 * Update to *rustc 1.18.0-nightly (2bd4b5c6d 2017-04-23)*
2963 ## 0.0.125 — 2017-04-19
2964 * Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)*
2966 ## 0.0.124 — 2017-04-16
2967 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
2969 ## 0.0.123 — 2017-04-07
2970 * Fix various false positives
2972 ## 0.0.122 — 2017-04-07
2973 * Rustup to *rustc 1.18.0-nightly (91ae22a01 2017-04-05)*
2974 * New lint: [`op_ref`]
2976 ## 0.0.121 — 2017-03-21
2977 * Rustup to *rustc 1.17.0-nightly (134c4a0f0 2017-03-20)*
2979 ## 0.0.120 — 2017-03-17
2980 * Rustup to *rustc 1.17.0-nightly (0aeb9c129 2017-03-15)*
2982 ## 0.0.119 — 2017-03-13
2983 * Rustup to *rustc 1.17.0-nightly (824c9ebbd 2017-03-12)*
2985 ## 0.0.118 — 2017-03-05
2986 * Rustup to *rustc 1.17.0-nightly (b1e31766d 2017-03-03)*
2988 ## 0.0.117 — 2017-03-01
2989 * Rustup to *rustc 1.17.0-nightly (be760566c 2017-02-28)*
2991 ## 0.0.116 — 2017-02-28
2992 * Fix `cargo clippy` on 64 bit windows systems
2994 ## 0.0.115 — 2017-02-27
2995 * Rustup to *rustc 1.17.0-nightly (60a0edc6c 2017-02-26)*
2996 * New lints: [`zero_ptr`], [`never_loop`], [`mut_from_ref`]
2998 ## 0.0.114 — 2017-02-08
2999 * Rustup to *rustc 1.17.0-nightly (c49d10207 2017-02-07)*
3000 * Tests are now ui tests (testing the exact output of rustc)
3002 ## 0.0.113 — 2017-02-04
3003 * Rustup to *rustc 1.16.0-nightly (eedaa94e3 2017-02-02)*
3004 * New lint: [`large_enum_variant`]
3005 * `explicit_into_iter_loop` provides suggestions
3007 ## 0.0.112 — 2017-01-27
3008 * Rustup to *rustc 1.16.0-nightly (df8debf6d 2017-01-25)*
3010 ## 0.0.111 — 2017-01-21
3011 * Rustup to *rustc 1.16.0-nightly (a52da95ce 2017-01-20)*
3013 ## 0.0.110 — 2017-01-20
3014 * Add badges and categories to `Cargo.toml`
3016 ## 0.0.109 — 2017-01-19
3017 * Update to *rustc 1.16.0-nightly (c07a6ae77 2017-01-17)*
3019 ## 0.0.108 — 2017-01-12
3020 * Update to *rustc 1.16.0-nightly (2782e8f8f 2017-01-12)*
3022 ## 0.0.107 — 2017-01-11
3023 * Update regex dependency
3024 * Fix FP when matching `&&mut` by `&ref`
3025 * Reintroduce `for (_, x) in &mut hash_map` -> `for x in hash_map.values_mut()`
3026 * New lints: [`unused_io_amount`], [`forget_ref`], [`short_circuit_statement`]
3028 ## 0.0.106 — 2017-01-04
3029 * Fix FP introduced by rustup in [`wrong_self_convention`]
3031 ## 0.0.105 — 2017-01-04
3032 * Update to *rustc 1.16.0-nightly (468227129 2017-01-03)*
3033 * New lints: [`deref_addrof`], [`double_parens`], [`pub_enum_variant_names`]
3034 * Fix suggestion in [`new_without_default`]
3035 * FP fix in [`absurd_extreme_comparisons`]
3037 ## 0.0.104 — 2016-12-15
3038 * Update to *rustc 1.15.0-nightly (8f02c429a 2016-12-15)*
3040 ## 0.0.103 — 2016-11-25
3041 * Update to *rustc 1.15.0-nightly (d5814b03e 2016-11-23)*
3043 ## 0.0.102 — 2016-11-24
3044 * Update to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
3046 ## 0.0.101 — 2016-11-23
3047 * Update to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
3048 * New lint: [`string_extend_chars`]
3050 ## 0.0.100 — 2016-11-20
3051 * Update to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
3053 ## 0.0.99 — 2016-11-18
3054 * Update to rustc 1.15.0-nightly (0ed951993 2016-11-14)
3055 * New lint: [`get_unwrap`]
3057 ## 0.0.98 — 2016-11-08
3058 * Fixes an issue due to a change in how cargo handles `--sysroot`, which broke `cargo clippy`
3060 ## 0.0.97 — 2016-11-03
3061 * For convenience, `cargo clippy` defines a `cargo-clippy` feature. This was
3062 previously added for a short time under the name `clippy` but removed for
3064 * `cargo clippy --help` is more helping (and less helpful :smile:)
3065 * Rustup to *rustc 1.14.0-nightly (5665bdf3e 2016-11-02)*
3066 * New lints: [`if_let_redundant_pattern_matching`], [`partialeq_ne_impl`]
3068 ## 0.0.96 — 2016-10-22
3069 * Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)*
3070 * New lint: [`iter_skip_next`]
3072 ## 0.0.95 — 2016-10-06
3073 * Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
3075 ## 0.0.94 — 2016-10-04
3076 * Fixes bustage on Windows due to forbidden directory name
3078 ## 0.0.93 — 2016-10-03
3079 * Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
3080 * `option_map_unwrap_or` and `option_map_unwrap_or_else` are now
3082 * New lint: [`explicit_into_iter_loop`]
3084 ## 0.0.92 — 2016-09-30
3085 * Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
3087 ## 0.0.91 — 2016-09-28
3088 * Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
3090 ## 0.0.90 — 2016-09-09
3091 * Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
3093 ## 0.0.89 — 2016-09-06
3094 * Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
3096 ## 0.0.88 — 2016-09-04
3097 * Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)*
3098 * The following lints are not new but were only usable through the `clippy`
3099 lint groups: [`filter_next`], `for_loop_over_option`,
3100 `for_loop_over_result` and [`match_overlapping_arm`]. You should now be
3101 able to `#[allow/deny]` them individually and they are available directly
3102 through `cargo clippy`.
3104 ## 0.0.87 — 2016-08-31
3105 * Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)*
3106 * New lints: [`builtin_type_shadow`]
3107 * Fix FP in [`zero_prefixed_literal`] and `0b`/`0o`
3109 ## 0.0.86 — 2016-08-28
3110 * Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
3111 * New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
3113 ## 0.0.85 — 2016-08-19
3114 * Fix ICE with [`useless_attribute`]
3115 * [`useless_attribute`] ignores `unused_imports` on `use` statements
3117 ## 0.0.84 — 2016-08-18
3118 * Rustup to *rustc 1.13.0-nightly (aef6971ca 2016-08-17)*
3120 ## 0.0.83 — 2016-08-17
3121 * Rustup to *rustc 1.12.0-nightly (1bf5fa326 2016-08-16)*
3122 * New lints: [`print_with_newline`], [`useless_attribute`]
3124 ## 0.0.82 — 2016-08-17
3125 * Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)*
3126 * New lint: [`module_inception`]
3128 ## 0.0.81 — 2016-08-14
3129 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)*
3130 * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`]
3131 * False positive fix in [`too_many_arguments`]
3132 * Addition of functionality to [`needless_borrow`]
3133 * Suggestions for [`clone_on_copy`]
3134 * Bug fix in [`wrong_self_convention`]
3137 ## 0.0.80 — 2016-07-31
3138 * Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)*
3139 * New lints: [`misrefactored_assign_op`], [`serde_api_misuse`]
3141 ## 0.0.79 — 2016-07-10
3142 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
3143 * Major suggestions refactoring
3145 ## 0.0.78 — 2016-07-02
3146 * Rustup to *rustc 1.11.0-nightly (01411937f 2016-07-01)*
3147 * New lints: [`wrong_transmute`], [`double_neg`], [`filter_map`]
3148 * For compatibility, `cargo clippy` does not defines the `clippy` feature
3149 introduced in 0.0.76 anymore
3150 * [`collapsible_if`] now considers `if let`
3152 ## 0.0.77 — 2016-06-21
3153 * Rustup to *rustc 1.11.0-nightly (5522e678b 2016-06-20)*
3154 * New lints: `stutter` and [`iter_nth`]
3156 ## 0.0.76 — 2016-06-10
3157 * Rustup to *rustc 1.11.0-nightly (7d2f75a95 2016-06-09)*
3158 * `cargo clippy` now automatically defines the `clippy` feature
3159 * New lint: [`not_unsafe_ptr_arg_deref`]
3161 ## 0.0.75 — 2016-06-08
3162 * Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*
3164 ## 0.0.74 — 2016-06-07
3165 * Fix bug with `cargo-clippy` JSON parsing
3166 * Add the `CLIPPY_DISABLE_DOCS_LINKS` environment variable to deactivate the
3167 “for further information visit *lint-link*” message.
3169 ## 0.0.73 — 2016-06-05
3170 * Fix false positives in [`useless_let_if_seq`]
3172 ## 0.0.72 — 2016-06-04
3173 * Fix false positives in [`useless_let_if_seq`]
3175 ## 0.0.71 — 2016-05-31
3176 * Rustup to *rustc 1.11.0-nightly (a967611d8 2016-05-30)*
3177 * New lint: [`useless_let_if_seq`]
3179 ## 0.0.70 — 2016-05-28
3180 * Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
3181 * [`invalid_regex`] and [`trivial_regex`] can now warn on `RegexSet::new`,
3182 `RegexBuilder::new` and byte regexes
3184 ## 0.0.69 — 2016-05-20
3185 * Rustup to *rustc 1.10.0-nightly (476fe6eef 2016-05-21)*
3186 * [`used_underscore_binding`] has been made `Allow` temporarily
3188 ## 0.0.68 — 2016-05-17
3189 * Rustup to *rustc 1.10.0-nightly (cd6a40017 2016-05-16)*
3190 * New lint: [`unnecessary_operation`]
3192 ## 0.0.67 — 2016-05-12
3193 * Rustup to *rustc 1.10.0-nightly (22ac88f1a 2016-05-11)*
3195 ## 0.0.66 — 2016-05-11
3196 * New `cargo clippy` subcommand
3197 * New lints: [`assign_op_pattern`], [`assign_ops`], [`needless_borrow`]
3199 ## 0.0.65 — 2016-05-08
3200 * Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
3201 * New lints: [`float_arithmetic`], [`integer_arithmetic`]
3203 ## 0.0.64 — 2016-04-26
3204 * Rustup to *rustc 1.10.0-nightly (645dd013a 2016-04-24)*
3205 * New lints: `temporary_cstring_as_ptr`, [`unsafe_removed_from_name`], and [`mem_forget`]
3207 ## 0.0.63 — 2016-04-08
3208 * Rustup to *rustc 1.9.0-nightly (7979dd608 2016-04-07)*
3210 ## 0.0.62 — 2016-04-07
3211 * Rustup to *rustc 1.9.0-nightly (bf5da36f1 2016-04-06)*
3213 ## 0.0.61 — 2016-04-03
3214 * Rustup to *rustc 1.9.0-nightly (5ab11d72c 2016-04-02)*
3215 * New lint: [`invalid_upcast_comparisons`]
3217 ## 0.0.60 — 2016-04-01
3218 * Rustup to *rustc 1.9.0-nightly (e1195c24b 2016-03-31)*
3220 ## 0.0.59 — 2016-03-31
3221 * Rustup to *rustc 1.9.0-nightly (30a3849f2 2016-03-30)*
3222 * New lints: [`logic_bug`], [`nonminimal_bool`]
3223 * Fixed: [`match_same_arms`] now ignores arms with guards
3224 * Improved: [`useless_vec`] now warns on `for … in vec![…]`
3226 ## 0.0.58 — 2016-03-27
3227 * Rustup to *rustc 1.9.0-nightly (d5a91e695 2016-03-26)*
3228 * New lint: [`doc_markdown`]
3230 ## 0.0.57 — 2016-03-27
3231 * Update to *rustc 1.9.0-nightly (a1e29daf1 2016-03-25)*
3232 * Deprecated lints: [`str_to_string`], [`string_to_string`], [`unstable_as_slice`], [`unstable_as_mut_slice`]
3233 * New lint: [`crosspointer_transmute`]
3235 ## 0.0.56 — 2016-03-23
3236 * Update to *rustc 1.9.0-nightly (0dcc413e4 2016-03-22)*
3237 * New lints: [`many_single_char_names`] and [`similar_names`]
3239 ## 0.0.55 — 2016-03-21
3240 * Update to *rustc 1.9.0-nightly (02310fd31 2016-03-19)*
3242 ## 0.0.54 — 2016-03-16
3243 * Update to *rustc 1.9.0-nightly (c66d2380a 2016-03-15)*
3245 ## 0.0.53 — 2016-03-15
3246 * Add a [configuration file]
3250 ## 0.0.51 — 2016-03-13
3251 * Add `str` to types considered by [`len_zero`]
3252 * New lints: [`indexing_slicing`]
3254 ## 0.0.50 — 2016-03-11
3255 * Update to *rustc 1.9.0-nightly (c9629d61c 2016-03-10)*
3257 ## 0.0.49 — 2016-03-09
3258 * Update to *rustc 1.9.0-nightly (eabfc160f 2016-03-08)*
3259 * New lints: [`overflow_check_conditional`], `unused_label`, [`new_without_default`]
3261 ## 0.0.48 — 2016-03-07
3262 * Fixed: ICE in [`needless_range_loop`] with globals
3264 ## 0.0.47 — 2016-03-07
3265 * Update to *rustc 1.9.0-nightly (998a6720b 2016-03-07)*
3266 * New lint: [`redundant_closure_call`]
3268 [`AsMut`]: https://doc.rust-lang.org/std/convert/trait.AsMut.html
3269 [`AsRef`]: https://doc.rust-lang.org/std/convert/trait.AsRef.html
3270 [configuration file]: ./rust-clippy#configuration
3271 [pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
3272 [adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/doc/adding_lints.md
3273 [`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
3275 <!-- lint disable no-unused-definitions -->
3276 <!-- begin autogenerated links to lint list -->
3277 [`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
3278 [`allow_attributes_without_reason`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason
3279 [`almost_complete_letter_range`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_letter_range
3280 [`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
3281 [`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
3282 [`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
3283 [`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
3284 [`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
3285 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
3286 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
3287 [`await_holding_invalid_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_invalid_type
3288 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
3289 [`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
3290 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
3291 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
3292 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
3293 [`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
3294 [`block_in_if_condition_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_expr
3295 [`block_in_if_condition_stmt`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt
3296 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
3297 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
3298 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
3299 [`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
3300 [`borrow_deref_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
3301 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
3302 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
3303 [`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
3304 [`box_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
3305 [`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
3306 [`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
3307 [`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
3308 [`bytes_count_to_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_count_to_len
3309 [`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
3310 [`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
3311 [`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
3312 [`cast_abs_to_unsigned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned
3313 [`cast_enum_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_constructor
3314 [`cast_enum_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_truncation
3315 [`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
3316 [`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
3317 [`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
3318 [`cast_precision_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss
3319 [`cast_ptr_alignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment
3320 [`cast_ref_to_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ref_to_mut
3321 [`cast_sign_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
3322 [`cast_slice_different_sizes`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes
3323 [`char_lit_as_u8`]: https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
3324 [`chars_last_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
3325 [`chars_next_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
3326 [`checked_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions
3327 [`clone_double_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
3328 [`clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
3329 [`clone_on_ref_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_ref_ptr
3330 [`cloned_instead_of_copied`]: https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
3331 [`cmp_nan`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_nan
3332 [`cmp_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
3333 [`cmp_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
3334 [`cognitive_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
3335 [`collapsible_else_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
3336 [`collapsible_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
3337 [`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
3338 [`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
3339 [`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
3340 [`const_static_lifetime`]: https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime
3341 [`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
3342 [`crate_in_macro_def`]: https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
3343 [`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
3344 [`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
3345 [`cyclomatic_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity
3346 [`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
3347 [`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
3348 [`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
3349 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
3350 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
3351 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
3352 [`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
3353 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
3354 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
3355 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
3356 [`deref_by_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing
3357 [`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
3358 [`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
3359 [`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
3360 [`derive_partial_eq_without_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
3361 [`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
3362 [`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
3363 [`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
3364 [`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
3365 [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
3366 [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
3367 [`doc_link_with_quotes`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
3368 [`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
3369 [`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
3370 [`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
3371 [`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
3372 [`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
3373 [`drop_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_bounds
3374 [`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
3375 [`drop_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
3376 [`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
3377 [`duplicate_mod`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_mod
3378 [`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
3379 [`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
3380 [`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
3381 [`empty_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_drop
3382 [`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
3383 [`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
3384 [`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
3385 [`empty_structs_with_brackets`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_structs_with_brackets
3386 [`enum_clike_unportable_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant
3387 [`enum_glob_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
3388 [`enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
3389 [`eq_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
3390 [`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
3391 [`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
3392 [`err_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#err_expect
3393 [`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
3394 [`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
3395 [`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
3396 [`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
3397 [`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
3398 [`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
3399 [`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
3400 [`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
3401 [`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop
3402 [`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
3403 [`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
3404 [`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
3405 [`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
3406 [`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
3407 [`extend_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_with_drain
3408 [`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
3409 [`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
3410 [`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
3411 [`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
3412 [`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
3413 [`filter_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
3414 [`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
3415 [`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
3416 [`find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#find_map
3417 [`flat_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_identity
3418 [`flat_map_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
3419 [`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
3420 [`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
3421 [`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
3422 [`float_equality_without_abs`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_equality_without_abs
3423 [`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
3424 [`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
3425 [`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
3426 [`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
3427 [`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
3428 [`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
3429 [`for_loop_over_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_option
3430 [`for_loop_over_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_result
3431 [`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
3432 [`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
3433 [`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
3434 [`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
3435 [`format_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
3436 [`format_push_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
3437 [`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
3438 [`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
3439 [`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
3440 [`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
3441 [`get_first`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_first
3442 [`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
3443 [`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
3444 [`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
3445 [`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
3446 [`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
3447 [`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
3448 [`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
3449 [`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
3450 [`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
3451 [`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
3452 [`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
3453 [`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
3454 [`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
3455 [`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
3456 [`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub
3457 [`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
3458 [`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
3459 [`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
3460 [`index_refutable_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice
3461 [`indexing_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
3462 [`ineffective_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask
3463 [`inefficient_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
3464 [`infallible_destructuring_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#infallible_destructuring_match
3465 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
3466 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
3467 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
3468 [`init_numbered_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
3469 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
3470 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
3471 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
3472 [`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
3473 [`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
3474 [`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
3475 [`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
3476 [`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
3477 [`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
3478 [`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
3479 [`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
3480 [`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
3481 [`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
3482 [`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
3483 [`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
3484 [`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
3485 [`is_digit_ascii_radix`]: https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
3486 [`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
3487 [`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
3488 [`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
3489 [`iter_next_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
3490 [`iter_next_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
3491 [`iter_not_returning_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
3492 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
3493 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
3494 [`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
3495 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
3496 [`iter_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_with_drain
3497 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
3498 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
3499 [`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
3500 [`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
3501 [`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
3502 [`large_include_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_include_file
3503 [`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
3504 [`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
3505 [`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
3506 [`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
3507 [`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
3508 [`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
3509 [`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
3510 [`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
3511 [`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
3512 [`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
3513 [`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
3514 [`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
3515 [`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
3516 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
3517 [`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
3518 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
3519 [`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
3520 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
3521 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
3522 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
3523 [`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
3524 [`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
3525 [`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
3526 [`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
3527 [`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
3528 [`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
3529 [`manual_split_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
3530 [`manual_str_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_str_repeat
3531 [`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
3532 [`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
3533 [`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
3534 [`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
3535 [`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
3536 [`map_collect_result_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_collect_result_unit
3537 [`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
3538 [`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
3539 [`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
3540 [`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
3541 [`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
3542 [`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
3543 [`match_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_bool
3544 [`match_like_matches_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
3545 [`match_on_vec_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
3546 [`match_overlapping_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
3547 [`match_ref_pats`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
3548 [`match_result_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
3549 [`match_same_arms`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
3550 [`match_single_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
3551 [`match_str_case_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_str_case_mismatch
3552 [`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
3553 [`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
3554 [`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
3555 [`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
3556 [`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
3557 [`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
3558 [`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
3559 [`mem_replace_with_uninit`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
3560 [`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
3561 [`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
3562 [`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
3563 [`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
3564 [`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
3565 [`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
3566 [`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
3567 [`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
3568 [`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
3569 [`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
3570 [`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
3571 [`missing_spin_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
3572 [`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
3573 [`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
3574 [`mixed_read_write_in_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_read_write_in_expression
3575 [`mod_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
3576 [`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
3577 [`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
3578 [`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
3579 [`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
3580 [`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
3581 [`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
3582 [`must_use_candidate`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
3583 [`must_use_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_unit
3584 [`mut_from_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
3585 [`mut_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut
3586 [`mut_mutex_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mutex_lock
3587 [`mut_range_bound`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_range_bound
3588 [`mutable_key_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
3589 [`mutex_atomic`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
3590 [`mutex_integer`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer
3591 [`naive_bytecount`]: https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount
3592 [`needless_arbitrary_self_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
3593 [`needless_bitwise_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool
3594 [`needless_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
3595 [`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
3596 [`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
3597 [`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
3598 [`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
3599 [`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
3600 [`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
3601 [`needless_late_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
3602 [`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
3603 [`needless_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
3604 [`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
3605 [`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
3606 [`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
3607 [`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
3608 [`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
3609 [`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
3610 [`needless_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_splitn
3611 [`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
3612 [`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
3613 [`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
3614 [`negative_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#negative_feature_names
3615 [`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
3616 [`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
3617 [`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
3618 [`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
3619 [`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
3620 [`no_effect_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace
3621 [`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
3622 [`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
3623 [`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
3624 [`non_send_fields_in_send_ty`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
3625 [`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
3626 [`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
3627 [`nonstandard_macro_braces`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
3628 [`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
3629 [`octal_escapes`]: https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes
3630 [`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
3631 [`only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
3632 [`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
3633 [`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
3634 [`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
3635 [`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
3636 [`option_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_expect_used
3637 [`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
3638 [`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
3639 [`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
3640 [`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
3641 [`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or
3642 [`option_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
3643 [`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
3644 [`option_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_unwrap_used
3645 [`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
3646 [`or_then_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap
3647 [`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
3648 [`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
3649 [`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
3650 [`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
3651 [`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
3652 [`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
3653 [`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
3654 [`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
3655 [`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
3656 [`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
3657 [`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
3658 [`print_in_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_in_format_impl
3659 [`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
3660 [`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
3661 [`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
3662 [`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
3663 [`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
3664 [`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
3665 [`ptr_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
3666 [`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
3667 [`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
3668 [`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
3669 [`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
3670 [`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
3671 [`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
3672 [`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
3673 [`range_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_step_by_zero
3674 [`range_zip_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_zip_with_len
3675 [`rc_buffer`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_buffer
3676 [`rc_clone_in_vec_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_clone_in_vec_init
3677 [`rc_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_mutex
3678 [`recursive_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl
3679 [`redundant_allocation`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_allocation
3680 [`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
3681 [`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
3682 [`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
3683 [`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
3684 [`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
3685 [`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
3686 [`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
3687 [`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
3688 [`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
3689 [`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
3690 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
3691 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
3692 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
3693 [`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
3694 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
3695 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
3696 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
3697 [`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
3698 [`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
3699 [`result_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_expect_used
3700 [`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
3701 [`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
3702 [`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
3703 [`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
3704 [`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
3705 [`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
3706 [`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
3707 [`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
3708 [`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
3709 [`same_name_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
3710 [`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
3711 [`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
3712 [`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
3713 [`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
3714 [`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
3715 [`separated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
3716 [`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
3717 [`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
3718 [`shadow_same`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
3719 [`shadow_unrelated`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
3720 [`short_circuit_statement`]: https://rust-lang.github.io/rust-clippy/master/index.html#short_circuit_statement
3721 [`should_assert_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_assert_eq
3722 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
3723 [`significant_drop_in_scrutinee`]: https://rust-lang.github.io/rust-clippy/master/index.html#significant_drop_in_scrutinee
3724 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
3725 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
3726 [`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
3727 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
3728 [`single_char_push_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
3729 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
3730 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
3731 [`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
3732 [`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
3733 [`size_of_in_element_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count
3734 [`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
3735 [`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
3736 [`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
3737 [`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
3738 [`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
3739 [`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
3740 [`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
3741 [`string_from_utf8_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_from_utf8_as_bytes
3742 [`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
3743 [`string_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_slice
3744 [`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
3745 [`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
3746 [`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
3747 [`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
3748 [`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
3749 [`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
3750 [`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
3751 [`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
3752 [`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
3753 [`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
3754 [`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
3755 [`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
3756 [`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
3757 [`swap_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
3758 [`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
3759 [`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
3760 [`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
3761 [`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
3762 [`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
3763 [`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
3764 [`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
3765 [`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
3766 [`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
3767 [`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
3768 [`trailing_empty_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#trailing_empty_array
3769 [`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
3770 [`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
3771 [`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
3772 [`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
3773 [`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
3774 [`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
3775 [`transmute_num_to_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_num_to_bytes
3776 [`transmute_ptr_to_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
3777 [`transmute_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
3778 [`transmute_undefined_repr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr
3779 [`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
3780 [`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
3781 [`trim_split_whitespace`]: https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace
3782 [`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
3783 [`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
3784 [`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
3785 [`type_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
3786 [`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
3787 [`undocumented_unsafe_blocks`]: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
3788 [`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops
3789 [`unicode_not_nfc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unicode_not_nfc
3790 [`unimplemented`]: https://rust-lang.github.io/rust-clippy/master/index.html#unimplemented
3791 [`uninit_assumed_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
3792 [`uninit_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec
3793 [`unit_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
3794 [`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
3795 [`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
3796 [`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
3797 [`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
3798 [`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
3799 [`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
3800 [`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
3801 [`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
3802 [`unnecessary_join`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
3803 [`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
3804 [`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
3805 [`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
3806 [`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
3807 [`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
3808 [`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
3809 [`unnecessary_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
3810 [`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
3811 [`unnecessary_wraps`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
3812 [`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
3813 [`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
3814 [`unnested_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
3815 [`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
3816 [`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
3817 [`unsafe_derive_deserialize`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
3818 [`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
3819 [`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
3820 [`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
3821 [`unsound_collection_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsound_collection_transmute
3822 [`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
3823 [`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
3824 [`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
3825 [`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
3826 [`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
3827 [`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
3828 [`unused_rounding`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
3829 [`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
3830 [`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
3831 [`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
3832 [`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
3833 [`unwrap_or_else_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
3834 [`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
3835 [`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
3836 [`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
3837 [`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
3838 [`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
3839 [`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
3840 [`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
3841 [`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
3842 [`useless_format`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
3843 [`useless_let_if_seq`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_let_if_seq
3844 [`useless_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute
3845 [`useless_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
3846 [`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
3847 [`vec_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
3848 [`vec_resize_to_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_resize_to_zero
3849 [`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
3850 [`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
3851 [`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
3852 [`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
3853 [`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
3854 [`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
3855 [`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
3856 [`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
3857 [`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
3858 [`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
3859 [`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
3860 [`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline
3861 [`writeln_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
3862 [`wrong_pub_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_pub_self_convention
3863 [`wrong_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
3864 [`wrong_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_transmute
3865 [`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
3866 [`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
3867 [`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
3868 [`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
3869 [`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
3870 [`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
3871 <!-- end autogenerated links to lint list -->