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