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