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