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