]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/CHANGELOG.md
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / CHANGELOG.md
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4 See [Changelog Update](book/src/development/infrastructure/changelog_update.md) if you want to update this
5 document.
6
7 ## Unreleased / Beta / In Rust Nightly
8
9 [37f4c172...master](https://github.com/rust-lang/rust-clippy/compare/37f4c172...master)
10
11 ## Rust 1.72
12
13 Current stable, released 2023-08-24
14
15 [View all 131 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-05-22T14%3A53%3A59Z..2023-07-01T22%3A57%3A20Z+base%3Amaster)
16
17 ### New Lints
18
19 * [`manual_try_fold`]
20 [#11012](https://github.com/rust-lang/rust-clippy/pull/11012)
21 * [`tuple_array_conversions`]
22 [#11020](https://github.com/rust-lang/rust-clippy/pull/11020)
23 * [`redundant_at_rest_pattern`]
24 [#11013](https://github.com/rust-lang/rust-clippy/pull/11013)
25 * [`needless_pub_self`]
26 [#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
27 * [`pub_with_shorthand`]
28 [#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
29 * [`pub_without_shorthand`]
30 [#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
31 * [`manual_range_patterns`]
32 [#10968](https://github.com/rust-lang/rust-clippy/pull/10968)
33 * [`needless_raw_string_hashes`]
34 [#10884](https://github.com/rust-lang/rust-clippy/pull/10884)
35 * [`needless_raw_strings`]
36 [#10884](https://github.com/rust-lang/rust-clippy/pull/10884)
37 * [`incorrect_clone_impl_on_copy_type`]
38 [#10925](https://github.com/rust-lang/rust-clippy/pull/10925)
39 * [`drain_collect`]
40 [#10835](https://github.com/rust-lang/rust-clippy/pull/10835)
41 * [`single_range_in_vec_init`]
42 [#10934](https://github.com/rust-lang/rust-clippy/pull/10934)
43 * [`unnecessary_literal_unwrap`]
44 [#10358](https://github.com/rust-lang/rust-clippy/pull/10358)
45 * [`large_stack_frames`]
46 [#10827](https://github.com/rust-lang/rust-clippy/pull/10827)
47 * [`min_ident_chars`]
48 [#10916](https://github.com/rust-lang/rust-clippy/pull/10916)
49 * [`needless_if`]
50 [#10921](https://github.com/rust-lang/rust-clippy/pull/10921)
51 * [`excessive_nesting`]
52 [#10672](https://github.com/rust-lang/rust-clippy/pull/10672)
53 * [`arc_with_non_send_sync`]
54 [#10898](https://github.com/rust-lang/rust-clippy/pull/10898)
55 * [`redundant_type_annotations`]
56 [#10570](https://github.com/rust-lang/rust-clippy/pull/10570)
57 * [`host_endian_bytes`]
58 [#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
59 * [`little_endian_bytes`]
60 [#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
61 * [`big_endian_bytes`]
62 [#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
63 * [`ptr_cast_constness`]
64 [#10779](https://github.com/rust-lang/rust-clippy/pull/10779)
65 * [`needless_else`]
66 [#10810](https://github.com/rust-lang/rust-clippy/pull/10810)
67
68 ### Moves and Deprecations
69
70 * Moved [`redundant_clone`] to `nursery` (Now allow-by-default)
71 [#10873](https://github.com/rust-lang/rust-clippy/pull/10873)
72
73 ### Enhancements
74
75 * [`undocumented_unsafe_blocks`]: Added [`accept-comment-above-attributes`] configuration
76 [#10986](https://github.com/rust-lang/rust-clippy/pull/10986)
77 * [`undocumented_unsafe_blocks`]: Added [`accept-comment-above-statement`] configuration.
78 [#10886](https://github.com/rust-lang/rust-clippy/pull/10886)
79 * [`missing_panics_doc`]: No longer lints on `todo!()`
80 [#10976](https://github.com/rust-lang/rust-clippy/pull/10976)
81 * [`module_inception`]: Added `allow-private-module-inception` configuration.
82 [#10917](https://github.com/rust-lang/rust-clippy/pull/10917)
83 * Errors and warnings generated while parsing `clippy.toml` now point to the location in the TOML
84 file the error/warning occurred in.
85 [#10607](https://github.com/rust-lang/rust-clippy/pull/10607)
86
87 ### False Positive Fixes
88
89 * [`excessive_precision`]: No longer lints overflowing literals
90 [#10952](https://github.com/rust-lang/rust-clippy/pull/10952)
91
92 ### Suggestion Fixes/Improvements
93
94 * [`option_map_unwrap_or`]: The suggestion now considers the set [`msrv`] config value
95 [#11030](https://github.com/rust-lang/rust-clippy/pull/11030)
96
97 ### Documentation Improvements
98
99 * [Clippy's lint list] now stores filter parameters in the URL, to allow easy sharing
100 [#10834](https://github.com/rust-lang/rust-clippy/pull/10834)
101
102 ## Rust 1.71
103
104 Released 2023-07-13
105
106 Note: Clippy will use a shorter changelog format from now on, if you want a detailed list of
107 all changes, please check out the list of merged pull requests.
108
109 [View all 78 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-04-11T20%3A05%3A26Z..2023-05-20T13%3A48%3A17Z+base%3Amaster)
110
111 ### New Lints
112
113 * [`non_minimal_cfg`]
114 [#10763](https://github.com/rust-lang/rust-clippy/pull/10763)
115 * [`manual_next_back`]
116 [#10769](https://github.com/rust-lang/rust-clippy/pull/10769)
117 * [`ref_patterns`]
118 [#10736](https://github.com/rust-lang/rust-clippy/pull/10736)
119 * [`default_constructed_unit_structs`]
120 [#10716](https://github.com/rust-lang/rust-clippy/pull/10716)
121 * [`manual_while_let_some`]
122 [#10647](https://github.com/rust-lang/rust-clippy/pull/10647)
123 * [`needless_bool_assign`]
124 [#10432](https://github.com/rust-lang/rust-clippy/pull/10432)
125 * [`items_after_test_module`]
126 [#10578](https://github.com/rust-lang/rust-clippy/pull/10578)
127
128 ### Moves and Deprecations
129
130 * Rename `integer_arithmetic` to `arithmetic_side_effects`
131 [#10674](https://github.com/rust-lang/rust-clippy/pull/10674)
132 * Moved [`redundant_clone`] to `nursery` (Now allow-by-default)
133 [#10873](https://github.com/rust-lang/rust-clippy/pull/10873)
134
135 ### Enhancements
136
137 * [`invalid_regex`]: Now supports the new syntax introduced after regex v1.8.0
138 [#10682](https://github.com/rust-lang/rust-clippy/pull/10682)
139 * [`semicolon_outside_block`]: Added [`semicolon-outside-block-ignore-multiline`] as a new config value.
140 [#10656](https://github.com/rust-lang/rust-clippy/pull/10656)
141 * [`semicolon_inside_block`]: Added [`semicolon-inside-block-ignore-singleline`] as a new config value.
142 [#10656](https://github.com/rust-lang/rust-clippy/pull/10656)
143 * [`unnecessary_box_returns`]: Added [`unnecessary-box-size`] as a new config value to set the maximum
144 size of `T` in `Box<T>` to be linted.
145 [#10651](https://github.com/rust-lang/rust-clippy/pull/10651)
146
147 ### Documentation Improvements
148
149 * `cargo clippy --explain LINT` now shows possible configuration options for the explained lint
150 [#10751](https://github.com/rust-lang/rust-clippy/pull/10751)
151 * New config values mentioned in this changelog will now be linked.
152 [#10889](https://github.com/rust-lang/rust-clippy/pull/10889)
153 * Several sections of [Clippy's book] have been reworked
154 [#10652](https://github.com/rust-lang/rust-clippy/pull/10652)
155 [#10622](https://github.com/rust-lang/rust-clippy/pull/10622)
156
157 [Clippy's book]: https://doc.rust-lang.org/clippy/
158
159 ## Rust 1.70
160
161 Released 2023-06-01
162
163 [View all 91 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-02-26T01%3A05%3A43Z..2023-04-11T13%3A27%3A30Z+base%3Amaster)
164
165 ### New Lints
166
167 * [`large_futures`]
168 [#10414](https://github.com/rust-lang/rust-clippy/pull/10414)
169 * [`missing_assert_message`]
170 [#10362](https://github.com/rust-lang/rust-clippy/pull/10362)
171 * [`clear_with_drain`]
172 [#10528](https://github.com/rust-lang/rust-clippy/pull/10528)
173 * [`redundant_async_block`]
174 [#10448](https://github.com/rust-lang/rust-clippy/pull/10448)
175 * [`collection_is_never_read`]
176 [#10415](https://github.com/rust-lang/rust-clippy/pull/10415)
177 * [`let_with_type_underscore`]
178 [#10467](https://github.com/rust-lang/rust-clippy/pull/10467)
179 * [`tests_outside_test_module`]
180 [#10543](https://github.com/rust-lang/rust-clippy/pull/10543)
181 * [`allow_attributes`]
182 [#10481](https://github.com/rust-lang/rust-clippy/pull/10481)
183 * [`suspicious_doc_comments`]
184 [#10497](https://github.com/rust-lang/rust-clippy/pull/10497)
185 * [`unnecessary_box_returns`]
186 [#9102](https://github.com/rust-lang/rust-clippy/pull/9102)
187 * [`manual_main_separator_str`]
188 [#10483](https://github.com/rust-lang/rust-clippy/pull/10483)
189 * [`unnecessary_struct_initialization`]
190 [#10489](https://github.com/rust-lang/rust-clippy/pull/10489)
191 * [`manual_slice_size_calculation`]
192 [#10601](https://github.com/rust-lang/rust-clippy/pull/10601)
193 * [`lines_filter_map_ok`]
194 [#10534](https://github.com/rust-lang/rust-clippy/pull/10534)
195
196 ### Moves and Deprecations
197
198 * Moved [`let_underscore_untyped`] to `restriction`
199 [#10442](https://github.com/rust-lang/rust-clippy/pull/10442)
200
201 ### Enhancements
202
203 * [`extra_unused_type_parameters`]: No longer lints on public items if `avoid-breaking-exported-api` is set
204 [#10536](https://github.com/rust-lang/rust-clippy/pull/10536)
205 * [`len_without_is_empty`]: Now also detects `async` functions
206 [#10359](https://github.com/rust-lang/rust-clippy/pull/10359)
207 * [`arithmetic_side_effects`]: Now correctly handles divisions and modulo expressions if the right-hand-side
208 is unknown
209 [#10585](https://github.com/rust-lang/rust-clippy/pull/10585)
210 * [`nonminimal_bool`]: No longer ignores `#[allow]` attributes
211 [#10588](https://github.com/rust-lang/rust-clippy/pull/10588)
212 * [`uninit_vec`], [`uninit_assumed_init`]: Now uses a better heuristic
213 [#10520](https://github.com/rust-lang/rust-clippy/pull/10520)
214 * [`ifs_same_cond`]: Now also detects immutable method calls.
215 [#10350](https://github.com/rust-lang/rust-clippy/pull/10350)
216 * [`arithmetic_side_effects`]: No longer lints on right or left shifts with constant integers, as the
217 compiler warns about them
218 [#10309](https://github.com/rust-lang/rust-clippy/pull/10309)
219 * [`items_after_statements`]: `#[allow(items_after_statements)]` now works on items
220 [#10542](https://github.com/rust-lang/rust-clippy/pull/10542)
221 * [`significant_drop_tightening`]: Was optimized
222 [#10533](https://github.com/rust-lang/rust-clippy/pull/10533)
223
224 ### False Positive Fixes
225
226 * [`single_component_path_imports`]: No longer lints if the import is used relative to `self`
227 [#10566](https://github.com/rust-lang/rust-clippy/pull/10566)
228 * [`derivable_impls`]: No longer suggests deriving `Default` on generics with implicit arguments
229 [#10399](https://github.com/rust-lang/rust-clippy/pull/10399)
230 * [`let_unit_value`]: No longer lints if the expression contains an `await`
231 [#10439](https://github.com/rust-lang/rust-clippy/pull/10439)
232 * [`double_must_use`]: Now ignores `async` functions
233 [#10589](https://github.com/rust-lang/rust-clippy/pull/10589)
234 * [`manual_clamp`]: No longer lints in constant context
235 [#10479](https://github.com/rust-lang/rust-clippy/pull/10479)
236 * [`almost_swapped`]: Now ignores external macros
237 [#10502](https://github.com/rust-lang/rust-clippy/pull/10502)
238 * [`nonminimal_bool`]: Now ignores macros
239 [#10527](https://github.com/rust-lang/rust-clippy/pull/10527)
240 * [`needless_return`]: No longer lints match statements with incompatible branches
241 [#10593](https://github.com/rust-lang/rust-clippy/pull/10593)
242 * [`use_self`]: Do not suggest using `Self` in const generic parameters
243 [#10375](https://github.com/rust-lang/rust-clippy/pull/10375)
244 * [`mem_replace_option_with_none`]: No longer lints on field expressions
245 [#10594](https://github.com/rust-lang/rust-clippy/pull/10594)
246 * [`items_after_statements`]: No longer lints on items from macros
247 [#10542](https://github.com/rust-lang/rust-clippy/pull/10542)
248 * [`print_literal`], [`write_literal`]: No longer lint strings coming from the `file!()` macro
249 [#10573](https://github.com/rust-lang/rust-clippy/pull/10573)
250 * [`uninit_vec`], [`uninit_assumed_init`]: Now check the types inside arrays and tuples
251 [#10553](https://github.com/rust-lang/rust-clippy/pull/10553)
252 * [`almost_swapped`]: No longer lints if a variable is assigned to itself
253 [#10499](https://github.com/rust-lang/rust-clippy/pull/10499)
254 * [`missing_docs_in_private_items`]: No longer lints on public items
255 [#10324](https://github.com/rust-lang/rust-clippy/pull/10324)
256
257 ### Suggestion Fixes/Improvements
258
259 * [`extra_unused_type_parameters`]: The suggestion is now machine applicable
260 [#10536](https://github.com/rust-lang/rust-clippy/pull/10536)
261 * [`match_single_binding`]: Now adds a semicolon after the suggestion
262 [#10470](https://github.com/rust-lang/rust-clippy/pull/10470)
263 * [`missing_const_for_fn`]: Now includes a note if the change could break compatibility
264 [#10618](https://github.com/rust-lang/rust-clippy/pull/10618)
265 * [`cast_possible_truncation`]: Corrected suggestion for float and wildcard casts
266 [#10496](https://github.com/rust-lang/rust-clippy/pull/10496)
267 * [`transmutes_expressible_as_ptr_casts`]: The suggestion now includes parentheses when they are required
268 [#10454](https://github.com/rust-lang/rust-clippy/pull/10454)
269
270 ### ICE Fixes
271
272 * [`needless_borrow`]: No longer panics on ambiguous projections
273 [#10403](https://github.com/rust-lang/rust-clippy/pull/10403)
274 * [`multiple_unsafe_ops_per_block`]: Fix ICE when calling a function-like object in an unsafe block
275 [#10405](https://github.com/rust-lang/rust-clippy/pull/10405)
276
277 ### Others
278
279 * `clippy-driver` now searches parent directories for `clippy.toml` files
280 [#10592](https://github.com/rust-lang/rust-clippy/pull/10592)
281 * Fixed a deserialization error for the `array-size-threshold` config value
282 [#10423](https://github.com/rust-lang/rust-clippy/pull/10423)
283
284 ## Rust 1.69
285
286 Released 2023-04-20
287
288 [View all 72 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-01-13T06%3A12%3A46Z..2023-02-25T23%3A48%3A10Z+base%3Amaster)
289
290 ### New Lints
291
292 * [`no_mangle_with_rust_abi`]
293 [#10369](https://github.com/rust-lang/rust-clippy/pull/10369)
294 * [`significant_drop_tightening`]
295 [#10163](https://github.com/rust-lang/rust-clippy/pull/10163)
296 * [`suspicious_command_arg_space`]
297 [#10317](https://github.com/rust-lang/rust-clippy/pull/10317)
298 * [`let_underscore_untyped`]
299 [#10356](https://github.com/rust-lang/rust-clippy/pull/10356)
300 * [`question_mark_used`]
301 [#10342](https://github.com/rust-lang/rust-clippy/pull/10342)
302 * [`extra_unused_type_parameters`]
303 [#10028](https://github.com/rust-lang/rust-clippy/pull/10028)
304 * [`impl_trait_in_params`]
305 [10197](https://github.com/rust-lang/rust-clippy/pull/10197)
306 * [`transmute_int_to_non_zero`]
307 [#10360](https://github.com/rust-lang/rust-clippy/pull/10360)
308 * [`multiple_unsafe_ops_per_block`]
309 [#10206](https://github.com/rust-lang/rust-clippy/pull/10206)
310
311 ### Moves and Deprecations
312
313 * Moved [`uninlined_format_args`] to `pedantic` (Now allow-by-default)
314 [#10265](https://github.com/rust-lang/rust-clippy/pull/10265)
315 * Moved [`unchecked_duration_subtraction`] to `pedantic` (Now allow-by-default)
316 [#10194](https://github.com/rust-lang/rust-clippy/pull/10194)
317
318 ### Enhancements
319
320 * [`arithmetic_side_effects`]: No longer lints if safe constant values are used.
321 [#10310](https://github.com/rust-lang/rust-clippy/pull/10310)
322 * [`needless_lifetimes`]: Now works in local macros
323 [#10257](https://github.com/rust-lang/rust-clippy/pull/10257)
324 * [`unused_io_amount`]: Now detects usages of `is_ok` and `is_err`
325 [#10225](https://github.com/rust-lang/rust-clippy/pull/10225)
326 * [`missing_docs_in_private_items`]: Added new configuration `missing-docs-in-crate-items` to lint
327 on items visible within the current crate. For example, `pub(crate)` items.
328 [#10303](https://github.com/rust-lang/rust-clippy/pull/10303)
329 * [`almost_swapped`]: Now detects almost swaps using `let` statements
330 [#10177](https://github.com/rust-lang/rust-clippy/pull/10177)
331 * [`wildcard_enum_match_arm`]: Now lints missing private variants, for local enums
332 [#10250](https://github.com/rust-lang/rust-clippy/pull/10250)
333
334 ### False Positive Fixes
335
336 * [`explicit_auto_deref`]: Now considers projections when determining if auto deref is applicable
337 [#10386](https://github.com/rust-lang/rust-clippy/pull/10386)
338 * [`manual_let_else`]: Now considers side effects of branches before linting
339 [#10336](https://github.com/rust-lang/rust-clippy/pull/10336)
340 * [`uninlined_format_args`]: No longer lints for arguments with generic parameters
341 [#10343](https://github.com/rust-lang/rust-clippy/pull/10343)
342 * [`needless_lifetimes`]: No longer lints signatures in macros if the lifetime is a metavariable
343 [#10380](https://github.com/rust-lang/rust-clippy/pull/10380)
344 * [`len_without_is_empty`]: No longer lints if `len` as a non-default signature
345 [#10255](https://github.com/rust-lang/rust-clippy/pull/10255)
346 * [`unusual_byte_groupings`]: Relaxed the required restrictions for specific sizes to reduce false
347 positives
348 [#10353](https://github.com/rust-lang/rust-clippy/pull/10353)
349 * [`manual_let_else`]: No longer lints `if-else` blocks if they can divergent
350 [#10332](https://github.com/rust-lang/rust-clippy/pull/10332)
351 * [`expect_used`], [`unwrap_used`], [`dbg_macro`], [`print_stdout`], [`print_stderr`]: No longer lint
352 in test functions if `allow-expect-in-tests` is set
353 [#10391](https://github.com/rust-lang/rust-clippy/pull/10391)
354 * [`unnecessary_safety_comment`]: No longer lints code inside macros
355 [#10106](https://github.com/rust-lang/rust-clippy/pull/10106)
356 * [`never_loop`]: No longer lints statements following break statements for outer blocks.
357 [#10311](https://github.com/rust-lang/rust-clippy/pull/10311)
358
359 ### Suggestion Fixes/Improvements
360
361 * [`box_default`]: The suggestion now includes the type for trait objects when needed
362 [#10382](https://github.com/rust-lang/rust-clippy/pull/10382)
363 * [`cast_possible_truncation`]: Now suggests using `try_from` or allowing the lint
364 [#10038](https://github.com/rust-lang/rust-clippy/pull/10038)
365 * [`invalid_regex`]: Regex errors for non-literals or regular strings containing escape sequences will
366 now show the complete error
367 [#10231](https://github.com/rust-lang/rust-clippy/pull/10231)
368 * [`transmutes_expressible_as_ptr_casts`]: The suggestion now works if the base type is borrowed
369 [#10193](https://github.com/rust-lang/rust-clippy/pull/10193)
370 * [`needless_return`]: Now removes all semicolons on the same line
371 [#10187](https://github.com/rust-lang/rust-clippy/pull/10187)
372 * [`suspicious_to_owned`]: The suggestion now shows all options clearly
373 [#10295](https://github.com/rust-lang/rust-clippy/pull/10295)
374 * [`bytes_nth`]: Now suggests the correct replacement based on the context
375 [#10361](https://github.com/rust-lang/rust-clippy/pull/10361)
376 * [`bool_assert_comparison`]: The suggestion is now machine applicable
377 [#10218](https://github.com/rust-lang/rust-clippy/pull/10218)
378 * [`cast_possible_truncation`]: Corrected the lint name in the help message
379 [#10330](https://github.com/rust-lang/rust-clippy/pull/10330)
380 * [`needless_return`]: The suggestion now works on if sequences
381 [#10345](https://github.com/rust-lang/rust-clippy/pull/10345)
382 * [`needless_lifetimes`]: The suggestion is now machine applicable
383 [#10222](https://github.com/rust-lang/rust-clippy/pull/10222)
384 * [`map_entry`]: The suggestion no longer expands macros
385 [#10346](https://github.com/rust-lang/rust-clippy/pull/10346)
386
387 ### ICE Fixes
388
389 * [`needless_pass_by_value`]: Fixed an ICE caused by how late bounds were handled
390 [#10328](https://github.com/rust-lang/rust-clippy/pull/10328)
391 * [`needless_borrow`]: No longer panics on ambiguous projections
392 [#10403](https://github.com/rust-lang/rust-clippy/pull/10403)
393
394 ### Documentation Improvements
395
396 * All configurations are now documented in the Clippy Book
397 [#10199](https://github.com/rust-lang/rust-clippy/pull/10199)
398
399 ## Rust 1.68
400
401 Released 2023-03-09
402
403 [View all 76 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-12-01T20%3A40%3A04Z..2023-01-12T18%3A58%3A59Z+base%3Amaster)
404
405 ### New Lints
406
407 * [`permissions_set_readonly_false`]
408 [#10063](https://github.com/rust-lang/rust-clippy/pull/10063)
409 * [`almost_complete_range`]
410 [#10043](https://github.com/rust-lang/rust-clippy/pull/10043)
411 * [`size_of_ref`]
412 [#10098](https://github.com/rust-lang/rust-clippy/pull/10098)
413 * [`semicolon_outside_block`]
414 [#9826](https://github.com/rust-lang/rust-clippy/pull/9826)
415 * [`semicolon_inside_block`]
416 [#9826](https://github.com/rust-lang/rust-clippy/pull/9826)
417 * [`transmute_null_to_fn`]
418 [#10099](https://github.com/rust-lang/rust-clippy/pull/10099)
419 * [`fn_null_check`]
420 [#10099](https://github.com/rust-lang/rust-clippy/pull/10099)
421
422 ### Moves and Deprecations
423
424 * Moved [`manual_clamp`] to `nursery` (Now allow-by-default)
425 [#10101](https://github.com/rust-lang/rust-clippy/pull/10101)
426 * Moved [`mutex_atomic`] to `restriction`
427 [#10115](https://github.com/rust-lang/rust-clippy/pull/10115)
428 * Renamed `derive_hash_xor_eq` to [`derived_hash_with_manual_eq`]
429 [#10184](https://github.com/rust-lang/rust-clippy/pull/10184)
430
431 ### Enhancements
432
433 * [`collapsible_str_replace`]: Now takes MSRV into consideration. The minimal version is 1.58
434 [#10047](https://github.com/rust-lang/rust-clippy/pull/10047)
435 * [`unused_self`]: No longer lints, if the method body contains a `todo!()` call
436 [#10166](https://github.com/rust-lang/rust-clippy/pull/10166)
437 * [`derivable_impls`]: Now suggests deriving `Default` for enums with default unit variants
438 [#10161](https://github.com/rust-lang/rust-clippy/pull/10161)
439 * [`arithmetic_side_effects`]: Added two new config values
440 `arithmetic-side-effects-allowed-binary` and `arithmetic-side-effects-allowed-unary`
441 to allow operation on user types
442 [#9840](https://github.com/rust-lang/rust-clippy/pull/9840)
443 * [`large_const_arrays`], [`large_stack_arrays`]: avoid integer overflow when calculating
444 total array size
445 [#10103](https://github.com/rust-lang/rust-clippy/pull/10103)
446 * [`indexing_slicing`]: add new config `suppress-restriction-lint-in-const` to enable
447 restriction lints, even if the suggestion might not be applicable
448 [#9920](https://github.com/rust-lang/rust-clippy/pull/9920)
449 * [`needless_borrow`], [`redundant_clone`]: Now track references better and detect more cases
450 [#9701](https://github.com/rust-lang/rust-clippy/pull/9701)
451 * [`derived_hash_with_manual_eq`]: Now allows `#[derive(PartialEq)]` with custom `Hash`
452 implementations
453 [#10184](https://github.com/rust-lang/rust-clippy/pull/10184)
454 * [`manual_is_ascii_check`]: Now detects ranges with `.contains()` calls
455 [#10053](https://github.com/rust-lang/rust-clippy/pull/10053)
456 * [`transmuting_null`]: Now detects `const` pointers to all types
457 [#10099](https://github.com/rust-lang/rust-clippy/pull/10099)
458 * [`needless_return`]: Now detects more cases for returns of owned values
459 [#10110](https://github.com/rust-lang/rust-clippy/pull/10110)
460
461 ### False Positive Fixes
462
463 * [`field_reassign_with_default`]: No longer lints cases, where values are initializes from
464 closures capturing struct values
465 [#10143](https://github.com/rust-lang/rust-clippy/pull/10143)
466 * [`seek_to_start_instead_of_rewind`]: No longer lints, if the return of `seek` is used.
467 [#10096](https://github.com/rust-lang/rust-clippy/pull/10096)
468 * [`manual_filter`]: Now ignores if expressions where the else branch has side effects or
469 doesn't return `None`
470 [#10091](https://github.com/rust-lang/rust-clippy/pull/10091)
471 * [`implicit_clone`]: No longer lints if the type doesn't implement clone
472 [#10022](https://github.com/rust-lang/rust-clippy/pull/10022)
473 * [`match_wildcard_for_single_variants`]: No longer lints on wildcards with a guard
474 [#10056](https://github.com/rust-lang/rust-clippy/pull/10056)
475 * [`drop_ref`]: No longer lints idiomatic expression in `match` arms
476 [#10142](https://github.com/rust-lang/rust-clippy/pull/10142)
477 * [`arithmetic_side_effects`]: No longer lints on corner cases with negative number literals
478 [#9867](https://github.com/rust-lang/rust-clippy/pull/9867)
479 * [`string_lit_as_bytes`]: No longer lints in scrutinies of `match` statements
480 [#10012](https://github.com/rust-lang/rust-clippy/pull/10012)
481 * [`manual_assert`]: No longer lints in `else if` statements
482 [#10013](https://github.com/rust-lang/rust-clippy/pull/10013)
483 * [`needless_return`]: don't lint when using `do yeet`
484 [#10109](https://github.com/rust-lang/rust-clippy/pull/10109)
485 * All lints: No longer lint in enum discriminant values when the suggestion won't work in a
486 const context
487 [#10008](https://github.com/rust-lang/rust-clippy/pull/10008)
488 * [`single_element_loop`]: No longer lints, if the loop contains a `break` or `continue`
489 [#10162](https://github.com/rust-lang/rust-clippy/pull/10162)
490 * [`uninlined_format_args`]: No longer suggests inlining arguments in `assert!` and
491 `debug_assert!` macros before 2021 edition
492 [#10055](https://github.com/rust-lang/rust-clippy/pull/10055)
493 * [`explicit_counter_loop`]: No longer ignores counter changes after `continue` expressions
494 [#10094](https://github.com/rust-lang/rust-clippy/pull/10094)
495 * [`from_over_into`]: No longer lints on opaque types
496 [#9982](https://github.com/rust-lang/rust-clippy/pull/9982)
497 * [`expl_impl_clone_on_copy`]: No longer lints on `#[repr(packed)]` structs with generic
498 parameters
499 [#10189](https://github.com/rust-lang/rust-clippy/pull/10189)
500
501 ### Suggestion Fixes/Improvements
502
503 * [`zero_ptr`]: Now suggests `core::` paths for `no_std` crates
504 [#10023](https://github.com/rust-lang/rust-clippy/pull/10023)
505 * [`useless_conversion`]: Now suggests removing calls to `into_iter()` on an expression
506 implementing `Iterator`
507 [#10020](https://github.com/rust-lang/rust-clippy/pull/10020)
508 * [`box_default`]: The suggestion now uses short paths
509 [#10153](https://github.com/rust-lang/rust-clippy/pull/10153)
510 * [`default_trait_access`], [`clone_on_copy`]: The suggestion now uses short paths
511 [#10160](https://github.com/rust-lang/rust-clippy/pull/10160)
512 * [`comparison_to_empty`]: The suggestion now removes unused deref operations
513 [#9962](https://github.com/rust-lang/rust-clippy/pull/9962)
514 * [`manual_let_else`]: Suggestions for or-patterns now include required brackets.
515 [#9966](https://github.com/rust-lang/rust-clippy/pull/9966)
516 * [`match_single_binding`]: suggestion no longer introduces unneeded semicolons
517 [#10060](https://github.com/rust-lang/rust-clippy/pull/10060)
518 * [`case_sensitive_file_extension_comparisons`]: Now displays a suggestion with `Path`
519 [#10107](https://github.com/rust-lang/rust-clippy/pull/10107)
520 * [`empty_structs_with_brackets`]: The suggestion is no longer machine applicable, to avoid
521 errors when accessing struct fields
522 [#10141](https://github.com/rust-lang/rust-clippy/pull/10141)
523 * [`identity_op`]: Removes borrows in the suggestion when needed
524 [#10004](https://github.com/rust-lang/rust-clippy/pull/10004)
525 * [`suboptimal_flops`]: The suggestion now includes parentheses when required
526 [#10113](https://github.com/rust-lang/rust-clippy/pull/10113)
527 * [`iter_kv_map`]: Now handles `mut` and reference annotations in the suggestion
528 [#10159](https://github.com/rust-lang/rust-clippy/pull/10159)
529 * [`redundant_static_lifetimes`]: The suggestion no longer removes `mut` from references
530 [#10006](https://github.com/rust-lang/rust-clippy/pull/10006)
531
532 ### ICE Fixes
533
534 * [`new_ret_no_self`]: Now avoids a stack overflow for `impl Trait` types
535 [#10086](https://github.com/rust-lang/rust-clippy/pull/10086)
536 * [`unnecessary_to_owned`]: Now handles compiler generated notes better
537 [#10027](https://github.com/rust-lang/rust-clippy/pull/10027)
538
539 ### Others
540
541 * `SYSROOT` and `--sysroot` can now be set at the same time
542 [#10149](https://github.com/rust-lang/rust-clippy/pull/10149)
543 * Fix error when providing an `array-size-threshold` in `clippy.toml`
544 [#10423](https://github.com/rust-lang/rust-clippy/pull/10423)
545
546 ## Rust 1.67
547
548 Released 2023-01-26
549
550 [View all 104 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-10-23T13%3A35%3A19Z..2022-12-01T13%3A34%3A39Z+base%3Amaster)
551
552 ### New Lints
553
554 * [`seek_from_current`]
555 [#9681](https://github.com/rust-lang/rust-clippy/pull/9681)
556 * [`from_raw_with_void_ptr`]
557 [#9690](https://github.com/rust-lang/rust-clippy/pull/9690)
558 * [`misnamed_getters`]
559 [#9770](https://github.com/rust-lang/rust-clippy/pull/9770)
560 * [`seek_to_start_instead_of_rewind`]
561 [#9667](https://github.com/rust-lang/rust-clippy/pull/9667)
562 * [`suspicious_xor_used_as_pow`]
563 [#9506](https://github.com/rust-lang/rust-clippy/pull/9506)
564 * [`unnecessary_safety_doc`]
565 [#9822](https://github.com/rust-lang/rust-clippy/pull/9822)
566 * [`unchecked_duration_subtraction`]
567 [#9570](https://github.com/rust-lang/rust-clippy/pull/9570)
568 * [`manual_is_ascii_check`]
569 [#9765](https://github.com/rust-lang/rust-clippy/pull/9765)
570 * [`unnecessary_safety_comment`]
571 [#9851](https://github.com/rust-lang/rust-clippy/pull/9851)
572 * [`let_underscore_future`]
573 [#9760](https://github.com/rust-lang/rust-clippy/pull/9760)
574 * [`manual_let_else`]
575 [#8437](https://github.com/rust-lang/rust-clippy/pull/8437)
576
577 ### Moves and Deprecations
578
579 * Moved [`needless_collect`] to `nursery` (Now allow-by-default)
580 [#9705](https://github.com/rust-lang/rust-clippy/pull/9705)
581 * Moved [`or_fun_call`] to `nursery` (Now allow-by-default)
582 [#9829](https://github.com/rust-lang/rust-clippy/pull/9829)
583 * Uplifted [`let_underscore_lock`] into rustc
584 [#9697](https://github.com/rust-lang/rust-clippy/pull/9697)
585 * Uplifted [`let_underscore_drop`] into rustc
586 [#9697](https://github.com/rust-lang/rust-clippy/pull/9697)
587 * Moved [`bool_to_int_with_if`] to `pedantic` (Now allow-by-default)
588 [#9830](https://github.com/rust-lang/rust-clippy/pull/9830)
589 * Move `index_refutable_slice` to `pedantic` (Now warn-by-default)
590 [#9975](https://github.com/rust-lang/rust-clippy/pull/9975)
591 * Moved [`manual_clamp`] to `nursery` (Now allow-by-default)
592 [#10101](https://github.com/rust-lang/rust-clippy/pull/10101)
593
594 ### Enhancements
595
596 * The scope of `#![clippy::msrv]` is now tracked correctly
597 [#9924](https://github.com/rust-lang/rust-clippy/pull/9924)
598 * `#[clippy::msrv]` can now be used as an outer attribute
599 [#9860](https://github.com/rust-lang/rust-clippy/pull/9860)
600 * Clippy will now avoid Cargo's cache, if `Cargo.toml` or `clippy.toml` have changed
601 [#9707](https://github.com/rust-lang/rust-clippy/pull/9707)
602 * [`uninlined_format_args`]: Added a new config `allow-mixed-uninlined-format-args` to allow the
603 lint, if only some arguments can be inlined
604 [#9865](https://github.com/rust-lang/rust-clippy/pull/9865)
605 * [`needless_lifetimes`]: Now provides suggests for individual lifetimes
606 [#9743](https://github.com/rust-lang/rust-clippy/pull/9743)
607 * [`needless_collect`]: Now detects needless `is_empty` and `contains` calls
608 [#8744](https://github.com/rust-lang/rust-clippy/pull/8744)
609 * [`blanket_clippy_restriction_lints`]: Now lints, if `clippy::restriction` is enabled via the
610 command line arguments
611 [#9755](https://github.com/rust-lang/rust-clippy/pull/9755)
612 * [`mutable_key_type`]: Now has the `ignore-interior-mutability` configuration, to add types which
613 should be ignored by the lint
614 [#9692](https://github.com/rust-lang/rust-clippy/pull/9692)
615 * [`uninlined_format_args`]: Now works for multiline `format!` expressions
616 [#9945](https://github.com/rust-lang/rust-clippy/pull/9945)
617 * [`cognitive_complexity`]: Now works for async functions
618 [#9828](https://github.com/rust-lang/rust-clippy/pull/9828)
619 [#9836](https://github.com/rust-lang/rust-clippy/pull/9836)
620 * [`vec_box`]: Now avoids an off-by-one error when using the `vec-box-size-threshold` configuration
621 [#9848](https://github.com/rust-lang/rust-clippy/pull/9848)
622 * [`never_loop`]: Now correctly handles breaks in nested labeled blocks
623 [#9858](https://github.com/rust-lang/rust-clippy/pull/9858)
624 [#9837](https://github.com/rust-lang/rust-clippy/pull/9837)
625 * [`disallowed_methods`], [`disallowed_types`], [`disallowed_macros`]: Now correctly resolve
626 paths, if a crate is used multiple times with different versions
627 [#9800](https://github.com/rust-lang/rust-clippy/pull/9800)
628 * [`disallowed_methods`]: Can now be used for local methods
629 [#9800](https://github.com/rust-lang/rust-clippy/pull/9800)
630 * [`print_stdout`], [`print_stderr`]: Can now be enabled in test with the `allow-print-in-tests`
631 config value
632 [#9797](https://github.com/rust-lang/rust-clippy/pull/9797)
633 * [`from_raw_with_void_ptr`]: Now works for `Rc`, `Arc`, `alloc::rc::Weak` and
634 `alloc::sync::Weak` types.
635 [#9700](https://github.com/rust-lang/rust-clippy/pull/9700)
636 * [`needless_borrowed_reference`]: Now works for struct and tuple patterns with wildcards
637 [#9855](https://github.com/rust-lang/rust-clippy/pull/9855)
638 * [`or_fun_call`]: Now supports `map_or` methods
639 [#9689](https://github.com/rust-lang/rust-clippy/pull/9689)
640 * [`unwrap_used`], [`expect_used`]: No longer lints in test code
641 [#9686](https://github.com/rust-lang/rust-clippy/pull/9686)
642 * [`fn_params_excessive_bools`]: Is now emitted with the lint level at the linted function
643 [#9698](https://github.com/rust-lang/rust-clippy/pull/9698)
644
645 ### False Positive Fixes
646
647 * [`new_ret_no_self`]: No longer lints when `impl Trait<Self>` is returned
648 [#9733](https://github.com/rust-lang/rust-clippy/pull/9733)
649 * [`unnecessary_lazy_evaluations`]: No longer lints, if the type has a significant drop
650 [#9750](https://github.com/rust-lang/rust-clippy/pull/9750)
651 * [`option_if_let_else`]: No longer lints, if any arm has guard
652 [#9747](https://github.com/rust-lang/rust-clippy/pull/9747)
653 * [`explicit_auto_deref`]: No longer lints, if the target type is a projection with generic
654 arguments
655 [#9813](https://github.com/rust-lang/rust-clippy/pull/9813)
656 * [`unnecessary_to_owned`]: No longer lints, if the suggestion effects types
657 [#9796](https://github.com/rust-lang/rust-clippy/pull/9796)
658 * [`needless_borrow`]: No longer lints, if the suggestion is affected by `Deref`
659 [#9674](https://github.com/rust-lang/rust-clippy/pull/9674)
660 * [`unused_unit`]: No longer lints, if lifetimes are bound to the return type
661 [#9849](https://github.com/rust-lang/rust-clippy/pull/9849)
662 * [`mut_mut`]: No longer lints cases with unsized mutable references
663 [#9835](https://github.com/rust-lang/rust-clippy/pull/9835)
664 * [`bool_to_int_with_if`]: No longer lints in const context
665 [#9738](https://github.com/rust-lang/rust-clippy/pull/9738)
666 * [`use_self`]: No longer lints in macros
667 [#9704](https://github.com/rust-lang/rust-clippy/pull/9704)
668 * [`unnecessary_operation`]: No longer lints, if multiple macros are involved
669 [#9981](https://github.com/rust-lang/rust-clippy/pull/9981)
670 * [`allow_attributes_without_reason`]: No longer lints inside external macros
671 [#9630](https://github.com/rust-lang/rust-clippy/pull/9630)
672 * [`question_mark`]: No longer lints for `if let Err()` with an `else` branch
673 [#9722](https://github.com/rust-lang/rust-clippy/pull/9722)
674 * [`unnecessary_cast`]: No longer lints if the identifier and cast originate from different macros
675 [#9980](https://github.com/rust-lang/rust-clippy/pull/9980)
676 * [`arithmetic_side_effects`]: Now detects operations with associated constants
677 [#9592](https://github.com/rust-lang/rust-clippy/pull/9592)
678 * [`explicit_auto_deref`]: No longer lints, if the initial value is not a reference or reference
679 receiver
680 [#9997](https://github.com/rust-lang/rust-clippy/pull/9997)
681 * [`module_name_repetitions`], [`single_component_path_imports`]: Now handle `#[allow]`
682 attributes correctly
683 [#9879](https://github.com/rust-lang/rust-clippy/pull/9879)
684 * [`bool_to_int_with_if`]: No longer lints `if let` statements
685 [#9714](https://github.com/rust-lang/rust-clippy/pull/9714)
686 * [`needless_borrow`]: No longer lints, `if`-`else`-statements that require the borrow
687 [#9791](https://github.com/rust-lang/rust-clippy/pull/9791)
688 * [`needless_borrow`]: No longer lints borrows, if moves were illegal
689 [#9711](https://github.com/rust-lang/rust-clippy/pull/9711)
690 * [`manual_swap`]: No longer lints in const context
691 [#9871](https://github.com/rust-lang/rust-clippy/pull/9871)
692
693 ### Suggestion Fixes/Improvements
694
695 * [`missing_safety_doc`], [`missing_errors_doc`], [`missing_panics_doc`]: No longer show the
696 entire item in the lint emission.
697 [#9772](https://github.com/rust-lang/rust-clippy/pull/9772)
698 * [`needless_lifetimes`]: Only suggests `'_` when it's applicable
699 [#9743](https://github.com/rust-lang/rust-clippy/pull/9743)
700 * [`use_self`]: Now suggests full paths correctly
701 [#9726](https://github.com/rust-lang/rust-clippy/pull/9726)
702 * [`redundant_closure_call`]: Now correctly deals with macros during suggestion creation
703 [#9987](https://github.com/rust-lang/rust-clippy/pull/9987)
704 * [`unnecessary_cast`]: Suggestions now correctly deal with references
705 [#9996](https://github.com/rust-lang/rust-clippy/pull/9996)
706 * [`unnecessary_join`]: Suggestions now correctly use [turbofish] operators
707 [#9779](https://github.com/rust-lang/rust-clippy/pull/9779)
708 * [`equatable_if_let`]: Can now suggest `matches!` replacements
709 [#9368](https://github.com/rust-lang/rust-clippy/pull/9368)
710 * [`string_extend_chars`]: Suggestions now correctly work for `str` slices
711 [#9741](https://github.com/rust-lang/rust-clippy/pull/9741)
712 * [`redundant_closure_for_method_calls`]: Suggestions now include angle brackets and generic
713 arguments if needed
714 [#9745](https://github.com/rust-lang/rust-clippy/pull/9745)
715 * [`manual_let_else`]: Suggestions no longer expand macro calls
716 [#9943](https://github.com/rust-lang/rust-clippy/pull/9943)
717 * [`infallible_destructuring_match`]: Suggestions now preserve references
718 [#9850](https://github.com/rust-lang/rust-clippy/pull/9850)
719 * [`result_large_err`]: The error now shows the largest enum variant
720 [#9662](https://github.com/rust-lang/rust-clippy/pull/9662)
721 * [`needless_return`]: Suggestions are now formatted better
722 [#9967](https://github.com/rust-lang/rust-clippy/pull/9967)
723 * [`unused_rounding`]: The suggestion now preserves the original float literal notation
724 [#9870](https://github.com/rust-lang/rust-clippy/pull/9870)
725
726 [turbofish]: https://turbo.fish/::%3CClippy%3E
727
728 ### ICE Fixes
729
730 * [`result_large_err`]: Fixed ICE for empty enums
731 [#10007](https://github.com/rust-lang/rust-clippy/pull/10007)
732 * [`redundant_allocation`]: Fixed ICE for types with bounded variables
733 [#9773](https://github.com/rust-lang/rust-clippy/pull/9773)
734 * [`unused_rounding`]: Fixed ICE, if `_` was used as a separator
735 [#10001](https://github.com/rust-lang/rust-clippy/pull/10001)
736
737 ## Rust 1.66
738
739 Released 2022-12-15
740
741 [View all 116 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-09-09T17%3A32%3A39Z..2022-10-23T11%3A27%3A24Z+base%3Amaster)
742
743 ### New Lints
744
745 * [`manual_clamp`]
746 [#9484](https://github.com/rust-lang/rust-clippy/pull/9484)
747 * [`missing_trait_methods`]
748 [#9670](https://github.com/rust-lang/rust-clippy/pull/9670)
749 * [`unused_format_specs`]
750 [#9637](https://github.com/rust-lang/rust-clippy/pull/9637)
751 * [`iter_kv_map`]
752 [#9409](https://github.com/rust-lang/rust-clippy/pull/9409)
753 * [`manual_filter`]
754 [#9451](https://github.com/rust-lang/rust-clippy/pull/9451)
755 * [`box_default`]
756 [#9511](https://github.com/rust-lang/rust-clippy/pull/9511)
757 * [`implicit_saturating_add`]
758 [#9549](https://github.com/rust-lang/rust-clippy/pull/9549)
759 * [`as_ptr_cast_mut`]
760 [#9572](https://github.com/rust-lang/rust-clippy/pull/9572)
761 * [`disallowed_macros`]
762 [#9495](https://github.com/rust-lang/rust-clippy/pull/9495)
763 * [`partial_pub_fields`]
764 [#9658](https://github.com/rust-lang/rust-clippy/pull/9658)
765 * [`uninlined_format_args`]
766 [#9233](https://github.com/rust-lang/rust-clippy/pull/9233)
767 * [`cast_nan_to_int`]
768 [#9617](https://github.com/rust-lang/rust-clippy/pull/9617)
769
770 ### Moves and Deprecations
771
772 * `positional_named_format_parameters` was uplifted to rustc under the new name
773 `named_arguments_used_positionally`
774 [#8518](https://github.com/rust-lang/rust-clippy/pull/8518)
775 * Moved [`implicit_saturating_sub`] to `style` (Now warn-by-default)
776 [#9584](https://github.com/rust-lang/rust-clippy/pull/9584)
777 * Moved `derive_partial_eq_without_eq` to `nursery` (now allow-by-default)
778 [#9536](https://github.com/rust-lang/rust-clippy/pull/9536)
779
780 ### Enhancements
781
782 * [`nonstandard_macro_braces`]: Now includes `matches!()` in the default lint config
783 [#9471](https://github.com/rust-lang/rust-clippy/pull/9471)
784 * [`suboptimal_flops`]: Now supports multiplication and subtraction operations
785 [#9581](https://github.com/rust-lang/rust-clippy/pull/9581)
786 * [`arithmetic_side_effects`]: Now detects cases with literals behind references
787 [#9587](https://github.com/rust-lang/rust-clippy/pull/9587)
788 * [`upper_case_acronyms`]: Now also checks enum names
789 [#9580](https://github.com/rust-lang/rust-clippy/pull/9580)
790 * [`needless_borrowed_reference`]: Now lints nested patterns
791 [#9573](https://github.com/rust-lang/rust-clippy/pull/9573)
792 * [`unnecessary_cast`]: Now works for non-trivial non-literal expressions
793 [#9576](https://github.com/rust-lang/rust-clippy/pull/9576)
794 * [`arithmetic_side_effects`]: Now detects operations with custom types
795 [#9559](https://github.com/rust-lang/rust-clippy/pull/9559)
796 * [`disallowed_methods`], [`disallowed_types`]: Not correctly lints types, functions and macros
797 with the same path
798 [#9495](https://github.com/rust-lang/rust-clippy/pull/9495)
799 * [`self_named_module_files`], [`mod_module_files`]: Now take remapped path prefixes into account
800 [#9475](https://github.com/rust-lang/rust-clippy/pull/9475)
801 * [`bool_to_int_with_if`]: Now detects the inverse if case
802 [#9476](https://github.com/rust-lang/rust-clippy/pull/9476)
803
804 ### False Positive Fixes
805
806 * [`arithmetic_side_effects`]: Now allows operations that can't overflow
807 [#9474](https://github.com/rust-lang/rust-clippy/pull/9474)
808 * [`unnecessary_lazy_evaluations`]: No longer lints in external macros
809 [#9486](https://github.com/rust-lang/rust-clippy/pull/9486)
810 * [`needless_borrow`], [`explicit_auto_deref`]: No longer lint on unions that require the reference
811 [#9490](https://github.com/rust-lang/rust-clippy/pull/9490)
812 * [`almost_complete_letter_range`]: No longer lints in external macros
813 [#9467](https://github.com/rust-lang/rust-clippy/pull/9467)
814 * [`drop_copy`]: No longer lints on idiomatic cases in match arms
815 [#9491](https://github.com/rust-lang/rust-clippy/pull/9491)
816 * [`question_mark`]: No longer lints in const context
817 [#9487](https://github.com/rust-lang/rust-clippy/pull/9487)
818 * [`collapsible_if`]: Suggestion now work in macros
819 [#9410](https://github.com/rust-lang/rust-clippy/pull/9410)
820 * [`std_instead_of_core`]: No longer triggers on unstable modules
821 [#9545](https://github.com/rust-lang/rust-clippy/pull/9545)
822 * [`unused_peekable`]: No longer lints, if the peak is done in a closure or function
823 [#9465](https://github.com/rust-lang/rust-clippy/pull/9465)
824 * [`useless_attribute`]: No longer lints on `#[allow]` attributes for [`unsafe_removed_from_name`]
825 [#9593](https://github.com/rust-lang/rust-clippy/pull/9593)
826 * [`unnecessary_lazy_evaluations`]: No longer suggest switching to early evaluation when type has
827 custom `Drop` implementation
828 [#9551](https://github.com/rust-lang/rust-clippy/pull/9551)
829 * [`unnecessary_cast`]: No longer lints on negative hexadecimal literals when cast as floats
830 [#9609](https://github.com/rust-lang/rust-clippy/pull/9609)
831 * [`use_self`]: No longer lints in proc macros
832 [#9454](https://github.com/rust-lang/rust-clippy/pull/9454)
833 * [`never_loop`]: Now takes `let ... else` statements into consideration.
834 [#9496](https://github.com/rust-lang/rust-clippy/pull/9496)
835 * [`default_numeric_fallback`]: Now ignores constants
836 [#9636](https://github.com/rust-lang/rust-clippy/pull/9636)
837 * [`uninit_vec`]: No longer lints `Vec::set_len(0)`
838 [#9519](https://github.com/rust-lang/rust-clippy/pull/9519)
839 * [`arithmetic_side_effects`]: Now ignores references to integer types
840 [#9507](https://github.com/rust-lang/rust-clippy/pull/9507)
841 * [`large_stack_arrays`]: No longer lints inside static items
842 [#9466](https://github.com/rust-lang/rust-clippy/pull/9466)
843 * [`ref_option_ref`]: No longer lints if the inner reference is mutable
844 [#9684](https://github.com/rust-lang/rust-clippy/pull/9684)
845 * [`ptr_arg`]: No longer lints if the argument is used as an incomplete trait object
846 [#9645](https://github.com/rust-lang/rust-clippy/pull/9645)
847 * [`should_implement_trait`]: Now also works for `default` methods
848 [#9546](https://github.com/rust-lang/rust-clippy/pull/9546)
849
850 ### Suggestion Fixes/Improvements
851
852 * [`derivable_impls`]: The suggestion is now machine applicable
853 [#9429](https://github.com/rust-lang/rust-clippy/pull/9429)
854 * [`match_single_binding`]: The suggestion now handles scrutinies with side effects better
855 [#9601](https://github.com/rust-lang/rust-clippy/pull/9601)
856 * [`zero_prefixed_literal`]: Only suggests using octal numbers, if this is possible
857 [#9652](https://github.com/rust-lang/rust-clippy/pull/9652)
858 * [`rc_buffer`]: The suggestion is no longer machine applicable to avoid semantic changes
859 [#9633](https://github.com/rust-lang/rust-clippy/pull/9633)
860 * [`print_literal`], [`write_literal`], [`uninlined_format_args`]: The suggestion now ignores
861 comments after the macro call.
862 [#9586](https://github.com/rust-lang/rust-clippy/pull/9586)
863 * [`expect_fun_call`]:Improved the suggestion for `format!` calls with captured variables
864 [#9586](https://github.com/rust-lang/rust-clippy/pull/9586)
865 * [`nonstandard_macro_braces`]: The suggestion is now machine applicable and will no longer
866 replace brackets inside the macro argument.
867 [#9499](https://github.com/rust-lang/rust-clippy/pull/9499)
868 * [`from_over_into`]: The suggestion is now a machine applicable and contains explanations
869 [#9649](https://github.com/rust-lang/rust-clippy/pull/9649)
870 * [`needless_return`]: The automatic suggestion now removes all required semicolons
871 [#9497](https://github.com/rust-lang/rust-clippy/pull/9497)
872 * [`to_string_in_format_args`]: The suggestion now keeps parenthesis around values
873 [#9590](https://github.com/rust-lang/rust-clippy/pull/9590)
874 * [`manual_assert`]: The suggestion now preserves comments
875 [#9479](https://github.com/rust-lang/rust-clippy/pull/9479)
876 * [`redundant_allocation`]: The suggestion applicability is now marked `MaybeIncorrect` to
877 avoid semantic changes
878 [#9634](https://github.com/rust-lang/rust-clippy/pull/9634)
879 * [`assertions_on_result_states`]: The suggestion has been corrected, for cases where the
880 `assert!` is not in a statement.
881 [#9453](https://github.com/rust-lang/rust-clippy/pull/9453)
882 * [`nonminimal_bool`]: The suggestion no longer expands macros
883 [#9457](https://github.com/rust-lang/rust-clippy/pull/9457)
884 * [`collapsible_match`]: Now specifies field names, when a struct is destructed
885 [#9685](https://github.com/rust-lang/rust-clippy/pull/9685)
886 * [`unnecessary_cast`]: The suggestion now adds parenthesis for negative numbers
887 [#9577](https://github.com/rust-lang/rust-clippy/pull/9577)
888 * [`redundant_closure`]: The suggestion now works for `impl FnMut` arguments
889 [#9556](https://github.com/rust-lang/rust-clippy/pull/9556)
890
891 ### ICE Fixes
892
893 * [`unnecessary_to_owned`]: Avoid ICEs in favor of false negatives if information is missing
894 [#9505](https://github.com/rust-lang/rust-clippy/pull/9505)
895 [#10027](https://github.com/rust-lang/rust-clippy/pull/10027)
896 * [`manual_range_contains`]: No longer ICEs on values behind references
897 [#9627](https://github.com/rust-lang/rust-clippy/pull/9627)
898 * [`needless_pass_by_value`]: No longer ICEs on unsized `dyn Fn` arguments
899 [#9531](https://github.com/rust-lang/rust-clippy/pull/9531)
900 * `*_interior_mutable_const` lints: no longer ICE on const unions containing `!Freeze` types
901 [#9539](https://github.com/rust-lang/rust-clippy/pull/9539)
902
903 ### Others
904
905 * Released `rustc_tools_util` for version information on `Crates.io`. (Further adjustments will
906 not be published as part of this changelog)
907
908 ## Rust 1.65
909
910 Released 2022-11-03
911
912 [View all 86 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-07-29T01%3A09%3A31Z..2022-09-09T00%3A01%3A54Z+base%3Amaster)
913
914 ### Important Changes
915
916 * Clippy now has an `--explain <LINT>` command to show the lint description in the console
917 [#8952](https://github.com/rust-lang/rust-clippy/pull/8952)
918
919 ### New Lints
920
921 * [`unused_peekable`]
922 [#9258](https://github.com/rust-lang/rust-clippy/pull/9258)
923 * [`collapsible_str_replace`]
924 [#9269](https://github.com/rust-lang/rust-clippy/pull/9269)
925 * [`manual_string_new`]
926 [#9295](https://github.com/rust-lang/rust-clippy/pull/9295)
927 * [`iter_on_empty_collections`]
928 [#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
929 * [`iter_on_single_items`]
930 [#9187](https://github.com/rust-lang/rust-clippy/pull/9187)
931 * [`bool_to_int_with_if`]
932 [#9412](https://github.com/rust-lang/rust-clippy/pull/9412)
933 * [`multi_assignments`]
934 [#9379](https://github.com/rust-lang/rust-clippy/pull/9379)
935 * [`result_large_err`]
936 [#9373](https://github.com/rust-lang/rust-clippy/pull/9373)
937 * [`partialeq_to_none`]
938 [#9288](https://github.com/rust-lang/rust-clippy/pull/9288)
939 * [`suspicious_to_owned`]
940 [#8984](https://github.com/rust-lang/rust-clippy/pull/8984)
941 * [`cast_slice_from_raw_parts`]
942 [#9247](https://github.com/rust-lang/rust-clippy/pull/9247)
943 * [`manual_instant_elapsed`]
944 [#9264](https://github.com/rust-lang/rust-clippy/pull/9264)
945
946 ### Moves and Deprecations
947
948 * Moved [`significant_drop_in_scrutinee`] to `nursery` (now allow-by-default)
949 [#9302](https://github.com/rust-lang/rust-clippy/pull/9302)
950 * Rename `logic_bug` to [`overly_complex_bool_expr`]
951 [#9306](https://github.com/rust-lang/rust-clippy/pull/9306)
952 * Rename `arithmetic` to [`arithmetic_side_effects`]
953 [#9443](https://github.com/rust-lang/rust-clippy/pull/9443)
954 * Moved [`only_used_in_recursion`] to complexity (now warn-by-default)
955 [#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
956 * Moved [`assertions_on_result_states`] to restriction (now allow-by-default)
957 [#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
958 * Renamed `blacklisted_name` to [`disallowed_names`]
959 [#8974](https://github.com/rust-lang/rust-clippy/pull/8974)
960
961 ### Enhancements
962
963 * [`option_if_let_else`]: Now also checks for match expressions
964 [#8696](https://github.com/rust-lang/rust-clippy/pull/8696)
965 * [`explicit_auto_deref`]: Now lints on implicit returns in closures
966 [#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
967 * [`needless_borrow`]: Now considers trait implementations
968 [#9136](https://github.com/rust-lang/rust-clippy/pull/9136)
969 * [`suboptimal_flops`], [`imprecise_flops`]: Now lint on constant expressions
970 [#9404](https://github.com/rust-lang/rust-clippy/pull/9404)
971 * [`if_let_mutex`]: Now detects mutex behind references and warns about deadlocks
972 [#9318](https://github.com/rust-lang/rust-clippy/pull/9318)
973
974 ### False Positive Fixes
975
976 * [`unit_arg`] [`default_trait_access`] [`missing_docs_in_private_items`]: No longer
977 trigger in code generated from proc-macros
978 [#8694](https://github.com/rust-lang/rust-clippy/pull/8694)
979 * [`unwrap_used`]: Now lints uses of `unwrap_err`
980 [#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
981 * [`expect_used`]: Now lints uses of `expect_err`
982 [#9338](https://github.com/rust-lang/rust-clippy/pull/9338)
983 * [`transmute_undefined_repr`]: Now longer lints if the first field is compatible
984 with the other type
985 [#9287](https://github.com/rust-lang/rust-clippy/pull/9287)
986 * [`unnecessary_to_owned`]: No longer lints, if type change cased errors in
987 the caller function
988 [#9424](https://github.com/rust-lang/rust-clippy/pull/9424)
989 * [`match_like_matches_macro`]: No longer lints, if there are comments inside the
990 match expression
991 [#9276](https://github.com/rust-lang/rust-clippy/pull/9276)
992 * [`partialeq_to_none`]: No longer trigger in code generated from macros
993 [#9389](https://github.com/rust-lang/rust-clippy/pull/9389)
994 * [`arithmetic_side_effects`]: No longer lints expressions that only use literals
995 [#9365](https://github.com/rust-lang/rust-clippy/pull/9365)
996 * [`explicit_auto_deref`]: Now ignores references on block expressions when the type
997 is `Sized`, on `dyn Trait` returns and when the suggestion is non-trivial
998 [#9126](https://github.com/rust-lang/rust-clippy/pull/9126)
999 * [`trait_duplication_in_bounds`]: Now better tracks bounds to avoid false positives
1000 [#9167](https://github.com/rust-lang/rust-clippy/pull/9167)
1001 * [`format_in_format_args`]: Now suggests cases where the result is formatted again
1002 [#9349](https://github.com/rust-lang/rust-clippy/pull/9349)
1003 * [`only_used_in_recursion`]: No longer lints on function without recursions and
1004 takes external functions into account
1005 [#8804](https://github.com/rust-lang/rust-clippy/pull/8804)
1006 * [`missing_const_for_fn`]: No longer lints in proc-macros
1007 [#9308](https://github.com/rust-lang/rust-clippy/pull/9308)
1008 * [`non_ascii_literal`]: Allow non-ascii comments in tests and make sure `#[allow]`
1009 attributes work in tests
1010 [#9327](https://github.com/rust-lang/rust-clippy/pull/9327)
1011 * [`question_mark`]: No longer lint `if let`s with subpatterns
1012 [#9348](https://github.com/rust-lang/rust-clippy/pull/9348)
1013 * [`needless_collect`]: No longer lints in loops
1014 [#8992](https://github.com/rust-lang/rust-clippy/pull/8992)
1015 * [`mut_mutex_lock`]: No longer lints if the mutex is behind an immutable reference
1016 [#9418](https://github.com/rust-lang/rust-clippy/pull/9418)
1017 * [`needless_return`]: Now ignores returns with arguments
1018 [#9381](https://github.com/rust-lang/rust-clippy/pull/9381)
1019 * [`range_plus_one`], [`range_minus_one`]: Now ignores code with macros
1020 [#9446](https://github.com/rust-lang/rust-clippy/pull/9446)
1021 * [`assertions_on_result_states`]: No longer lints on the unit type
1022 [#9273](https://github.com/rust-lang/rust-clippy/pull/9273)
1023
1024 ### Suggestion Fixes/Improvements
1025
1026 * [`unwrap_or_else_default`]: Now suggests `unwrap_or_default()` for empty strings
1027 [#9421](https://github.com/rust-lang/rust-clippy/pull/9421)
1028 * [`if_then_some_else_none`]: Now also suggests `bool::then_some`
1029 [#9289](https://github.com/rust-lang/rust-clippy/pull/9289)
1030 * [`redundant_closure_call`]: The suggestion now works for async closures
1031 [#9053](https://github.com/rust-lang/rust-clippy/pull/9053)
1032 * [`suboptimal_flops`]: Now suggests parenthesis when they are required
1033 [#9394](https://github.com/rust-lang/rust-clippy/pull/9394)
1034 * [`case_sensitive_file_extension_comparisons`]: Now suggests `map_or(..)` instead of `map(..).unwrap_or`
1035 [#9341](https://github.com/rust-lang/rust-clippy/pull/9341)
1036 * Deprecated configuration values can now be updated automatically
1037 [#9252](https://github.com/rust-lang/rust-clippy/pull/9252)
1038 * [`or_fun_call`]: Now suggest `Entry::or_default` for `Entry::or_insert(Default::default())`
1039 [#9342](https://github.com/rust-lang/rust-clippy/pull/9342)
1040 * [`unwrap_used`]: Only suggests `expect` if [`expect_used`] is allowed
1041 [#9223](https://github.com/rust-lang/rust-clippy/pull/9223)
1042
1043 ### ICE Fixes
1044
1045 * Fix ICE in [`useless_format`] for literals
1046 [#9406](https://github.com/rust-lang/rust-clippy/pull/9406)
1047 * Fix infinite loop in [`vec_init_then_push`]
1048 [#9441](https://github.com/rust-lang/rust-clippy/pull/9441)
1049 * Fix ICE when reading literals with weird proc-macro spans
1050 [#9303](https://github.com/rust-lang/rust-clippy/pull/9303)
1051
1052 ## Rust 1.64
1053
1054 Released 2022-09-22
1055
1056 [View all 110 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-06-17T21%3A25%3A31Z..2022-07-28T17%3A11%3A18Z+base%3Amaster)
1057
1058 ### New Lints
1059
1060 * [`arithmetic_side_effects`]
1061 [#9130](https://github.com/rust-lang/rust-clippy/pull/9130)
1062 * [`invalid_utf8_in_unchecked`]
1063 [#9105](https://github.com/rust-lang/rust-clippy/pull/9105)
1064 * [`assertions_on_result_states`]
1065 [#9225](https://github.com/rust-lang/rust-clippy/pull/9225)
1066 * [`manual_find`]
1067 [#8649](https://github.com/rust-lang/rust-clippy/pull/8649)
1068 * [`manual_retain`]
1069 [#8972](https://github.com/rust-lang/rust-clippy/pull/8972)
1070 * [`default_instead_of_iter_empty`]
1071 [#8989](https://github.com/rust-lang/rust-clippy/pull/8989)
1072 * [`manual_rem_euclid`]
1073 [#9031](https://github.com/rust-lang/rust-clippy/pull/9031)
1074 * [`obfuscated_if_else`]
1075 [#9148](https://github.com/rust-lang/rust-clippy/pull/9148)
1076 * [`std_instead_of_core`]
1077 [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
1078 * [`std_instead_of_alloc`]
1079 [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
1080 * [`alloc_instead_of_core`]
1081 [#9103](https://github.com/rust-lang/rust-clippy/pull/9103)
1082 * [`explicit_auto_deref`]
1083 [#8355](https://github.com/rust-lang/rust-clippy/pull/8355)
1084
1085
1086 ### Moves and Deprecations
1087
1088 * Moved [`format_push_string`] to `restriction` (now allow-by-default)
1089 [#9161](https://github.com/rust-lang/rust-clippy/pull/9161)
1090
1091 ### Enhancements
1092
1093 * [`significant_drop_in_scrutinee`]: Now gives more context in the lint message
1094 [#8981](https://github.com/rust-lang/rust-clippy/pull/8981)
1095 * [`single_match`], [`single_match_else`]: Now catches more `Option` cases
1096 [#8985](https://github.com/rust-lang/rust-clippy/pull/8985)
1097 * [`unused_async`]: Now works for async methods
1098 [#9025](https://github.com/rust-lang/rust-clippy/pull/9025)
1099 * [`manual_filter_map`], [`manual_find_map`]: Now lint more expressions
1100 [#8958](https://github.com/rust-lang/rust-clippy/pull/8958)
1101 * [`question_mark`]: Now works for simple `if let` expressions
1102 [#8356](https://github.com/rust-lang/rust-clippy/pull/8356)
1103 * [`undocumented_unsafe_blocks`]: Now finds comments before the start of closures
1104 [#9117](https://github.com/rust-lang/rust-clippy/pull/9117)
1105 * [`trait_duplication_in_bounds`]: Now catches duplicate bounds in where clauses
1106 [#8703](https://github.com/rust-lang/rust-clippy/pull/8703)
1107 * [`shadow_reuse`], [`shadow_same`], [`shadow_unrelated`]: Now lint in const blocks
1108 [#9124](https://github.com/rust-lang/rust-clippy/pull/9124)
1109 * [`slow_vector_initialization`]: Now detects cases with `vec.capacity()`
1110 [#8953](https://github.com/rust-lang/rust-clippy/pull/8953)
1111 * [`unused_self`]: Now respects the `avoid-breaking-exported-api` config option
1112 [#9199](https://github.com/rust-lang/rust-clippy/pull/9199)
1113 * [`box_collection`]: Now supports all std collections
1114 [#9170](https://github.com/rust-lang/rust-clippy/pull/9170)
1115
1116 ### False Positive Fixes
1117
1118 * [`significant_drop_in_scrutinee`]: Now ignores calls to `IntoIterator::into_iter`
1119 [#9140](https://github.com/rust-lang/rust-clippy/pull/9140)
1120 * [`while_let_loop`]: Now ignores cases when the significant drop order would change
1121 [#8981](https://github.com/rust-lang/rust-clippy/pull/8981)
1122 * [`branches_sharing_code`]: Now ignores cases where moved variables have a significant
1123 drop or variable modifications can affect the conditions
1124 [#9138](https://github.com/rust-lang/rust-clippy/pull/9138)
1125 * [`let_underscore_lock`]: Now ignores bindings that aren't locked
1126 [#8990](https://github.com/rust-lang/rust-clippy/pull/8990)
1127 * [`trivially_copy_pass_by_ref`]: Now tracks lifetimes and ignores cases where unsafe
1128 pointers are used
1129 [#8639](https://github.com/rust-lang/rust-clippy/pull/8639)
1130 * [`let_unit_value`]: No longer ignores `#[allow]` attributes on the value
1131 [#9082](https://github.com/rust-lang/rust-clippy/pull/9082)
1132 * [`declare_interior_mutable_const`]: Now ignores the `thread_local!` macro
1133 [#9015](https://github.com/rust-lang/rust-clippy/pull/9015)
1134 * [`if_same_then_else`]: Now ignores branches with `todo!` and `unimplemented!`
1135 [#9006](https://github.com/rust-lang/rust-clippy/pull/9006)
1136 * [`enum_variant_names`]: Now ignores names with `_` prefixes
1137 [#9032](https://github.com/rust-lang/rust-clippy/pull/9032)
1138 * [`let_unit_value`]: Now ignores cases, where the unit type is manually specified
1139 [#9056](https://github.com/rust-lang/rust-clippy/pull/9056)
1140 * [`match_same_arms`]: Now ignores branches with `todo!`
1141 [#9207](https://github.com/rust-lang/rust-clippy/pull/9207)
1142 * [`assign_op_pattern`]: Ignores cases that break borrowing rules
1143 [#9214](https://github.com/rust-lang/rust-clippy/pull/9214)
1144 * [`extra_unused_lifetimes`]: No longer triggers in derive macros
1145 [#9037](https://github.com/rust-lang/rust-clippy/pull/9037)
1146 * [`mismatching_type_param_order`]: Now ignores complicated generic parameters
1147 [#9146](https://github.com/rust-lang/rust-clippy/pull/9146)
1148 * [`equatable_if_let`]: No longer lints in macros
1149 [#9074](https://github.com/rust-lang/rust-clippy/pull/9074)
1150 * [`new_without_default`]: Now ignores generics and lifetime parameters on `fn new`
1151 [#9115](https://github.com/rust-lang/rust-clippy/pull/9115)
1152 * [`needless_borrow`]: Now ignores cases that result in the execution of different traits
1153 [#9096](https://github.com/rust-lang/rust-clippy/pull/9096)
1154 * [`declare_interior_mutable_const`]: No longer triggers in thread-local initializers
1155 [#9246](https://github.com/rust-lang/rust-clippy/pull/9246)
1156
1157 ### Suggestion Fixes/Improvements
1158
1159 * [`type_repetition_in_bounds`]: The suggestion now works with maybe bounds
1160 [#9132](https://github.com/rust-lang/rust-clippy/pull/9132)
1161 * [`transmute_ptr_to_ref`]: Now suggests `pointer::cast` when possible
1162 [#8939](https://github.com/rust-lang/rust-clippy/pull/8939)
1163 * [`useless_format`]: Now suggests the correct variable name
1164 [#9237](https://github.com/rust-lang/rust-clippy/pull/9237)
1165 * [`or_fun_call`]: The lint emission will now only span over the `unwrap_or` call
1166 [#9144](https://github.com/rust-lang/rust-clippy/pull/9144)
1167 * [`neg_multiply`]: Now suggests adding parentheses around suggestion if needed
1168 [#9026](https://github.com/rust-lang/rust-clippy/pull/9026)
1169 * [`unnecessary_lazy_evaluations`]: Now suggest for `bool::then_some` for lazy evaluation
1170 [#9099](https://github.com/rust-lang/rust-clippy/pull/9099)
1171 * [`manual_flatten`]: Improved message for long code snippets
1172 [#9156](https://github.com/rust-lang/rust-clippy/pull/9156)
1173 * [`explicit_counter_loop`]: The suggestion is now machine applicable
1174 [#9149](https://github.com/rust-lang/rust-clippy/pull/9149)
1175 * [`needless_borrow`]: Now keeps parentheses around fields, when needed
1176 [#9210](https://github.com/rust-lang/rust-clippy/pull/9210)
1177 * [`while_let_on_iterator`]: The suggestion now works in `FnOnce` closures
1178 [#9134](https://github.com/rust-lang/rust-clippy/pull/9134)
1179
1180 ### ICE Fixes
1181
1182 * Fix ICEs related to `#![feature(generic_const_exprs)]` usage
1183 [#9241](https://github.com/rust-lang/rust-clippy/pull/9241)
1184 * Fix ICEs related to reference lints
1185 [#9093](https://github.com/rust-lang/rust-clippy/pull/9093)
1186 * [`question_mark`]: Fix ICE on zero field tuple structs
1187 [#9244](https://github.com/rust-lang/rust-clippy/pull/9244)
1188
1189 ### Documentation Improvements
1190
1191 * [`needless_option_take`]: Now includes a "What it does" and "Why is this bad?" section.
1192 [#9022](https://github.com/rust-lang/rust-clippy/pull/9022)
1193
1194 ### Others
1195
1196 * Using `--cap-lints=allow` and only `--force-warn`ing some will now work with Clippy's driver
1197 [#9036](https://github.com/rust-lang/rust-clippy/pull/9036)
1198 * Clippy now tries to read the `rust-version` from `Cargo.toml` to identify the
1199 minimum supported rust version
1200 [#8774](https://github.com/rust-lang/rust-clippy/pull/8774)
1201
1202 ## Rust 1.63
1203
1204 Released 2022-08-11
1205
1206 [View all 91 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-05-05T17%3A24%3A22Z..2022-06-16T14%3A24%3A48Z+base%3Amaster)
1207
1208 ### New Lints
1209
1210 * [`borrow_deref_ref`]
1211 [#7930](https://github.com/rust-lang/rust-clippy/pull/7930)
1212 * [`doc_link_with_quotes`]
1213 [#8385](https://github.com/rust-lang/rust-clippy/pull/8385)
1214 * [`no_effect_replace`]
1215 [#8754](https://github.com/rust-lang/rust-clippy/pull/8754)
1216 * [`rc_clone_in_vec_init`]
1217 [#8769](https://github.com/rust-lang/rust-clippy/pull/8769)
1218 * [`derive_partial_eq_without_eq`]
1219 [#8796](https://github.com/rust-lang/rust-clippy/pull/8796)
1220 * [`mismatching_type_param_order`]
1221 [#8831](https://github.com/rust-lang/rust-clippy/pull/8831)
1222 * [`duplicate_mod`] [#8832](https://github.com/rust-lang/rust-clippy/pull/8832)
1223 * [`unused_rounding`]
1224 [#8866](https://github.com/rust-lang/rust-clippy/pull/8866)
1225 * [`get_first`] [#8882](https://github.com/rust-lang/rust-clippy/pull/8882)
1226 * [`swap_ptr_to_ref`]
1227 [#8916](https://github.com/rust-lang/rust-clippy/pull/8916)
1228 * [`almost_complete_letter_range`]
1229 [#8918](https://github.com/rust-lang/rust-clippy/pull/8918)
1230 * [`needless_parens_on_range_literals`]
1231 [#8933](https://github.com/rust-lang/rust-clippy/pull/8933)
1232 * [`as_underscore`] [#8934](https://github.com/rust-lang/rust-clippy/pull/8934)
1233
1234 ### Moves and Deprecations
1235
1236 * Rename `eval_order_dependence` to [`mixed_read_write_in_expression`], move to
1237 `nursery` [#8621](https://github.com/rust-lang/rust-clippy/pull/8621)
1238
1239 ### Enhancements
1240
1241 * [`undocumented_unsafe_blocks`]: Now also lints on unsafe trait implementations
1242 [#8761](https://github.com/rust-lang/rust-clippy/pull/8761)
1243 * [`empty_line_after_outer_attr`]: Now also lints on argumentless macros
1244 [#8790](https://github.com/rust-lang/rust-clippy/pull/8790)
1245 * [`expect_used`]: Now can be disabled in tests with the `allow-expect-in-tests`
1246 option [#8802](https://github.com/rust-lang/rust-clippy/pull/8802)
1247 * [`unwrap_used`]: Now can be disabled in tests with the `allow-unwrap-in-tests`
1248 option [#8802](https://github.com/rust-lang/rust-clippy/pull/8802)
1249 * [`disallowed_methods`]: Now also lints indirect usages
1250 [#8852](https://github.com/rust-lang/rust-clippy/pull/8852)
1251 * [`get_last_with_len`]: Now also lints `VecDeque` and any deref to slice
1252 [#8862](https://github.com/rust-lang/rust-clippy/pull/8862)
1253 * [`manual_range_contains`]: Now also lints on chains of `&&` and `||`
1254 [#8884](https://github.com/rust-lang/rust-clippy/pull/8884)
1255 * [`rc_clone_in_vec_init`]: Now also lints on `Weak`
1256 [#8885](https://github.com/rust-lang/rust-clippy/pull/8885)
1257 * [`dbg_macro`]: Introduce `allow-dbg-in-tests` config option
1258 [#8897](https://github.com/rust-lang/rust-clippy/pull/8897)
1259 * [`use_self`]: Now also lints on `TupleStruct` and `Struct` patterns
1260 [#8899](https://github.com/rust-lang/rust-clippy/pull/8899)
1261 * [`manual_find_map`] and [`manual_filter_map`]: Now also lints on more complex
1262 method chains inside `map`
1263 [#8930](https://github.com/rust-lang/rust-clippy/pull/8930)
1264 * [`needless_return`]: Now also lints on macro expressions in return statements
1265 [#8932](https://github.com/rust-lang/rust-clippy/pull/8932)
1266 * [`doc_markdown`]: Users can now indicate, that the `doc-valid-idents` config
1267 should extend the default and not replace it
1268 [#8944](https://github.com/rust-lang/rust-clippy/pull/8944)
1269 * [`disallowed_names`]: Users can now indicate, that the `disallowed-names`
1270 config should extend the default and not replace it
1271 [#8944](https://github.com/rust-lang/rust-clippy/pull/8944)
1272 * [`never_loop`]: Now checks for `continue` in struct expression
1273 [#9002](https://github.com/rust-lang/rust-clippy/pull/9002)
1274
1275 ### False Positive Fixes
1276
1277 * [`useless_transmute`]: No longer lints on types with erased regions
1278 [#8564](https://github.com/rust-lang/rust-clippy/pull/8564)
1279 * [`vec_init_then_push`]: No longer lints when further extended
1280 [#8699](https://github.com/rust-lang/rust-clippy/pull/8699)
1281 * [`cmp_owned`]: No longer lints on `From::from` for `Copy` types
1282 [#8807](https://github.com/rust-lang/rust-clippy/pull/8807)
1283 * [`redundant_allocation`]: No longer lints on fat pointers that would become
1284 thin pointers [#8813](https://github.com/rust-lang/rust-clippy/pull/8813)
1285 * [`derive_partial_eq_without_eq`]:
1286 * Handle differing predicates applied by `#[derive(PartialEq)]` and
1287 `#[derive(Eq)]`
1288 [#8869](https://github.com/rust-lang/rust-clippy/pull/8869)
1289 * No longer lints on non-public types and better handles generics
1290 [#8950](https://github.com/rust-lang/rust-clippy/pull/8950)
1291 * [`empty_line_after_outer_attr`]: No longer lints empty lines in inner
1292 string values [#8892](https://github.com/rust-lang/rust-clippy/pull/8892)
1293 * [`branches_sharing_code`]: No longer lints when using different binding names
1294 [#8901](https://github.com/rust-lang/rust-clippy/pull/8901)
1295 * [`significant_drop_in_scrutinee`]: No longer lints on Try `?` and `await`
1296 desugared expressions [#8902](https://github.com/rust-lang/rust-clippy/pull/8902)
1297 * [`checked_conversions`]: No longer lints in `const` contexts
1298 [#8907](https://github.com/rust-lang/rust-clippy/pull/8907)
1299 * [`iter_overeager_cloned`]: No longer lints on `.cloned().flatten()` when
1300 `T::Item` doesn't implement `IntoIterator`
1301 [#8960](https://github.com/rust-lang/rust-clippy/pull/8960)
1302
1303 ### Suggestion Fixes/Improvements
1304
1305 * [`vec_init_then_push`]: Suggest to remove `mut` binding when possible
1306 [#8699](https://github.com/rust-lang/rust-clippy/pull/8699)
1307 * [`manual_range_contains`]: Fix suggestion for integers with different signs
1308 [#8763](https://github.com/rust-lang/rust-clippy/pull/8763)
1309 * [`identity_op`]: Add parenthesis to suggestions where required
1310 [#8786](https://github.com/rust-lang/rust-clippy/pull/8786)
1311 * [`cast_lossless`]: No longer gives wrong suggestion on `usize`/`isize`->`f64`
1312 [#8778](https://github.com/rust-lang/rust-clippy/pull/8778)
1313 * [`rc_clone_in_vec_init`]: Add suggestion
1314 [#8814](https://github.com/rust-lang/rust-clippy/pull/8814)
1315 * The "unknown field" error messages for config files now wraps the field names
1316 [#8823](https://github.com/rust-lang/rust-clippy/pull/8823)
1317 * [`cast_abs_to_unsigned`]: Do not remove cast if it's required
1318 [#8876](https://github.com/rust-lang/rust-clippy/pull/8876)
1319 * [`significant_drop_in_scrutinee`]: Improve lint message for types that are not
1320 references and not trivially clone-able
1321 [#8902](https://github.com/rust-lang/rust-clippy/pull/8902)
1322 * [`for_loops_over_fallibles`]: Now suggests the correct variant of `iter()`,
1323 `iter_mut()` or `into_iter()`
1324 [#8941](https://github.com/rust-lang/rust-clippy/pull/8941)
1325
1326 ### ICE Fixes
1327
1328 * Fix ICE in [`let_unit_value`] when calling a `static`/`const` callable type
1329 [#8835](https://github.com/rust-lang/rust-clippy/pull/8835)
1330 * Fix ICEs on callable `static`/`const`s
1331 [#8896](https://github.com/rust-lang/rust-clippy/pull/8896)
1332 * [`needless_late_init`]
1333 [#8912](https://github.com/rust-lang/rust-clippy/pull/8912)
1334 * Fix ICE in shadow lints
1335 [#8913](https://github.com/rust-lang/rust-clippy/pull/8913)
1336
1337 ### Documentation Improvements
1338
1339 * Clippy has a [Book](https://doc.rust-lang.org/nightly/clippy/) now!
1340 [#7359](https://github.com/rust-lang/rust-clippy/pull/7359)
1341 * Add a *copy lint name*-button to Clippy's lint list
1342 [#8839](https://github.com/rust-lang/rust-clippy/pull/8839)
1343 * Display past names of renamed lints on Clippy's lint list
1344 [#8843](https://github.com/rust-lang/rust-clippy/pull/8843)
1345 * Add the ability to show the lint output in the lint list
1346 [#8947](https://github.com/rust-lang/rust-clippy/pull/8947)
1347
1348 ## Rust 1.62
1349
1350 Released 2022-06-30
1351
1352 [View all 90 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-03-25T17%3A22%3A30Z..2022-05-05T13%3A29%3A44Z+base%3Amaster)
1353
1354 ### New Lints
1355
1356 * [`large_include_file`]
1357 [#8727](https://github.com/rust-lang/rust-clippy/pull/8727)
1358 * [`cast_abs_to_unsigned`]
1359 [#8635](https://github.com/rust-lang/rust-clippy/pull/8635)
1360 * [`err_expect`]
1361 [#8606](https://github.com/rust-lang/rust-clippy/pull/8606)
1362 * [`unnecessary_owned_empty_strings`]
1363 [#8660](https://github.com/rust-lang/rust-clippy/pull/8660)
1364 * [`empty_structs_with_brackets`]
1365 [#8594](https://github.com/rust-lang/rust-clippy/pull/8594)
1366 * [`crate_in_macro_def`]
1367 [#8576](https://github.com/rust-lang/rust-clippy/pull/8576)
1368 * [`needless_option_take`]
1369 [#8665](https://github.com/rust-lang/rust-clippy/pull/8665)
1370 * [`bytes_count_to_len`]
1371 [#8711](https://github.com/rust-lang/rust-clippy/pull/8711)
1372 * [`is_digit_ascii_radix`]
1373 [#8624](https://github.com/rust-lang/rust-clippy/pull/8624)
1374 * [`await_holding_invalid_type`]
1375 [#8707](https://github.com/rust-lang/rust-clippy/pull/8707)
1376 * [`trim_split_whitespace`]
1377 [#8575](https://github.com/rust-lang/rust-clippy/pull/8575)
1378 * [`pub_use`]
1379 [#8670](https://github.com/rust-lang/rust-clippy/pull/8670)
1380 * [`format_push_string`]
1381 [#8626](https://github.com/rust-lang/rust-clippy/pull/8626)
1382 * [`empty_drop`]
1383 [#8571](https://github.com/rust-lang/rust-clippy/pull/8571)
1384 * [`drop_non_drop`]
1385 [#8630](https://github.com/rust-lang/rust-clippy/pull/8630)
1386 * [`forget_non_drop`]
1387 [#8630](https://github.com/rust-lang/rust-clippy/pull/8630)
1388
1389 ### Moves and Deprecations
1390
1391 * Move [`only_used_in_recursion`] to `nursery` (now allow-by-default)
1392 [#8783](https://github.com/rust-lang/rust-clippy/pull/8783)
1393 * Move [`stable_sort_primitive`] to `pedantic` (now allow-by-default)
1394 [#8716](https://github.com/rust-lang/rust-clippy/pull/8716)
1395
1396 ### Enhancements
1397
1398 * Remove overlap between [`manual_split_once`] and [`needless_splitn`]
1399 [#8631](https://github.com/rust-lang/rust-clippy/pull/8631)
1400 * [`map_identity`]: Now checks for needless `map_err`
1401 [#8487](https://github.com/rust-lang/rust-clippy/pull/8487)
1402 * [`extra_unused_lifetimes`]: Now checks for impl lifetimes
1403 [#8737](https://github.com/rust-lang/rust-clippy/pull/8737)
1404 * [`cast_possible_truncation`]: Now catches more cases with larger shift or divide operations
1405 [#8687](https://github.com/rust-lang/rust-clippy/pull/8687)
1406 * [`identity_op`]: Now checks for modulo expressions
1407 [#8519](https://github.com/rust-lang/rust-clippy/pull/8519)
1408 * [`panic`]: No longer lint in constant context
1409 [#8592](https://github.com/rust-lang/rust-clippy/pull/8592)
1410 * [`manual_split_once`]: Now lints manual iteration of `splitn`
1411 [#8717](https://github.com/rust-lang/rust-clippy/pull/8717)
1412 * [`self_named_module_files`], [`mod_module_files`]: Now handle relative module paths
1413 [#8611](https://github.com/rust-lang/rust-clippy/pull/8611)
1414 * [`unsound_collection_transmute`]: Now has better size and alignment checks
1415 [#8648](https://github.com/rust-lang/rust-clippy/pull/8648)
1416 * [`unnested_or_patterns`]: Ignore cases, where the suggestion would be longer
1417 [#8619](https://github.com/rust-lang/rust-clippy/pull/8619)
1418
1419 ### False Positive Fixes
1420
1421 * [`rest_pat_in_fully_bound_structs`]: Now ignores structs marked with `#[non_exhaustive]`
1422 [#8690](https://github.com/rust-lang/rust-clippy/pull/8690)
1423 * [`needless_late_init`]: No longer lints `if let` statements, `let mut` bindings or instances that
1424 changes the drop order significantly
1425 [#8617](https://github.com/rust-lang/rust-clippy/pull/8617)
1426 * [`unnecessary_cast`]: No longer lints to casts to aliased or non-primitive types
1427 [#8596](https://github.com/rust-lang/rust-clippy/pull/8596)
1428 * [`init_numbered_fields`]: No longer lints type aliases
1429 [#8780](https://github.com/rust-lang/rust-clippy/pull/8780)
1430 * [`needless_option_as_deref`]: No longer lints for `as_deref_mut` on `Option` values that can't be moved
1431 [#8646](https://github.com/rust-lang/rust-clippy/pull/8646)
1432 * [`mistyped_literal_suffixes`]: Now ignores float literals without an exponent
1433 [#8742](https://github.com/rust-lang/rust-clippy/pull/8742)
1434 * [`undocumented_unsafe_blocks`]: Now ignores unsafe blocks from proc-macros and works better for sub-expressions
1435 [#8450](https://github.com/rust-lang/rust-clippy/pull/8450)
1436 * [`same_functions_in_if_condition`]: Now allows different constants, even if they have the same value
1437 [#8673](https://github.com/rust-lang/rust-clippy/pull/8673)
1438 * [`needless_match`]: Now checks for more complex types and ignores type coercion
1439 [#8549](https://github.com/rust-lang/rust-clippy/pull/8549)
1440 * [`assertions_on_constants`]: Now ignores constants from `cfg!` macros
1441 [#8614](https://github.com/rust-lang/rust-clippy/pull/8614)
1442 * [`indexing_slicing`]: Fix false positives with constant indices in
1443 [#8588](https://github.com/rust-lang/rust-clippy/pull/8588)
1444 * [`iter_with_drain`]: Now ignores iterator references
1445 [#8668](https://github.com/rust-lang/rust-clippy/pull/8668)
1446 * [`useless_attribute`]: Now allows [`redundant_pub_crate`] on `use` items
1447 [#8743](https://github.com/rust-lang/rust-clippy/pull/8743)
1448 * [`cast_ptr_alignment`]: Now ignores expressions, when used for unaligned reads and writes
1449 [#8632](https://github.com/rust-lang/rust-clippy/pull/8632)
1450 * [`wrong_self_convention`]: Now allows `&mut self` and no self as arguments for `is_*` methods
1451 [#8738](https://github.com/rust-lang/rust-clippy/pull/8738)
1452 * [`mut_from_ref`]: Only lint in unsafe code
1453 [#8647](https://github.com/rust-lang/rust-clippy/pull/8647)
1454 * [`redundant_pub_crate`]: Now allows macro exports
1455 [#8736](https://github.com/rust-lang/rust-clippy/pull/8736)
1456 * [`needless_match`]: Ignores cases where the else block expression is different
1457 [#8700](https://github.com/rust-lang/rust-clippy/pull/8700)
1458 * [`transmute_int_to_char`]: Now allows transmutations in `const` code
1459 [#8610](https://github.com/rust-lang/rust-clippy/pull/8610)
1460 * [`manual_non_exhaustive`]: Ignores cases, where the enum value is used
1461 [#8645](https://github.com/rust-lang/rust-clippy/pull/8645)
1462 * [`redundant_closure`]: Now ignores coerced closure
1463 [#8431](https://github.com/rust-lang/rust-clippy/pull/8431)
1464 * [`identity_op`]: Is now ignored in cases where extra brackets would be needed
1465 [#8730](https://github.com/rust-lang/rust-clippy/pull/8730)
1466 * [`let_unit_value`]: Now ignores cases which are used for type inference
1467 [#8563](https://github.com/rust-lang/rust-clippy/pull/8563)
1468
1469 ### Suggestion Fixes/Improvements
1470
1471 * [`manual_split_once`]: Fixed incorrect suggestions for single result accesses
1472 [#8631](https://github.com/rust-lang/rust-clippy/pull/8631)
1473 * [`bytes_nth`]: Fix typos in the diagnostic message
1474 [#8403](https://github.com/rust-lang/rust-clippy/pull/8403)
1475 * [`mistyped_literal_suffixes`]: Now suggests the correct integer types
1476 [#8742](https://github.com/rust-lang/rust-clippy/pull/8742)
1477 * [`unnecessary_to_owned`]: Fixed suggestion based on the configured msrv
1478 [#8692](https://github.com/rust-lang/rust-clippy/pull/8692)
1479 * [`single_element_loop`]: Improve lint for Edition 2021 arrays
1480 [#8616](https://github.com/rust-lang/rust-clippy/pull/8616)
1481 * [`manual_bits`]: Now includes a cast for proper type conversion, when needed
1482 [#8677](https://github.com/rust-lang/rust-clippy/pull/8677)
1483 * [`option_map_unit_fn`], [`result_map_unit_fn`]: Fix some incorrect suggestions
1484 [#8584](https://github.com/rust-lang/rust-clippy/pull/8584)
1485 * [`collapsible_else_if`]: Add whitespace in suggestion
1486 [#8729](https://github.com/rust-lang/rust-clippy/pull/8729)
1487 * [`transmute_bytes_to_str`]: Now suggest `from_utf8_unchecked` in `const` context
1488 [#8612](https://github.com/rust-lang/rust-clippy/pull/8612)
1489 * [`map_clone`]: Improve message and suggestion based on the msrv
1490 [#8688](https://github.com/rust-lang/rust-clippy/pull/8688)
1491 * [`needless_late_init`]: Now shows the `let` statement where it was first initialized
1492 [#8779](https://github.com/rust-lang/rust-clippy/pull/8779)
1493
1494 ### ICE Fixes
1495
1496 * [`only_used_in_recursion`]
1497 [#8691](https://github.com/rust-lang/rust-clippy/pull/8691)
1498 * [`cast_slice_different_sizes`]
1499 [#8720](https://github.com/rust-lang/rust-clippy/pull/8720)
1500 * [`iter_overeager_cloned`]
1501 [#8602](https://github.com/rust-lang/rust-clippy/pull/8602)
1502 * [`undocumented_unsafe_blocks`]
1503 [#8686](https://github.com/rust-lang/rust-clippy/pull/8686)
1504
1505 ## Rust 1.61
1506
1507 Released 2022-05-19
1508
1509 [View all 60 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2022-02-11T16%3A54%3A41Z..2022-03-24T13%3A42%3A25Z+base%3Amaster)
1510
1511 ### New Lints
1512
1513 * [`only_used_in_recursion`]
1514 [#8422](https://github.com/rust-lang/rust-clippy/pull/8422)
1515 * [`cast_enum_truncation`]
1516 [#8381](https://github.com/rust-lang/rust-clippy/pull/8381)
1517 * [`missing_spin_loop`]
1518 [#8174](https://github.com/rust-lang/rust-clippy/pull/8174)
1519 * [`deref_by_slicing`]
1520 [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
1521 * [`needless_match`]
1522 [#8471](https://github.com/rust-lang/rust-clippy/pull/8471)
1523 * [`allow_attributes_without_reason`] (Requires `#![feature(lint_reasons)]`)
1524 [#8504](https://github.com/rust-lang/rust-clippy/pull/8504)
1525 * [`print_in_format_impl`]
1526 [#8253](https://github.com/rust-lang/rust-clippy/pull/8253)
1527 * [`unnecessary_find_map`]
1528 [#8489](https://github.com/rust-lang/rust-clippy/pull/8489)
1529 * [`or_then_unwrap`]
1530 [#8561](https://github.com/rust-lang/rust-clippy/pull/8561)
1531 * [`unnecessary_join`]
1532 [#8579](https://github.com/rust-lang/rust-clippy/pull/8579)
1533 * [`iter_with_drain`]
1534 [#8483](https://github.com/rust-lang/rust-clippy/pull/8483)
1535 * [`cast_enum_constructor`]
1536 [#8562](https://github.com/rust-lang/rust-clippy/pull/8562)
1537 * [`cast_slice_different_sizes`]
1538 [#8445](https://github.com/rust-lang/rust-clippy/pull/8445)
1539
1540 ### Moves and Deprecations
1541
1542 * Moved [`transmute_undefined_repr`] to `nursery` (now allow-by-default)
1543 [#8432](https://github.com/rust-lang/rust-clippy/pull/8432)
1544 * Moved [`try_err`] to `restriction`
1545 [#8544](https://github.com/rust-lang/rust-clippy/pull/8544)
1546 * Move [`iter_with_drain`] to `nursery`
1547 [#8541](https://github.com/rust-lang/rust-clippy/pull/8541)
1548 * Renamed `to_string_in_display` to [`recursive_format_impl`]
1549 [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
1550
1551 ### Enhancements
1552
1553 * [`dbg_macro`]: The lint level can now be set with crate attributes and works inside macros
1554 [#8411](https://github.com/rust-lang/rust-clippy/pull/8411)
1555 * [`ptr_as_ptr`]: Now works inside macros
1556 [#8442](https://github.com/rust-lang/rust-clippy/pull/8442)
1557 * [`use_self`]: Now works for variants in match expressions
1558 [#8456](https://github.com/rust-lang/rust-clippy/pull/8456)
1559 * [`await_holding_lock`]: Now lints for `parking_lot::{Mutex, RwLock}`
1560 [#8419](https://github.com/rust-lang/rust-clippy/pull/8419)
1561 * [`recursive_format_impl`]: Now checks for format calls on `self`
1562 [#8188](https://github.com/rust-lang/rust-clippy/pull/8188)
1563
1564 ### False Positive Fixes
1565
1566 * [`new_without_default`]: No longer lints for `new()` methods with `#[doc(hidden)]`
1567 [#8472](https://github.com/rust-lang/rust-clippy/pull/8472)
1568 * [`transmute_undefined_repr`]: No longer lints for single field structs with `#[repr(C)]`,
1569 generic parameters, wide pointers, unions, tuples and allow several forms of type erasure
1570 [#8425](https://github.com/rust-lang/rust-clippy/pull/8425)
1571 [#8553](https://github.com/rust-lang/rust-clippy/pull/8553)
1572 [#8440](https://github.com/rust-lang/rust-clippy/pull/8440)
1573 [#8547](https://github.com/rust-lang/rust-clippy/pull/8547)
1574 * [`match_single_binding`], [`match_same_arms`], [`match_as_ref`], [`match_bool`]: No longer
1575 lint `match` expressions with `cfg`ed arms
1576 [#8443](https://github.com/rust-lang/rust-clippy/pull/8443)
1577 * [`single_component_path_imports`]: No longer lint on macros
1578 [#8537](https://github.com/rust-lang/rust-clippy/pull/8537)
1579 * [`ptr_arg`]: Allow `&mut` arguments for `Cow<_>`
1580 [#8552](https://github.com/rust-lang/rust-clippy/pull/8552)
1581 * [`needless_borrow`]: No longer lints for method calls
1582 [#8441](https://github.com/rust-lang/rust-clippy/pull/8441)
1583 * [`match_same_arms`]: Now ensures that interposing arm patterns don't overlap
1584 [#8232](https://github.com/rust-lang/rust-clippy/pull/8232)
1585 * [`default_trait_access`]: Now allows `Default::default` in update expressions
1586 [#8433](https://github.com/rust-lang/rust-clippy/pull/8433)
1587
1588 ### Suggestion Fixes/Improvements
1589
1590 * [`redundant_slicing`]: Fixed suggestion for a method calls
1591 [#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
1592 * [`map_flatten`]: Long suggestions will now be split up into two help messages
1593 [#8520](https://github.com/rust-lang/rust-clippy/pull/8520)
1594 * [`unnecessary_lazy_evaluations`]: Now shows suggestions for longer code snippets
1595 [#8543](https://github.com/rust-lang/rust-clippy/pull/8543)
1596 * [`unnecessary_sort_by`]: Now suggests `Reverse` including the path
1597 [#8462](https://github.com/rust-lang/rust-clippy/pull/8462)
1598 * [`search_is_some`]: More suggestions are now `MachineApplicable`
1599 [#8536](https://github.com/rust-lang/rust-clippy/pull/8536)
1600
1601 ### Documentation Improvements
1602
1603 * [`new_without_default`]: Document `pub` requirement for the struct and fields
1604 [#8429](https://github.com/rust-lang/rust-clippy/pull/8429)
1605
1606 ## Rust 1.60
1607
1608 Released 2022-04-07
1609
1610 [View all 73 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-12-31T17%3A53%3A37Z..2022-02-10T17%3A31%3A37Z+base%3Amaster)
1611
1612 ### New Lints
1613
1614 * [`single_char_lifetime_names`]
1615 [#8236](https://github.com/rust-lang/rust-clippy/pull/8236)
1616 * [`iter_overeager_cloned`]
1617 [#8203](https://github.com/rust-lang/rust-clippy/pull/8203)
1618 * [`transmute_undefined_repr`]
1619 [#8398](https://github.com/rust-lang/rust-clippy/pull/8398)
1620 * [`default_union_representation`]
1621 [#8289](https://github.com/rust-lang/rust-clippy/pull/8289)
1622 * [`manual_bits`]
1623 [#8213](https://github.com/rust-lang/rust-clippy/pull/8213)
1624 * [`borrow_as_ptr`]
1625 [#8210](https://github.com/rust-lang/rust-clippy/pull/8210)
1626
1627 ### Moves and Deprecations
1628
1629 * Moved [`disallowed_methods`] and [`disallowed_types`] to `style` (now warn-by-default)
1630 [#8261](https://github.com/rust-lang/rust-clippy/pull/8261)
1631 * Rename `ref_in_deref` to [`needless_borrow`]
1632 [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
1633 * Moved [`mutex_atomic`] to `nursery` (now allow-by-default)
1634 [#8260](https://github.com/rust-lang/rust-clippy/pull/8260)
1635
1636 ### Enhancements
1637
1638 * [`ptr_arg`]: Now takes the argument usage into account and lints for mutable references
1639 [#8271](https://github.com/rust-lang/rust-clippy/pull/8271)
1640 * [`unused_io_amount`]: Now supports async read and write traits
1641 [#8179](https://github.com/rust-lang/rust-clippy/pull/8179)
1642 * [`while_let_on_iterator`]: Improved detection to catch more cases
1643 [#8221](https://github.com/rust-lang/rust-clippy/pull/8221)
1644 * [`trait_duplication_in_bounds`]: Now covers trait functions with `Self` bounds
1645 [#8252](https://github.com/rust-lang/rust-clippy/pull/8252)
1646 * [`unwrap_used`]: Now works for `.get(i).unwrap()` and `.get_mut(i).unwrap()`
1647 [#8372](https://github.com/rust-lang/rust-clippy/pull/8372)
1648 * [`map_clone`]: The suggestion takes `msrv` into account
1649 [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
1650 * [`manual_bits`] and [`borrow_as_ptr`]: Now track the `clippy::msrv` attribute
1651 [#8280](https://github.com/rust-lang/rust-clippy/pull/8280)
1652 * [`disallowed_methods`]: Now works for methods on primitive types
1653 [#8112](https://github.com/rust-lang/rust-clippy/pull/8112)
1654 * [`not_unsafe_ptr_arg_deref`]: Now works for type aliases
1655 [#8273](https://github.com/rust-lang/rust-clippy/pull/8273)
1656 * [`needless_question_mark`]: Now works for async functions
1657 [#8311](https://github.com/rust-lang/rust-clippy/pull/8311)
1658 * [`iter_not_returning_iterator`]: Now handles type projections
1659 [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
1660 * [`wrong_self_convention`]: Now detects wrong `self` references in more cases
1661 [#8208](https://github.com/rust-lang/rust-clippy/pull/8208)
1662 * [`single_match`]: Now works for `match` statements with tuples
1663 [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
1664
1665 ### False Positive Fixes
1666
1667 * [`erasing_op`]: No longer triggers if the output type changes
1668 [#8204](https://github.com/rust-lang/rust-clippy/pull/8204)
1669 * [`if_same_then_else`]: No longer triggers for `if let` statements
1670 [#8297](https://github.com/rust-lang/rust-clippy/pull/8297)
1671 * [`manual_memcpy`]: No longer lints on `VecDeque`
1672 [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
1673 * [`trait_duplication_in_bounds`]: Now takes path segments into account
1674 [#8315](https://github.com/rust-lang/rust-clippy/pull/8315)
1675 * [`deref_addrof`]: No longer lints when the dereference or borrow occurs in different a context
1676 [#8268](https://github.com/rust-lang/rust-clippy/pull/8268)
1677 * [`type_repetition_in_bounds`]: Now checks for full equality to prevent false positives
1678 [#8224](https://github.com/rust-lang/rust-clippy/pull/8224)
1679 * [`ptr_arg`]: No longer lint for mutable references in traits
1680 [#8369](https://github.com/rust-lang/rust-clippy/pull/8369)
1681 * [`implicit_clone`]: No longer lints for double references
1682 [#8231](https://github.com/rust-lang/rust-clippy/pull/8231)
1683 * [`needless_lifetimes`]: No longer lints lifetimes for explicit `self` types
1684 [#8278](https://github.com/rust-lang/rust-clippy/pull/8278)
1685 * [`op_ref`]: No longer lints in `BinOp` impl if that can cause recursion
1686 [#8298](https://github.com/rust-lang/rust-clippy/pull/8298)
1687 * [`enum_variant_names`]: No longer triggers for empty variant names
1688 [#8329](https://github.com/rust-lang/rust-clippy/pull/8329)
1689 * [`redundant_closure`]: No longer lints for `Arc<T>` or `Rc<T>`
1690 [#8193](https://github.com/rust-lang/rust-clippy/pull/8193)
1691 * [`iter_not_returning_iterator`]: No longer lints on trait implementations but therefore on trait definitions
1692 [#8228](https://github.com/rust-lang/rust-clippy/pull/8228)
1693 * [`single_match`]: No longer lints on exhaustive enum patterns without a wildcard
1694 [#8322](https://github.com/rust-lang/rust-clippy/pull/8322)
1695 * [`manual_swap`]: No longer lints on cases that involve automatic dereferences
1696 [#8220](https://github.com/rust-lang/rust-clippy/pull/8220)
1697 * [`useless_format`]: Now works for implicit named arguments
1698 [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
1699
1700 ### Suggestion Fixes/Improvements
1701
1702 * [`needless_borrow`]: Prevent mutable borrows being moved and suggest removing the borrow on method calls
1703 [#8217](https://github.com/rust-lang/rust-clippy/pull/8217)
1704 * [`chars_next_cmp`]: Correctly escapes the suggestion
1705 [#8376](https://github.com/rust-lang/rust-clippy/pull/8376)
1706 * [`explicit_write`]: Add suggestions for `write!`s with format arguments
1707 [#8365](https://github.com/rust-lang/rust-clippy/pull/8365)
1708 * [`manual_memcpy`]: Suggests `copy_from_slice` when applicable
1709 [#8226](https://github.com/rust-lang/rust-clippy/pull/8226)
1710 * [`or_fun_call`]: Improved suggestion display for long arguments
1711 [#8292](https://github.com/rust-lang/rust-clippy/pull/8292)
1712 * [`unnecessary_cast`]: Now correctly includes the sign
1713 [#8350](https://github.com/rust-lang/rust-clippy/pull/8350)
1714 * [`cmp_owned`]: No longer flips the comparison order
1715 [#8299](https://github.com/rust-lang/rust-clippy/pull/8299)
1716 * [`explicit_counter_loop`]: Now correctly suggests `iter()` on references
1717 [#8382](https://github.com/rust-lang/rust-clippy/pull/8382)
1718
1719 ### ICE Fixes
1720
1721 * [`manual_split_once`]
1722 [#8250](https://github.com/rust-lang/rust-clippy/pull/8250)
1723
1724 ### Documentation Improvements
1725
1726 * [`map_flatten`]: Add documentation for the `Option` type
1727 [#8354](https://github.com/rust-lang/rust-clippy/pull/8354)
1728 * Document that Clippy's driver might use a different code generation than rustc
1729 [#8037](https://github.com/rust-lang/rust-clippy/pull/8037)
1730 * Clippy's lint list will now automatically focus the search box
1731 [#8343](https://github.com/rust-lang/rust-clippy/pull/8343)
1732
1733 ### Others
1734
1735 * Clippy now warns if we find multiple Clippy config files exist
1736 [#8326](https://github.com/rust-lang/rust-clippy/pull/8326)
1737
1738 ## Rust 1.59
1739
1740 Released 2022-02-24
1741
1742 [View all 94 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-11-04T12%3A40%3A18Z..2021-12-30T13%3A36%3A20Z+base%3Amaster)
1743
1744 ### New Lints
1745
1746 * [`index_refutable_slice`]
1747 [#7643](https://github.com/rust-lang/rust-clippy/pull/7643)
1748 * [`needless_splitn`]
1749 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
1750 * [`unnecessary_to_owned`]
1751 [#7978](https://github.com/rust-lang/rust-clippy/pull/7978)
1752 * [`needless_late_init`]
1753 [#7995](https://github.com/rust-lang/rust-clippy/pull/7995)
1754 * [`octal_escapes`] [#8007](https://github.com/rust-lang/rust-clippy/pull/8007)
1755 * [`return_self_not_must_use`]
1756 [#8071](https://github.com/rust-lang/rust-clippy/pull/8071)
1757 * [`init_numbered_fields`]
1758 [#8170](https://github.com/rust-lang/rust-clippy/pull/8170)
1759
1760 ### Moves and Deprecations
1761
1762 * Move `if_then_panic` to `pedantic` and rename to [`manual_assert`] (now
1763 allow-by-default) [#7810](https://github.com/rust-lang/rust-clippy/pull/7810)
1764 * Rename `disallow_type` to [`disallowed_types`] and `disallowed_method` to
1765 [`disallowed_methods`]
1766 [#7984](https://github.com/rust-lang/rust-clippy/pull/7984)
1767 * Move [`map_flatten`] to `complexity` (now warn-by-default)
1768 [#8054](https://github.com/rust-lang/rust-clippy/pull/8054)
1769
1770 ### Enhancements
1771
1772 * [`match_overlapping_arm`]: Fix false negative where after included ranges,
1773 overlapping ranges weren't linted anymore
1774 [#7909](https://github.com/rust-lang/rust-clippy/pull/7909)
1775 * [`deprecated_cfg_attr`]: Now takes the specified MSRV into account
1776 [#7944](https://github.com/rust-lang/rust-clippy/pull/7944)
1777 * [`cast_lossless`]: Now also lints for `bool` to integer casts
1778 [#7948](https://github.com/rust-lang/rust-clippy/pull/7948)
1779 * [`let_underscore_lock`]: Also emit lints for the `parking_lot` crate
1780 [#7957](https://github.com/rust-lang/rust-clippy/pull/7957)
1781 * [`needless_borrow`]
1782 [#7977](https://github.com/rust-lang/rust-clippy/pull/7977)
1783 * Lint when a borrow is auto-dereffed more than once
1784 * Lint in the trailing expression of a block for a match arm
1785 * [`strlen_on_c_strings`]
1786 [8001](https://github.com/rust-lang/rust-clippy/pull/8001)
1787 * Lint when used without a fully-qualified path
1788 * Suggest removing the surrounding unsafe block when possible
1789 * [`non_ascii_literal`]: Now also lints on `char`s, not just `string`s
1790 [#8034](https://github.com/rust-lang/rust-clippy/pull/8034)
1791 * [`single_char_pattern`]: Now also lints on `split_inclusive`, `split_once`,
1792 `rsplit_once`, `replace`, and `replacen`
1793 [#8077](https://github.com/rust-lang/rust-clippy/pull/8077)
1794 * [`unwrap_or_else_default`]: Now also lints on `std` constructors like
1795 `Vec::new`, `HashSet::new`, and `HashMap::new`
1796 [#8163](https://github.com/rust-lang/rust-clippy/pull/8163)
1797 * [`shadow_reuse`]: Now also lints on shadowed `if let` bindings, instead of
1798 [`shadow_unrelated`]
1799 [#8165](https://github.com/rust-lang/rust-clippy/pull/8165)
1800
1801 ### False Positive Fixes
1802
1803 * [`or_fun_call`], [`unnecessary_lazy_evaluations`]: Improve heuristics, so that
1804 cheap functions (e.g. calling `.len()` on a `Vec`) won't get linted anymore
1805 [#7639](https://github.com/rust-lang/rust-clippy/pull/7639)
1806 * [`manual_split_once`]: No longer suggests code changing the original behavior
1807 [#7896](https://github.com/rust-lang/rust-clippy/pull/7896)
1808 * Don't show [`no_effect`] or [`unnecessary_operation`] warning for unit struct
1809 implementing `FnOnce`
1810 [#7898](https://github.com/rust-lang/rust-clippy/pull/7898)
1811 * [`semicolon_if_nothing_returned`]: Fixed a bug, where the lint wrongly
1812 triggered on `let-else` statements
1813 [#7955](https://github.com/rust-lang/rust-clippy/pull/7955)
1814 * [`if_then_some_else_none`]: No longer lints if there is an early return
1815 [#7980](https://github.com/rust-lang/rust-clippy/pull/7980)
1816 * [`needless_collect`]: No longer suggests removal of `collect` when removal
1817 would create code requiring mutably borrowing a value multiple times
1818 [#7982](https://github.com/rust-lang/rust-clippy/pull/7982)
1819 * [`shadow_same`]: Fix false positive for `async` function's params
1820 [#7997](https://github.com/rust-lang/rust-clippy/pull/7997)
1821 * [`suboptimal_flops`]: No longer triggers in constant functions
1822 [#8009](https://github.com/rust-lang/rust-clippy/pull/8009)
1823 * [`type_complexity`]: No longer lints on associated types in traits
1824 [#8030](https://github.com/rust-lang/rust-clippy/pull/8030)
1825 * [`question_mark`]: No longer lints if returned object is not local
1826 [#8080](https://github.com/rust-lang/rust-clippy/pull/8080)
1827 * [`option_if_let_else`]: No longer lint on complex sub-patterns
1828 [#8086](https://github.com/rust-lang/rust-clippy/pull/8086)
1829 * [`blocks_in_if_conditions`]: No longer lints on empty closures
1830 [#8100](https://github.com/rust-lang/rust-clippy/pull/8100)
1831 * [`enum_variant_names`]: No longer lint when first prefix is only a substring
1832 of a camel-case word
1833 [#8127](https://github.com/rust-lang/rust-clippy/pull/8127)
1834 * [`identity_op`]: Only lint on integral operands
1835 [#8183](https://github.com/rust-lang/rust-clippy/pull/8183)
1836
1837 ### Suggestion Fixes/Improvements
1838
1839 * [`search_is_some`]: Fix suggestion for `any()` not taking item by reference
1840 [#7463](https://github.com/rust-lang/rust-clippy/pull/7463)
1841 * [`almost_swapped`]: Now detects if there is a `no_std` or `no_core` attribute
1842 and adapts the suggestion accordingly
1843 [#7877](https://github.com/rust-lang/rust-clippy/pull/7877)
1844 * [`redundant_pattern_matching`]: Fix suggestion for deref expressions
1845 [#7949](https://github.com/rust-lang/rust-clippy/pull/7949)
1846 * [`explicit_counter_loop`]: Now also produces a suggestion for non-`usize`
1847 types [#7950](https://github.com/rust-lang/rust-clippy/pull/7950)
1848 * [`manual_map`]: Fix suggestion when used with unsafe functions and blocks
1849 [#7968](https://github.com/rust-lang/rust-clippy/pull/7968)
1850 * [`option_map_or_none`]: Suggest `map` over `and_then` when possible
1851 [#7971](https://github.com/rust-lang/rust-clippy/pull/7971)
1852 * [`option_if_let_else`]: No longer expands macros in the suggestion
1853 [#7974](https://github.com/rust-lang/rust-clippy/pull/7974)
1854 * [`iter_cloned_collect`]: Suggest `copied` over `cloned` when possible
1855 [#8006](https://github.com/rust-lang/rust-clippy/pull/8006)
1856 * [`doc_markdown`]: No longer uses inline hints to improve readability of
1857 suggestion [#8011](https://github.com/rust-lang/rust-clippy/pull/8011)
1858 * [`needless_question_mark`]: Now better explains the suggestion
1859 [#8028](https://github.com/rust-lang/rust-clippy/pull/8028)
1860 * [`single_char_pattern`]: Escape backslash `\` in suggestion
1861 [#8067](https://github.com/rust-lang/rust-clippy/pull/8067)
1862 * [`needless_bool`]: Suggest `a != b` over `!(a == b)`
1863 [#8117](https://github.com/rust-lang/rust-clippy/pull/8117)
1864 * [`iter_skip_next`]: Suggest to add a `mut` if it is necessary in order to
1865 apply this lints suggestion
1866 [#8133](https://github.com/rust-lang/rust-clippy/pull/8133)
1867 * [`neg_multiply`]: Now produces a suggestion
1868 [#8144](https://github.com/rust-lang/rust-clippy/pull/8144)
1869 * [`needless_return`]: Now suggests the unit type `()` over an empty block `{}`
1870 in match arms [#8185](https://github.com/rust-lang/rust-clippy/pull/8185)
1871 * [`suboptimal_flops`]: Now gives a syntactically correct suggestion for
1872 `to_radians` and `to_degrees`
1873 [#8187](https://github.com/rust-lang/rust-clippy/pull/8187)
1874
1875 ### ICE Fixes
1876
1877 * [`undocumented_unsafe_blocks`]
1878 [#7945](https://github.com/rust-lang/rust-clippy/pull/7945)
1879 [#7988](https://github.com/rust-lang/rust-clippy/pull/7988)
1880 * [`unnecessary_cast`]
1881 [#8167](https://github.com/rust-lang/rust-clippy/pull/8167)
1882
1883 ### Documentation Improvements
1884
1885 * [`print_stdout`], [`print_stderr`], [`dbg_macro`]: Document how the lint level
1886 can be changed crate-wide
1887 [#8040](https://github.com/rust-lang/rust-clippy/pull/8040)
1888 * Added a note to the `README` that config changes don't apply to already
1889 compiled code [#8175](https://github.com/rust-lang/rust-clippy/pull/8175)
1890
1891 ### Others
1892
1893 * [Clippy's lint
1894 list](https://rust-lang.github.io/rust-clippy/master/index.html) now displays
1895 the version a lint was added. :tada:
1896 [#7813](https://github.com/rust-lang/rust-clippy/pull/7813)
1897 * New and improved issue templates
1898 [#8032](https://github.com/rust-lang/rust-clippy/pull/8032)
1899 * _Dev:_ Add `cargo dev lint` command, to run your modified Clippy version on a
1900 file [#7917](https://github.com/rust-lang/rust-clippy/pull/7917)
1901
1902 ## Rust 1.58
1903
1904 Released 2022-01-13
1905
1906 [View all 68 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-10-07T09%3A49%3A18Z..2021-11-04T12%3A20%3A12Z+base%3Amaster)
1907
1908 ### Rust 1.58.1
1909
1910 * Move [`non_send_fields_in_send_ty`] to `nursery` (now allow-by-default)
1911 [#8075](https://github.com/rust-lang/rust-clippy/pull/8075)
1912 * [`useless_format`]: Handle implicit named arguments
1913 [#8295](https://github.com/rust-lang/rust-clippy/pull/8295)
1914
1915 ### New lints
1916
1917 * [`transmute_num_to_bytes`]
1918 [#7805](https://github.com/rust-lang/rust-clippy/pull/7805)
1919 * [`match_str_case_mismatch`]
1920 [#7806](https://github.com/rust-lang/rust-clippy/pull/7806)
1921 * [`format_in_format_args`], [`to_string_in_format_args`]
1922 [#7743](https://github.com/rust-lang/rust-clippy/pull/7743)
1923 * [`uninit_vec`]
1924 [#7682](https://github.com/rust-lang/rust-clippy/pull/7682)
1925 * [`fn_to_numeric_cast_any`]
1926 [#7705](https://github.com/rust-lang/rust-clippy/pull/7705)
1927 * [`undocumented_unsafe_blocks`]
1928 [#7748](https://github.com/rust-lang/rust-clippy/pull/7748)
1929 * [`trailing_empty_array`]
1930 [#7838](https://github.com/rust-lang/rust-clippy/pull/7838)
1931 * [`string_slice`]
1932 [#7878](https://github.com/rust-lang/rust-clippy/pull/7878)
1933
1934 ### Moves or deprecations of lints
1935
1936 * Move [`non_send_fields_in_send_ty`] to `suspicious`
1937 [#7874](https://github.com/rust-lang/rust-clippy/pull/7874)
1938 * Move [`non_ascii_literal`] to `restriction`
1939 [#7907](https://github.com/rust-lang/rust-clippy/pull/7907)
1940
1941 ### Changes that expand what code existing lints cover
1942
1943 * [`question_mark`] now covers `Result`
1944 [#7840](https://github.com/rust-lang/rust-clippy/pull/7840)
1945 * Make [`useless_format`] recognize bare `format!("")`
1946 [#7801](https://github.com/rust-lang/rust-clippy/pull/7801)
1947 * Lint on underscored variables with no side effects in [`no_effect`]
1948 [#7775](https://github.com/rust-lang/rust-clippy/pull/7775)
1949 * Expand [`match_ref_pats`] to check for multiple reference patterns
1950 [#7800](https://github.com/rust-lang/rust-clippy/pull/7800)
1951
1952 ### False positive fixes
1953
1954 * Fix false positive of [`implicit_saturating_sub`] with `else` clause
1955 [#7832](https://github.com/rust-lang/rust-clippy/pull/7832)
1956 * Fix [`question_mark`] when there is call in conditional predicate
1957 [#7860](https://github.com/rust-lang/rust-clippy/pull/7860)
1958 * [`mut_mut`] no longer lints when type is defined in external macros
1959 [#7795](https://github.com/rust-lang/rust-clippy/pull/7795)
1960 * Avoid [`eq_op`] in test functions
1961 [#7811](https://github.com/rust-lang/rust-clippy/pull/7811)
1962 * [`cast_possible_truncation`] no longer lints when cast is coming from `signum`
1963 method call [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
1964 * [`match_str_case_mismatch`] no longer lints on uncased characters
1965 [#7865](https://github.com/rust-lang/rust-clippy/pull/7865)
1966 * [`ptr_arg`] no longer lints references to type aliases
1967 [#7890](https://github.com/rust-lang/rust-clippy/pull/7890)
1968 * [`missing_safety_doc`] now also accepts "implementation safety" headers
1969 [#7856](https://github.com/rust-lang/rust-clippy/pull/7856)
1970 * [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]`
1971 attribute [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
1972 * [`if_not_else`] now ignores else-if statements
1973 [#7895](https://github.com/rust-lang/rust-clippy/pull/7895)
1974 * Avoid linting [`cast_possible_truncation`] on bit-reducing operations
1975 [#7819](https://github.com/rust-lang/rust-clippy/pull/7819)
1976 * Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are
1977 involved [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
1978 * [`unnecessary_sort_by`] now checks if argument implements `Ord` trait
1979 [#7824](https://github.com/rust-lang/rust-clippy/pull/7824)
1980 * Fix false positive in [`match_overlapping_arm`]
1981 [#7847](https://github.com/rust-lang/rust-clippy/pull/7847)
1982 * Prevent [`needless_lifetimes`] false positive in `async` function definition
1983 [#7901](https://github.com/rust-lang/rust-clippy/pull/7901)
1984
1985 ### Suggestion fixes/improvements
1986
1987 * Keep an initial `::` when [`doc_markdown`] suggests to use ticks
1988 [#7916](https://github.com/rust-lang/rust-clippy/pull/7916)
1989 * Add a machine applicable suggestion for the [`doc_markdown`] missing backticks
1990 lint [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
1991 * [`equatable_if_let`] no longer expands macros in the suggestion
1992 [#7788](https://github.com/rust-lang/rust-clippy/pull/7788)
1993 * Make [`shadow_reuse`] suggestion less verbose
1994 [#7782](https://github.com/rust-lang/rust-clippy/pull/7782)
1995
1996 ### ICE fixes
1997
1998 * Fix ICE in [`enum_variant_names`]
1999 [#7873](https://github.com/rust-lang/rust-clippy/pull/7873)
2000 * Fix ICE in [`undocumented_unsafe_blocks`]
2001 [#7891](https://github.com/rust-lang/rust-clippy/pull/7891)
2002
2003 ### Documentation improvements
2004
2005 * Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`],
2006 [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
2007 [#7827](https://github.com/rust-lang/rust-clippy/pull/7827)
2008 * Fix typo in example for [`match_result_ok`]
2009 [#7815](https://github.com/rust-lang/rust-clippy/pull/7815)
2010
2011 ### Others
2012
2013 * Allow giving reasons for [`disallowed_types`]
2014 [#7791](https://github.com/rust-lang/rust-clippy/pull/7791)
2015 * Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust
2016 2021. [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
2017 * Fix regression in [`semicolon_if_nothing_returned`] on macros containing while
2018 loops [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
2019 * Added a new configuration `literal-suffix-style` to enforce a certain style
2020 writing [`unseparated_literal_suffix`]
2021 [#7726](https://github.com/rust-lang/rust-clippy/pull/7726)
2022
2023 ## Rust 1.57
2024
2025 Released 2021-12-02
2026
2027 [View all 148 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-08-12T20%3A36%3A04Z..2021-11-03T17%3A57%3A59Z+base%3Amaster)
2028
2029 ### New Lints
2030
2031 * [`negative_feature_names`]
2032 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
2033 * [`redundant_feature_names`]
2034 [#7539](https://github.com/rust-lang/rust-clippy/pull/7539)
2035 * [`mod_module_files`]
2036 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
2037 * [`self_named_module_files`]
2038 [#7543](https://github.com/rust-lang/rust-clippy/pull/7543)
2039 * [`manual_split_once`]
2040 [#7565](https://github.com/rust-lang/rust-clippy/pull/7565)
2041 * [`derivable_impls`]
2042 [#7570](https://github.com/rust-lang/rust-clippy/pull/7570)
2043 * [`needless_option_as_deref`]
2044 [#7596](https://github.com/rust-lang/rust-clippy/pull/7596)
2045 * [`iter_not_returning_iterator`]
2046 [#7610](https://github.com/rust-lang/rust-clippy/pull/7610)
2047 * [`same_name_method`]
2048 [#7653](https://github.com/rust-lang/rust-clippy/pull/7653)
2049 * [`manual_assert`] [#7669](https://github.com/rust-lang/rust-clippy/pull/7669)
2050 * [`non_send_fields_in_send_ty`]
2051 [#7709](https://github.com/rust-lang/rust-clippy/pull/7709)
2052 * [`equatable_if_let`]
2053 [#7762](https://github.com/rust-lang/rust-clippy/pull/7762)
2054
2055 ### Moves and Deprecations
2056
2057 * Move [`shadow_unrelated`] to `restriction`
2058 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
2059 * Move [`option_if_let_else`] to `nursery`
2060 [#7568](https://github.com/rust-lang/rust-clippy/pull/7568)
2061 * Move [`branches_sharing_code`] to `nursery`
2062 [#7595](https://github.com/rust-lang/rust-clippy/pull/7595)
2063 * Rename `if_let_some_result` to [`match_result_ok`] which now also handles
2064 `while let` cases [#7608](https://github.com/rust-lang/rust-clippy/pull/7608)
2065 * Move [`many_single_char_names`] to `pedantic`
2066 [#7671](https://github.com/rust-lang/rust-clippy/pull/7671)
2067 * Move [`float_cmp`] to `pedantic`
2068 [#7692](https://github.com/rust-lang/rust-clippy/pull/7692)
2069 * Rename `box_vec` to [`box_collection`] and lint on more general cases
2070 [#7693](https://github.com/rust-lang/rust-clippy/pull/7693)
2071 * Uplift `invalid_atomic_ordering` to rustc
2072 [rust-lang/rust#84039](https://github.com/rust-lang/rust/pull/84039)
2073
2074 ### Enhancements
2075
2076 * Rewrite the `shadow*` lints, so that they find a lot more shadows and are not
2077 limited to certain patterns
2078 [#7338](https://github.com/rust-lang/rust-clippy/pull/7338)
2079 * The `avoid-breaking-exported-api` configuration now also works for
2080 [`box_collection`], [`redundant_allocation`], [`rc_buffer`], [`vec_box`],
2081 [`option_option`], [`linkedlist`], [`rc_mutex`]
2082 [#7560](https://github.com/rust-lang/rust-clippy/pull/7560)
2083 * [`unnecessary_unwrap`]: Now also checks for `expect`s
2084 [#7584](https://github.com/rust-lang/rust-clippy/pull/7584)
2085 * [`disallowed_methods`]: Allow adding a reason that will be displayed with the
2086 lint message
2087 [#7621](https://github.com/rust-lang/rust-clippy/pull/7621)
2088 * [`approx_constant`]: Now checks the MSRV for `LOG10_2` and `LOG2_10`
2089 [#7629](https://github.com/rust-lang/rust-clippy/pull/7629)
2090 * [`approx_constant`]: Add `TAU`
2091 [#7642](https://github.com/rust-lang/rust-clippy/pull/7642)
2092 * [`needless_borrow`]: Now also lints on needless mutable borrows
2093 [#7657](https://github.com/rust-lang/rust-clippy/pull/7657)
2094 * [`missing_safety_doc`]: Now also lints on unsafe traits
2095 [#7734](https://github.com/rust-lang/rust-clippy/pull/7734)
2096
2097 ### False Positive Fixes
2098
2099 * [`manual_map`]: No longer lints when the option is borrowed in the match and
2100 also consumed in the arm
2101 [#7531](https://github.com/rust-lang/rust-clippy/pull/7531)
2102 * [`filter_next`]: No longer lints if `filter` method is not the
2103 `Iterator::filter` method
2104 [#7562](https://github.com/rust-lang/rust-clippy/pull/7562)
2105 * [`manual_flatten`]: No longer lints if expression is used after `if let`
2106 [#7566](https://github.com/rust-lang/rust-clippy/pull/7566)
2107 * [`option_if_let_else`]: Multiple fixes
2108 [#7573](https://github.com/rust-lang/rust-clippy/pull/7573)
2109 * `break` and `continue` statements local to the would-be closure are
2110 allowed
2111 * Don't lint in const contexts
2112 * Don't lint when yield expressions are used
2113 * Don't lint when the captures made by the would-be closure conflict with
2114 the other branch
2115 * Don't lint when a field of a local is used when the type could be
2116 potentially moved from
2117 * In some cases, don't lint when scrutinee expression conflicts with the
2118 captures of the would-be closure
2119 * [`redundant_allocation`]: No longer lints on `Box<Box<dyn T>>` which replaces
2120 wide pointers with thin pointers
2121 [#7592](https://github.com/rust-lang/rust-clippy/pull/7592)
2122 * [`bool_assert_comparison`]: No longer lints on types that do not implement the
2123 `Not` trait with `Output = bool`
2124 [#7605](https://github.com/rust-lang/rust-clippy/pull/7605)
2125 * [`mut_range_bound`]: No longer lints on range bound mutations, that are
2126 immediately followed by a `break;`
2127 [#7607](https://github.com/rust-lang/rust-clippy/pull/7607)
2128 * [`mutable_key_type`]: Improve accuracy and document remaining false positives
2129 and false negatives
2130 [#7640](https://github.com/rust-lang/rust-clippy/pull/7640)
2131 * [`redundant_closure`]: Rewrite the lint to fix various false positives and
2132 false negatives [#7661](https://github.com/rust-lang/rust-clippy/pull/7661)
2133 * [`large_enum_variant`]: No longer wrongly identifies the second largest
2134 variant [#7677](https://github.com/rust-lang/rust-clippy/pull/7677)
2135 * [`needless_return`]: No longer lints on let-else expressions
2136 [#7685](https://github.com/rust-lang/rust-clippy/pull/7685)
2137 * [`suspicious_else_formatting`]: No longer lints in proc-macros
2138 [#7707](https://github.com/rust-lang/rust-clippy/pull/7707)
2139 * [`excessive_precision`]: No longer lints when in some cases the float was
2140 already written in the shortest form
2141 [#7722](https://github.com/rust-lang/rust-clippy/pull/7722)
2142 * [`doc_markdown`]: No longer lints on intra-doc links
2143 [#7772](https://github.com/rust-lang/rust-clippy/pull/7772)
2144
2145 ### Suggestion Fixes/Improvements
2146
2147 * [`unnecessary_operation`]: Recommend using an `assert!` instead of using a
2148 function call in an indexing operation
2149 [#7453](https://github.com/rust-lang/rust-clippy/pull/7453)
2150 * [`manual_split_once`]: Produce semantically equivalent suggestion when
2151 `rsplitn` is used [#7663](https://github.com/rust-lang/rust-clippy/pull/7663)
2152 * [`while_let_on_iterator`]: Produce correct suggestion when using `&mut`
2153 [#7690](https://github.com/rust-lang/rust-clippy/pull/7690)
2154 * [`manual_assert`]: No better handles complex conditions
2155 [#7741](https://github.com/rust-lang/rust-clippy/pull/7741)
2156 * Correctly handle signs in exponents in numeric literals lints
2157 [#7747](https://github.com/rust-lang/rust-clippy/pull/7747)
2158 * [`suspicious_map`]: Now also suggests to use `inspect` as an alternative
2159 [#7770](https://github.com/rust-lang/rust-clippy/pull/7770)
2160 * Drop exponent from suggestion if it is 0 in numeric literals lints
2161 [#7774](https://github.com/rust-lang/rust-clippy/pull/7774)
2162
2163 ### ICE Fixes
2164
2165 * [`implicit_hasher`]
2166 [#7761](https://github.com/rust-lang/rust-clippy/pull/7761)
2167
2168 ### Others
2169
2170 * Clippy now uses the 2021
2171 [Edition!](https://www.youtube.com/watch?v=q0aNduqb2Ro)
2172 [#7664](https://github.com/rust-lang/rust-clippy/pull/7664)
2173
2174 ## Rust 1.56
2175
2176 Released 2021-10-21
2177
2178 [View all 38 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-07-19T14%3A33%3A33Z..2021-08-12T09%3A28%3A38Z+base%3Amaster)
2179
2180 ### New Lints
2181
2182 * [`unwrap_or_else_default`]
2183 [#7516](https://github.com/rust-lang/rust-clippy/pull/7516)
2184
2185 ### Enhancements
2186
2187 * [`needless_continue`]: Now also lints in `loop { continue; }` case
2188 [#7477](https://github.com/rust-lang/rust-clippy/pull/7477)
2189 * [`disallowed_types`]: Now also primitive types can be disallowed
2190 [#7488](https://github.com/rust-lang/rust-clippy/pull/7488)
2191 * [`manual_swap`]: Now also lints on xor swaps
2192 [#7506](https://github.com/rust-lang/rust-clippy/pull/7506)
2193 * [`map_flatten`]: Now also lints on the `Result` type
2194 [#7522](https://github.com/rust-lang/rust-clippy/pull/7522)
2195 * [`no_effect`]: Now also lints on inclusive ranges
2196 [#7556](https://github.com/rust-lang/rust-clippy/pull/7556)
2197
2198 ### False Positive Fixes
2199
2200 * [`nonstandard_macro_braces`]: No longer lints on similar named nested macros
2201 [#7478](https://github.com/rust-lang/rust-clippy/pull/7478)
2202 * [`too_many_lines`]: No longer lints in closures to avoid duplicated diagnostics
2203 [#7534](https://github.com/rust-lang/rust-clippy/pull/7534)
2204 * [`similar_names`]: No longer complains about `iter` and `item` being too
2205 similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546)
2206
2207 ### Suggestion Fixes/Improvements
2208
2209 * [`similar_names`]: No longer suggests to insert or add an underscore as a fix
2210 [#7221](https://github.com/rust-lang/rust-clippy/pull/7221)
2211 * [`new_without_default`]: No longer shows the full qualified type path when
2212 suggesting adding a `Default` implementation
2213 [#7493](https://github.com/rust-lang/rust-clippy/pull/7493)
2214 * [`while_let_on_iterator`]: Now suggests re-borrowing mutable references
2215 [#7520](https://github.com/rust-lang/rust-clippy/pull/7520)
2216 * [`extend_with_drain`]: Improve code suggestion for mutable and immutable
2217 references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533)
2218 * [`trivially_copy_pass_by_ref`]: Now properly handles `Self` type
2219 [#7535](https://github.com/rust-lang/rust-clippy/pull/7535)
2220 * [`never_loop`]: Now suggests using `if let` instead of a `for` loop when
2221 applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541)
2222
2223 ### Documentation Improvements
2224
2225 * Clippy now uses a lint to generate its lint documentation. [Lints all the way
2226 down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down).
2227 [#7502](https://github.com/rust-lang/rust-clippy/pull/7502)
2228 * Reworked Clippy's website:
2229 [#7172](https://github.com/rust-lang/rust-clippy/issues/7172)
2230 [#7279](https://github.com/rust-lang/rust-clippy/pull/7279)
2231 * Added applicability information about lints
2232 * Added a link to jump into the implementation
2233 * Improved loading times
2234 * Adapted some styling
2235 * `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag
2236 [#7492](https://github.com/rust-lang/rust-clippy/pull/7492)
2237 * [`unnested_or_patterns`]: Removed `or_patterns` feature gate in the code
2238 example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507)
2239
2240 ## Rust 1.55
2241
2242 Released 2021-09-09
2243
2244 [View all 83 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-06-03T07%3A23%3A59Z..2021-07-29T11%3A47%3A32Z+base%3Amaster)
2245
2246 ### Important Changes
2247
2248 * Stabilized `cargo clippy --fix` :tada:
2249 [#7405](https://github.com/rust-lang/rust-clippy/pull/7405)
2250
2251 ### New Lints
2252
2253 * [`rc_mutex`]
2254 [#7316](https://github.com/rust-lang/rust-clippy/pull/7316)
2255 * [`nonstandard_macro_braces`]
2256 [#7299](https://github.com/rust-lang/rust-clippy/pull/7299)
2257 * [`strlen_on_c_strings`]
2258 [#7243](https://github.com/rust-lang/rust-clippy/pull/7243)
2259 * [`self_named_constructors`]
2260 [#7403](https://github.com/rust-lang/rust-clippy/pull/7403)
2261 * [`disallowed_script_idents`]
2262 [#7400](https://github.com/rust-lang/rust-clippy/pull/7400)
2263 * [`disallowed_types`]
2264 [#7315](https://github.com/rust-lang/rust-clippy/pull/7315)
2265 * [`missing_enforced_import_renames`]
2266 [#7300](https://github.com/rust-lang/rust-clippy/pull/7300)
2267 * [`extend_with_drain`]
2268 [#7270](https://github.com/rust-lang/rust-clippy/pull/7270)
2269
2270 ### Moves and Deprecations
2271
2272 * Moved [`from_iter_instead_of_collect`] to `pedantic`
2273 [#7375](https://github.com/rust-lang/rust-clippy/pull/7375)
2274 * Added `suspicious` as a new lint group for *code that is most likely wrong or useless*
2275 [#7350](https://github.com/rust-lang/rust-clippy/pull/7350)
2276 * Moved [`blanket_clippy_restriction_lints`] to `suspicious`
2277 * Moved [`empty_loop`] to `suspicious`
2278 * Moved [`eval_order_dependence`] to `suspicious`
2279 * Moved [`float_equality_without_abs`] to `suspicious`
2280 * Moved [`for_loops_over_fallibles`] to `suspicious`
2281 * Moved [`misrefactored_assign_op`] to `suspicious`
2282 * Moved [`mut_range_bound`] to `suspicious`
2283 * Moved [`mutable_key_type`] to `suspicious`
2284 * Moved [`suspicious_arithmetic_impl`] to `suspicious`
2285 * Moved [`suspicious_assignment_formatting`] to `suspicious`
2286 * Moved [`suspicious_else_formatting`] to `suspicious`
2287 * Moved [`suspicious_map`] to `suspicious`
2288 * Moved [`suspicious_op_assign_impl`] to `suspicious`
2289 * Moved [`suspicious_unary_op_formatting`] to `suspicious`
2290
2291 ### Enhancements
2292
2293 * [`while_let_on_iterator`]: Now suggests `&mut iter` inside closures
2294 [#7262](https://github.com/rust-lang/rust-clippy/pull/7262)
2295 * [`doc_markdown`]:
2296 * Now detects unbalanced ticks
2297 [#7357](https://github.com/rust-lang/rust-clippy/pull/7357)
2298 * Add `FreeBSD` to the default configuration as an allowed identifier
2299 [#7334](https://github.com/rust-lang/rust-clippy/pull/7334)
2300 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]: Now allows wildcards for enums with unstable
2301 or hidden variants
2302 [#7407](https://github.com/rust-lang/rust-clippy/pull/7407)
2303 * [`redundant_allocation`]: Now additionally supports the `Arc<>` type
2304 [#7308](https://github.com/rust-lang/rust-clippy/pull/7308)
2305 * [`disallowed_names`]: Now allows disallowed names in test code
2306 [#7379](https://github.com/rust-lang/rust-clippy/pull/7379)
2307 * [`redundant_closure`]: Suggests `&mut` for `FnMut`
2308 [#7437](https://github.com/rust-lang/rust-clippy/pull/7437)
2309 * [`disallowed_methods`], [`disallowed_types`]: The configuration values `disallowed-method` and `disallowed-type`
2310 no longer require fully qualified paths
2311 [#7345](https://github.com/rust-lang/rust-clippy/pull/7345)
2312 * [`zst_offset`]: Fixed lint invocation after it was accidentally suppressed
2313 [#7396](https://github.com/rust-lang/rust-clippy/pull/7396)
2314
2315 ### False Positive Fixes
2316
2317 * [`default_numeric_fallback`]: No longer lints on float literals as function arguments
2318 [#7446](https://github.com/rust-lang/rust-clippy/pull/7446)
2319 * [`use_self`]: No longer lints on type parameters
2320 [#7288](https://github.com/rust-lang/rust-clippy/pull/7288)
2321 * [`unimplemented`]: Now ignores the `assert` and `debug_assert` macros
2322 [#7439](https://github.com/rust-lang/rust-clippy/pull/7439)
2323 * [`branches_sharing_code`]: Now always checks for block expressions
2324 [#7462](https://github.com/rust-lang/rust-clippy/pull/7462)
2325 * [`field_reassign_with_default`]: No longer triggers in macros
2326 [#7160](https://github.com/rust-lang/rust-clippy/pull/7160)
2327 * [`redundant_clone`]: No longer lints on required clones for borrowed data
2328 [#7346](https://github.com/rust-lang/rust-clippy/pull/7346)
2329 * [`default_numeric_fallback`]: No longer triggers in external macros
2330 [#7325](https://github.com/rust-lang/rust-clippy/pull/7325)
2331 * [`needless_bool`]: No longer lints in macros
2332 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
2333 * [`useless_format`]: No longer triggers when additional text is being appended
2334 [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
2335 * [`assertions_on_constants`]: `cfg!(...)` is no longer considered to be a constant
2336 [#7319](https://github.com/rust-lang/rust-clippy/pull/7319)
2337
2338 ### Suggestion Fixes/Improvements
2339
2340 * [`needless_collect`]: Now show correct lint messages for shadowed values
2341 [#7289](https://github.com/rust-lang/rust-clippy/pull/7289)
2342 * [`wrong_pub_self_convention`]: The deprecated message now suggest the correct configuration value
2343 [#7382](https://github.com/rust-lang/rust-clippy/pull/7382)
2344 * [`semicolon_if_nothing_returned`]: Allow missing semicolon in blocks with only one expression
2345 [#7326](https://github.com/rust-lang/rust-clippy/pull/7326)
2346
2347 ### ICE Fixes
2348
2349 * [`zero_sized_map_values`]
2350 [#7470](https://github.com/rust-lang/rust-clippy/pull/7470)
2351 * [`redundant_pattern_matching`]
2352 [#7471](https://github.com/rust-lang/rust-clippy/pull/7471)
2353 * [`modulo_one`]
2354 [#7473](https://github.com/rust-lang/rust-clippy/pull/7473)
2355 * [`use_self`]
2356 [#7428](https://github.com/rust-lang/rust-clippy/pull/7428)
2357
2358 ## Rust 1.54
2359
2360 Released 2021-07-29
2361
2362 [View all 74 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-04-27T23%3A51%3A18Z..2021-06-03T06%3A54%3A07Z+base%3Amaster)
2363
2364 ### New Lints
2365
2366 - [`ref_binding_to_reference`]
2367 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
2368 - [`needless_bitwise_bool`]
2369 [#7133](https://github.com/rust-lang/rust-clippy/pull/7133)
2370 - [`unused_async`] [#7225](https://github.com/rust-lang/rust-clippy/pull/7225)
2371 - [`manual_str_repeat`]
2372 [#7265](https://github.com/rust-lang/rust-clippy/pull/7265)
2373 - [`suspicious_splitn`]
2374 [#7292](https://github.com/rust-lang/rust-clippy/pull/7292)
2375
2376 ### Moves and Deprecations
2377
2378 - Deprecate `pub_enum_variant_names` and `wrong_pub_self_convention` in favor of
2379 the new `avoid-breaking-exported-api` config option (see
2380 [Enhancements](#1-54-enhancements))
2381 [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
2382 - Move [`inconsistent_struct_constructor`] to `pedantic`
2383 [#7193](https://github.com/rust-lang/rust-clippy/pull/7193)
2384 - Move [`needless_borrow`] to `style` (now warn-by-default)
2385 [#7254](https://github.com/rust-lang/rust-clippy/pull/7254)
2386 - Move [`suspicious_operation_groupings`] to `nursery`
2387 [#7266](https://github.com/rust-lang/rust-clippy/pull/7266)
2388 - Move [`semicolon_if_nothing_returned`] to `pedantic`
2389 [#7268](https://github.com/rust-lang/rust-clippy/pull/7268)
2390
2391 ### Enhancements <a name="1-54-enhancements"></a>
2392
2393 - [`while_let_on_iterator`]: Now also lints in nested loops
2394 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
2395 - [`single_char_pattern`]: Now also lints on `strip_prefix` and `strip_suffix`
2396 [#7156](https://github.com/rust-lang/rust-clippy/pull/7156)
2397 - [`needless_collect`]: Now also lints on assignments with type annotations
2398 [#7163](https://github.com/rust-lang/rust-clippy/pull/7163)
2399 - [`if_then_some_else_none`]: Now works with the MSRV config
2400 [#7177](https://github.com/rust-lang/rust-clippy/pull/7177)
2401 - Add `avoid-breaking-exported-api` config option for the lints
2402 [`enum_variant_names`], [`large_types_passed_by_value`],
2403 [`trivially_copy_pass_by_ref`], [`unnecessary_wraps`],
2404 [`upper_case_acronyms`], and [`wrong_self_convention`]. We recommend to set
2405 this configuration option to `false` before a major release (1.0/2.0/...) to
2406 clean up the API [#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
2407 - [`needless_collect`]: Now lints on even more data structures
2408 [#7188](https://github.com/rust-lang/rust-clippy/pull/7188)
2409 - [`missing_docs_in_private_items`]: No longer sees `#[<name> = "<value>"]` like
2410 attributes as sufficient documentation
2411 [#7281](https://github.com/rust-lang/rust-clippy/pull/7281)
2412 - [`needless_collect`], [`short_circuit_statement`], [`unnecessary_operation`]:
2413 Now work as expected when used with `allow`
2414 [#7282](https://github.com/rust-lang/rust-clippy/pull/7282)
2415
2416 ### False Positive Fixes
2417
2418 - [`implicit_return`]: Now takes all diverging functions in account to avoid
2419 false positives [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
2420 - [`while_let_on_iterator`]: No longer lints when the iterator is a struct field
2421 and the struct is used in the loop
2422 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
2423 - [`multiple_inherent_impl`]: No longer lints with generic arguments
2424 [#7089](https://github.com/rust-lang/rust-clippy/pull/7089)
2425 - [`comparison_chain`]: No longer lints in a `const` context
2426 [#7118](https://github.com/rust-lang/rust-clippy/pull/7118)
2427 - [`while_immutable_condition`]: Fix false positive where mutation in the loop
2428 variable wasn't picked up
2429 [#7144](https://github.com/rust-lang/rust-clippy/pull/7144)
2430 - [`default_trait_access`]: No longer lints in macros
2431 [#7150](https://github.com/rust-lang/rust-clippy/pull/7150)
2432 - [`needless_question_mark`]: No longer lints when the inner value is implicitly
2433 dereferenced [#7165](https://github.com/rust-lang/rust-clippy/pull/7165)
2434 - [`unused_unit`]: No longer lints when multiple macro contexts are involved
2435 [#7167](https://github.com/rust-lang/rust-clippy/pull/7167)
2436 - [`eval_order_dependence`]: Fix false positive in async context
2437 [#7174](https://github.com/rust-lang/rust-clippy/pull/7174)
2438 - [`unnecessary_filter_map`]: No longer lints if the `filter_map` changes the
2439 type [#7175](https://github.com/rust-lang/rust-clippy/pull/7175)
2440 - [`wrong_self_convention`]: No longer lints in trait implementations of
2441 non-`Copy` types [#7182](https://github.com/rust-lang/rust-clippy/pull/7182)
2442 - [`suboptimal_flops`]: No longer lints on `powi(2)`
2443 [#7201](https://github.com/rust-lang/rust-clippy/pull/7201)
2444 - [`wrong_self_convention`]: No longer lints if there is no implicit `self`
2445 [#7215](https://github.com/rust-lang/rust-clippy/pull/7215)
2446 - [`option_if_let_else`]: No longer lints on `else if let` pattern
2447 [#7216](https://github.com/rust-lang/rust-clippy/pull/7216)
2448 - [`use_self`], [`useless_conversion`]: Fix false positives when generic
2449 arguments are involved
2450 [#7223](https://github.com/rust-lang/rust-clippy/pull/7223)
2451 - [`manual_unwrap_or`]: Fix false positive with deref coercion
2452 [#7233](https://github.com/rust-lang/rust-clippy/pull/7233)
2453 - [`similar_names`]: No longer lints on `wparam`/`lparam`
2454 [#7255](https://github.com/rust-lang/rust-clippy/pull/7255)
2455 - [`redundant_closure`]: No longer lints on using the `vec![]` macro in a
2456 closure [#7263](https://github.com/rust-lang/rust-clippy/pull/7263)
2457
2458 ### Suggestion Fixes/Improvements
2459
2460 - [`implicit_return`]
2461 [#6951](https://github.com/rust-lang/rust-clippy/pull/6951)
2462 - Fix suggestion for async functions
2463 - Improve suggestion with macros
2464 - Suggest to change `break` to `return` when appropriate
2465 - [`while_let_on_iterator`]: Now suggests `&mut iter` when necessary
2466 [#6966](https://github.com/rust-lang/rust-clippy/pull/6966)
2467 - [`match_single_binding`]: Improve suggestion when match scrutinee has side
2468 effects [#7095](https://github.com/rust-lang/rust-clippy/pull/7095)
2469 - [`needless_borrow`]: Now suggests to also change usage sites as needed
2470 [#7105](https://github.com/rust-lang/rust-clippy/pull/7105)
2471 - [`write_with_newline`]: Improve suggestion when only `\n` is written to the
2472 buffer [#7183](https://github.com/rust-lang/rust-clippy/pull/7183)
2473 - [`from_iter_instead_of_collect`]: The suggestion is now auto applicable also
2474 when a `<_ as Trait>::_` is involved
2475 [#7264](https://github.com/rust-lang/rust-clippy/pull/7264)
2476 - [`not_unsafe_ptr_arg_deref`]: Improved error message
2477 [#7294](https://github.com/rust-lang/rust-clippy/pull/7294)
2478
2479 ### ICE Fixes
2480
2481 - Fix ICE when running Clippy on `libstd`
2482 [#7140](https://github.com/rust-lang/rust-clippy/pull/7140)
2483 - [`implicit_return`]
2484 [#7242](https://github.com/rust-lang/rust-clippy/pull/7242)
2485
2486 ## Rust 1.53
2487
2488 Released 2021-06-17
2489
2490 [View all 126 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-03-12T22%3A49%3A20Z..2021-04-27T14%3A38%3A20Z+base%3Amaster)
2491
2492 ### New Lints
2493
2494 * [`option_filter_map`]
2495 [#6342](https://github.com/rust-lang/rust-clippy/pull/6342)
2496 * [`branches_sharing_code`]
2497 [#6463](https://github.com/rust-lang/rust-clippy/pull/6463)
2498 * [`needless_for_each`]
2499 [#6706](https://github.com/rust-lang/rust-clippy/pull/6706)
2500 * [`if_then_some_else_none`]
2501 [#6859](https://github.com/rust-lang/rust-clippy/pull/6859)
2502 * [`non_octal_unix_permissions`]
2503 [#7001](https://github.com/rust-lang/rust-clippy/pull/7001)
2504 * [`unnecessary_self_imports`]
2505 [#7072](https://github.com/rust-lang/rust-clippy/pull/7072)
2506 * [`bool_assert_comparison`]
2507 [#7083](https://github.com/rust-lang/rust-clippy/pull/7083)
2508 * [`cloned_instead_of_copied`]
2509 [#7098](https://github.com/rust-lang/rust-clippy/pull/7098)
2510 * [`flat_map_option`]
2511 [#7101](https://github.com/rust-lang/rust-clippy/pull/7101)
2512
2513 ### Moves and Deprecations
2514
2515 * Deprecate [`filter_map`] lint
2516 [#7059](https://github.com/rust-lang/rust-clippy/pull/7059)
2517 * Move [`transmute_ptr_to_ptr`] to `pedantic`
2518 [#7102](https://github.com/rust-lang/rust-clippy/pull/7102)
2519
2520 ### Enhancements
2521
2522 * [`mem_replace_with_default`]: Also lint on common std constructors
2523 [#6820](https://github.com/rust-lang/rust-clippy/pull/6820)
2524 * [`wrong_self_convention`]: Also lint on `to_*_mut` methods
2525 [#6828](https://github.com/rust-lang/rust-clippy/pull/6828)
2526 * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]:
2527 [#6863](https://github.com/rust-lang/rust-clippy/pull/6863)
2528 * Attempt to find a common path prefix in suggestion
2529 * Don't lint on `Option` and `Result`
2530 * Consider `Self` prefix
2531 * [`explicit_deref_methods`]: Also lint on chained `deref` calls
2532 [#6865](https://github.com/rust-lang/rust-clippy/pull/6865)
2533 * [`or_fun_call`]: Also lint on `unsafe` blocks
2534 [#6928](https://github.com/rust-lang/rust-clippy/pull/6928)
2535 * [`vec_box`], [`linkedlist`], [`option_option`]: Also lint in `const` and
2536 `static` items [#6938](https://github.com/rust-lang/rust-clippy/pull/6938)
2537 * [`search_is_some`]: Also check for `is_none`
2538 [#6942](https://github.com/rust-lang/rust-clippy/pull/6942)
2539 * [`string_lit_as_bytes`]: Also lint on `into_bytes`
2540 [#6959](https://github.com/rust-lang/rust-clippy/pull/6959)
2541 * [`len_without_is_empty`]: Also lint if function signatures of `len` and
2542 `is_empty` don't match
2543 [#6980](https://github.com/rust-lang/rust-clippy/pull/6980)
2544 * [`redundant_pattern_matching`]: Also lint if the pattern is a `&` pattern
2545 [#6991](https://github.com/rust-lang/rust-clippy/pull/6991)
2546 * [`clone_on_copy`]: Also lint on chained method calls taking `self` by value
2547 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
2548 * [`missing_panics_doc`]: Also lint on `assert_eq!` and `assert_ne!`
2549 [#7029](https://github.com/rust-lang/rust-clippy/pull/7029)
2550 * [`needless_return`]: Also lint in `async` functions
2551 [#7067](https://github.com/rust-lang/rust-clippy/pull/7067)
2552 * [`unused_io_amount`]: Also lint on expressions like `_.read().ok()?`
2553 [#7100](https://github.com/rust-lang/rust-clippy/pull/7100)
2554 * [`iter_cloned_collect`]: Also lint on large arrays, since const-generics are
2555 now stable [#7138](https://github.com/rust-lang/rust-clippy/pull/7138)
2556
2557 ### False Positive Fixes
2558
2559 * [`upper_case_acronyms`]: No longer lints on public items
2560 [#6805](https://github.com/rust-lang/rust-clippy/pull/6805)
2561 * [`suspicious_map`]: No longer lints when side effects may occur inside the
2562 `map` call [#6831](https://github.com/rust-lang/rust-clippy/pull/6831)
2563 * [`manual_map`], [`manual_unwrap_or`]: No longer lints in `const` functions
2564 [#6917](https://github.com/rust-lang/rust-clippy/pull/6917)
2565 * [`wrong_self_convention`]: Now respects `Copy` types
2566 [#6924](https://github.com/rust-lang/rust-clippy/pull/6924)
2567 * [`needless_question_mark`]: No longer lints if the `?` and the `Some(..)` come
2568 from different macro contexts [#6935](https://github.com/rust-lang/rust-clippy/pull/6935)
2569 * [`map_entry`]: Better detect if the entry API can be used
2570 [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
2571 * [`or_fun_call`]: No longer lints on some `len` function calls
2572 [#6950](https://github.com/rust-lang/rust-clippy/pull/6950)
2573 * [`new_ret_no_self`]: No longer lints when `Self` is returned with different
2574 generic arguments [#6952](https://github.com/rust-lang/rust-clippy/pull/6952)
2575 * [`upper_case_acronyms`]: No longer lints on public items
2576 [#6981](https://github.com/rust-lang/rust-clippy/pull/6981)
2577 * [`explicit_into_iter_loop`]: Only lint when `into_iter` is an implementation
2578 of `IntoIterator` [#6982](https://github.com/rust-lang/rust-clippy/pull/6982)
2579 * [`expl_impl_clone_on_copy`]: Take generic constraints into account before
2580 suggesting to use `derive` instead
2581 [#6993](https://github.com/rust-lang/rust-clippy/pull/6993)
2582 * [`missing_panics_doc`]: No longer lints when only debug-assertions are used
2583 [#6996](https://github.com/rust-lang/rust-clippy/pull/6996)
2584 * [`clone_on_copy`]: Only lint when using the `Clone` trait
2585 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
2586 * [`wrong_self_convention`]: No longer lints inside a trait implementation
2587 [#7002](https://github.com/rust-lang/rust-clippy/pull/7002)
2588 * [`redundant_clone`]: No longer lints when the cloned value is modified while
2589 the clone is in use
2590 [#7011](https://github.com/rust-lang/rust-clippy/pull/7011)
2591 * [`same_item_push`]: No longer lints if the `Vec` is used in the loop body
2592 [#7018](https://github.com/rust-lang/rust-clippy/pull/7018)
2593 * [`cargo_common_metadata`]: Remove author requirement
2594 [#7026](https://github.com/rust-lang/rust-clippy/pull/7026)
2595 * [`panic_in_result_fn`]: No longer lints on `debug_assert` family
2596 [#7060](https://github.com/rust-lang/rust-clippy/pull/7060)
2597 * [`panic`]: No longer wrongfully lints on `debug_assert` with message
2598 [#7063](https://github.com/rust-lang/rust-clippy/pull/7063)
2599 * [`wrong_self_convention`]: No longer lints in trait implementations where no
2600 `self` is involved [#7064](https://github.com/rust-lang/rust-clippy/pull/7064)
2601 * [`missing_const_for_fn`]: No longer lints when unstable `const` function is
2602 involved [#7076](https://github.com/rust-lang/rust-clippy/pull/7076)
2603 * [`suspicious_else_formatting`]: Allow Allman style braces
2604 [#7087](https://github.com/rust-lang/rust-clippy/pull/7087)
2605 * [`inconsistent_struct_constructor`]: No longer lints in macros
2606 [#7097](https://github.com/rust-lang/rust-clippy/pull/7097)
2607 * [`single_component_path_imports`]: No longer lints on macro re-exports
2608 [#7120](https://github.com/rust-lang/rust-clippy/pull/7120)
2609
2610 ### Suggestion Fixes/Improvements
2611
2612 * [`redundant_pattern_matching`]: Add a note when applying this lint would
2613 change the drop order
2614 [#6568](https://github.com/rust-lang/rust-clippy/pull/6568)
2615 * [`write_literal`], [`print_literal`]: Add auto-applicable suggestion
2616 [#6821](https://github.com/rust-lang/rust-clippy/pull/6821)
2617 * [`manual_map`]: Fix suggestion for complex `if let ... else` chains
2618 [#6856](https://github.com/rust-lang/rust-clippy/pull/6856)
2619 * [`inconsistent_struct_constructor`]: Make lint description and message clearer
2620 [#6892](https://github.com/rust-lang/rust-clippy/pull/6892)
2621 * [`map_entry`]: Now suggests `or_insert`, `insert_with` or `match _.entry(_)`
2622 as appropriate [#6937](https://github.com/rust-lang/rust-clippy/pull/6937)
2623 * [`manual_flatten`]: Suggest to insert `copied` if necessary
2624 [#6962](https://github.com/rust-lang/rust-clippy/pull/6962)
2625 * [`redundant_slicing`]: Fix suggestion when a re-borrow might be required or
2626 when the value is from a macro call
2627 [#6975](https://github.com/rust-lang/rust-clippy/pull/6975)
2628 * [`match_wildcard_for_single_variants`]: Fix suggestion for hidden variant
2629 [#6988](https://github.com/rust-lang/rust-clippy/pull/6988)
2630 * [`clone_on_copy`]: Correct suggestion when the cloned value is a macro call
2631 [#7000](https://github.com/rust-lang/rust-clippy/pull/7000)
2632 * [`manual_map`]: Fix suggestion at the end of an if chain
2633 [#7004](https://github.com/rust-lang/rust-clippy/pull/7004)
2634 * Fix needless parenthesis output in multiple lint suggestions
2635 [#7013](https://github.com/rust-lang/rust-clippy/pull/7013)
2636 * [`needless_collect`]: Better explanation in the lint message
2637 [#7020](https://github.com/rust-lang/rust-clippy/pull/7020)
2638 * [`useless_vec`]: Now considers mutability
2639 [#7036](https://github.com/rust-lang/rust-clippy/pull/7036)
2640 * [`useless_format`]: Wrap the content in braces if necessary
2641 [#7092](https://github.com/rust-lang/rust-clippy/pull/7092)
2642 * [`single_match`]: Don't suggest an equality check for types which don't
2643 implement `PartialEq`
2644 [#7093](https://github.com/rust-lang/rust-clippy/pull/7093)
2645 * [`from_over_into`]: Mention type in help message
2646 [#7099](https://github.com/rust-lang/rust-clippy/pull/7099)
2647 * [`manual_unwrap_or`]: Fix invalid code suggestion due to a macro call
2648 [#7136](https://github.com/rust-lang/rust-clippy/pull/7136)
2649
2650 ### ICE Fixes
2651
2652 * [`macro_use_imports`]
2653 [#7022](https://github.com/rust-lang/rust-clippy/pull/7022)
2654 * [`missing_panics_doc`]
2655 [#7034](https://github.com/rust-lang/rust-clippy/pull/7034)
2656 * [`tabs_in_doc_comments`]
2657 [#7039](https://github.com/rust-lang/rust-clippy/pull/7039)
2658 * [`missing_const_for_fn`]
2659 [#7128](https://github.com/rust-lang/rust-clippy/pull/7128)
2660
2661 ### Others
2662
2663 * [Clippy's lint
2664 list](https://rust-lang.github.io/rust-clippy/master/index.html) now supports
2665 themes [#7030](https://github.com/rust-lang/rust-clippy/pull/7030)
2666 * Lints that were uplifted to `rustc` now mention the new `rustc` name in the
2667 deprecation warning
2668 [#7056](https://github.com/rust-lang/rust-clippy/pull/7056)
2669
2670 ## Rust 1.52
2671
2672 Released 2021-05-06
2673
2674 [View all 102 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2021-02-03T15%3A59%3A06Z..2021-03-11T20%3A06%3A43Z+base%3Amaster)
2675
2676 ### New Lints
2677
2678 * [`from_str_radix_10`]
2679 [#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
2680 * [`implicit_clone`]
2681 [#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
2682 * [`semicolon_if_nothing_returned`]
2683 [#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
2684 * [`manual_flatten`]
2685 [#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
2686 * [`inconsistent_struct_constructor`]
2687 [#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
2688 * [`iter_count`]
2689 [#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
2690 * [`default_numeric_fallback`]
2691 [#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
2692 * [`bytes_nth`]
2693 [#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
2694 * [`filter_map_identity`]
2695 [#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
2696 * [`manual_map`]
2697 [#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
2698
2699 ### Moves and Deprecations
2700
2701 * Moved [`upper_case_acronyms`] to `pedantic`
2702 [#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
2703 * Moved [`manual_map`] to `nursery`
2704 [#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
2705 * Moved [`unnecessary_wraps`] to `pedantic`
2706 [#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
2707 * Moved [`trivial_regex`] to `nursery`
2708 [#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
2709 * Moved [`naive_bytecount`] to `pedantic`
2710 [#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
2711 * Moved [`upper_case_acronyms`] to `style`
2712 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
2713 * Moved [`manual_map`] to `style`
2714 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
2715
2716 ### Enhancements
2717
2718 * [`disallowed_methods`]: Now supports functions in addition to methods
2719 [#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
2720 * [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
2721 trigger the lint if there is more than one uppercase character next to each other
2722 [#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
2723 * [`collapsible_match`]: Now supports block comparison with different value names
2724 [#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
2725 * [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
2726 [#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
2727 * Improved value usage detection in closures
2728 [#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
2729
2730 ### False Positive Fixes
2731
2732 * [`use_self`]: No longer lints in macros
2733 [#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
2734 * [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
2735 [#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
2736 * [`missing_inline_in_public_items`]: No longer lints for procedural macros
2737 [#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
2738 * [`inherent_to_string`]: No longer lints on functions with function generics
2739 [#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
2740 * [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
2741 [#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
2742 * [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
2743 [#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
2744 * [`collapsible_if`]: No longer lints on if statements with attributes
2745 [#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
2746 * [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
2747 [#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
2748 * [`redundant_closure`]: Now ignores macros
2749 [#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
2750 * [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
2751 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
2752 * [`vec_init_then_push`]: Fixed false positives for loops and if statements
2753 [#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
2754 * [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
2755 the `len` method as well as the type definition.
2756 [#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
2757 * [`let_underscore_drop`]: Only lints on types which implement `Drop`
2758 [#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
2759 * [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
2760 [#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
2761 * [`cargo_common_metadata`]: No longer lints if
2762 [`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
2763 is defined in the manifest
2764 [#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
2765
2766 ### Suggestion Fixes/Improvements
2767
2768 * [`collapsible_match`]: Fixed lint message capitalization
2769 [#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
2770 * [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
2771 [#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
2772 * [`manual_map`]: No longer expands macros in the suggestions
2773 [#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
2774 * Aligned Clippy's lint messages with the rustc dev guide
2775 [#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
2776
2777 ### ICE Fixes
2778
2779 * [`zero_sized_map_values`]
2780 [#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
2781
2782 ### Documentation Improvements
2783
2784 * [`useless_format`]: Improved the documentation example
2785 [#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
2786 * Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
2787 [#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
2788
2789 ### Others
2790 * Running `cargo clippy` after `cargo check` now works as expected
2791 (`cargo clippy` and `cargo check` no longer shares the same build cache)
2792 [#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
2793 * Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
2794 [#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
2795 * Extracted Clippy's `utils` module into the new `clippy_utils` crate
2796 [#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
2797 * Clippy lintcheck tool improvements
2798 [#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
2799 [#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
2800 [#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
2801 [#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
2802 [#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
2803 [#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
2804
2805 ## Rust 1.51
2806
2807 Released 2021-03-25
2808
2809 [View all 78 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-12-21T15%3A43%3A04Z..2021-02-03T04%3A21%3A10Z+base%3Amaster)
2810
2811 ### New Lints
2812
2813 * [`upper_case_acronyms`]
2814 [#6475](https://github.com/rust-lang/rust-clippy/pull/6475)
2815 * [`from_over_into`] [#6476](https://github.com/rust-lang/rust-clippy/pull/6476)
2816 * [`case_sensitive_file_extension_comparisons`]
2817 [#6500](https://github.com/rust-lang/rust-clippy/pull/6500)
2818 * [`needless_question_mark`]
2819 [#6507](https://github.com/rust-lang/rust-clippy/pull/6507)
2820 * [`missing_panics_doc`]
2821 [#6523](https://github.com/rust-lang/rust-clippy/pull/6523)
2822 * [`redundant_slicing`]
2823 [#6528](https://github.com/rust-lang/rust-clippy/pull/6528)
2824 * [`vec_init_then_push`]
2825 [#6538](https://github.com/rust-lang/rust-clippy/pull/6538)
2826 * [`ptr_as_ptr`] [#6542](https://github.com/rust-lang/rust-clippy/pull/6542)
2827 * [`collapsible_else_if`] (split out from `collapsible_if`)
2828 [#6544](https://github.com/rust-lang/rust-clippy/pull/6544)
2829 * [`inspect_for_each`] [#6577](https://github.com/rust-lang/rust-clippy/pull/6577)
2830 * [`manual_filter_map`]
2831 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
2832 * [`exhaustive_enums`]
2833 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
2834 * [`exhaustive_structs`]
2835 [#6617](https://github.com/rust-lang/rust-clippy/pull/6617)
2836
2837 ### Moves and Deprecations
2838
2839 * Replace [`find_map`] with [`manual_find_map`]
2840 [#6591](https://github.com/rust-lang/rust-clippy/pull/6591)
2841 * `unknown_clippy_lints` Now integrated in the `unknown_lints` rustc lint
2842 [#6653](https://github.com/rust-lang/rust-clippy/pull/6653)
2843
2844 ### Enhancements
2845
2846 * [`ptr_arg`] Now also suggests to use `&Path` instead of `&PathBuf`
2847 [#6506](https://github.com/rust-lang/rust-clippy/pull/6506)
2848 * [`cast_ptr_alignment`] Also lint when the `pointer::cast` method is used
2849 [#6557](https://github.com/rust-lang/rust-clippy/pull/6557)
2850 * [`collapsible_match`] Now also deals with `&` and `*` operators in the `match`
2851 scrutinee [#6619](https://github.com/rust-lang/rust-clippy/pull/6619)
2852
2853 ### False Positive Fixes
2854
2855 * [`similar_names`] Ignore underscore prefixed names
2856 [#6403](https://github.com/rust-lang/rust-clippy/pull/6403)
2857 * [`print_literal`] and [`write_literal`] No longer lint numeric literals
2858 [#6408](https://github.com/rust-lang/rust-clippy/pull/6408)
2859 * [`large_enum_variant`] No longer lints in external macros
2860 [#6485](https://github.com/rust-lang/rust-clippy/pull/6485)
2861 * [`empty_enum`] Only lint if `never_type` feature is enabled
2862 [#6513](https://github.com/rust-lang/rust-clippy/pull/6513)
2863 * [`field_reassign_with_default`] No longer lints in macros
2864 [#6553](https://github.com/rust-lang/rust-clippy/pull/6553)
2865 * [`size_of_in_element_count`] No longer lints when dividing by element size
2866 [#6578](https://github.com/rust-lang/rust-clippy/pull/6578)
2867 * [`needless_return`] No longer lints in macros
2868 [#6586](https://github.com/rust-lang/rust-clippy/pull/6586)
2869 * [`match_overlapping_arm`] No longer lint when first arm is completely included
2870 in second arm [#6603](https://github.com/rust-lang/rust-clippy/pull/6603)
2871 * [`doc_markdown`] Add `WebGL` to the default configuration as an allowed
2872 identifier [#6605](https://github.com/rust-lang/rust-clippy/pull/6605)
2873
2874 ### Suggestion Fixes/Improvements
2875
2876 * [`field_reassign_with_default`] Don't expand macro in lint suggestion
2877 [#6531](https://github.com/rust-lang/rust-clippy/pull/6531)
2878 * [`match_like_matches_macro`] Strip references in suggestion
2879 [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
2880 * [`single_match`] Suggest `if` over `if let` when possible
2881 [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
2882 * `ref_in_deref` Use parentheses correctly in suggestion
2883 [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
2884 * [`stable_sort_primitive`] Clarify error message
2885 [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
2886
2887 ### ICE Fixes
2888
2889 * [`zero_sized_map_values`]
2890 [#6582](https://github.com/rust-lang/rust-clippy/pull/6582)
2891
2892 ### Documentation Improvements
2893
2894 * Improve search performance on the Clippy website and make it possible to
2895 directly search for lints on the GitHub issue tracker
2896 [#6483](https://github.com/rust-lang/rust-clippy/pull/6483)
2897 * Clean up `README.md` by removing outdated paragraph
2898 [#6488](https://github.com/rust-lang/rust-clippy/pull/6488)
2899 * [`await_holding_refcell_ref`] and [`await_holding_lock`]
2900 [#6585](https://github.com/rust-lang/rust-clippy/pull/6585)
2901 * [`as_conversions`] [#6608](https://github.com/rust-lang/rust-clippy/pull/6608)
2902
2903 ### Others
2904
2905 * Clippy now has a [Roadmap] for 2021. If you like to get involved in a bigger
2906 project, take a look at the [Roadmap project page]. All issues listed there
2907 are actively mentored
2908 [#6462](https://github.com/rust-lang/rust-clippy/pull/6462)
2909 * The Clippy version number now corresponds to the Rust version number
2910 [#6526](https://github.com/rust-lang/rust-clippy/pull/6526)
2911 * Fix oversight which caused Clippy to lint deps in some environments, where
2912 `CLIPPY_TESTS=true` was set somewhere
2913 [#6575](https://github.com/rust-lang/rust-clippy/pull/6575)
2914 * Add `cargo dev-lintcheck` tool to the Clippy Dev Tool
2915 [#6469](https://github.com/rust-lang/rust-clippy/pull/6469)
2916
2917 [Roadmap]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/proposals/roadmap-2021.md
2918 [Roadmap project page]: https://github.com/rust-lang/rust-clippy/projects/3
2919
2920 ## Rust 1.50
2921
2922 Released 2021-02-11
2923
2924 [View all 119 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-11-06T18%3A32%3A40Z..2021-01-03T14%3A51%3A18Z+base%3Amaster)
2925
2926 ### New Lints
2927
2928 * [`suspicious_operation_groupings`] [#6086](https://github.com/rust-lang/rust-clippy/pull/6086)
2929 * [`size_of_in_element_count`] [#6394](https://github.com/rust-lang/rust-clippy/pull/6394)
2930 * [`unnecessary_wraps`] [#6070](https://github.com/rust-lang/rust-clippy/pull/6070)
2931 * [`let_underscore_drop`] [#6305](https://github.com/rust-lang/rust-clippy/pull/6305)
2932 * [`collapsible_match`] [#6402](https://github.com/rust-lang/rust-clippy/pull/6402)
2933 * [`redundant_else`] [#6330](https://github.com/rust-lang/rust-clippy/pull/6330)
2934 * [`zero_sized_map_values`] [#6218](https://github.com/rust-lang/rust-clippy/pull/6218)
2935 * [`print_stderr`] [#6367](https://github.com/rust-lang/rust-clippy/pull/6367)
2936 * [`string_from_utf8_as_bytes`] [#6134](https://github.com/rust-lang/rust-clippy/pull/6134)
2937
2938 ### Moves and Deprecations
2939
2940 * Previously deprecated [`str_to_string`] and [`string_to_string`] have been un-deprecated
2941 as `restriction` lints [#6333](https://github.com/rust-lang/rust-clippy/pull/6333)
2942 * Deprecate `panic_params` lint. This is now available in rustc as `non_fmt_panics`
2943 [#6351](https://github.com/rust-lang/rust-clippy/pull/6351)
2944 * Move [`map_err_ignore`] to `restriction`
2945 [#6416](https://github.com/rust-lang/rust-clippy/pull/6416)
2946 * Move [`await_holding_refcell_ref`] to `pedantic`
2947 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
2948 * Move [`await_holding_lock`] to `pedantic`
2949 [#6354](https://github.com/rust-lang/rust-clippy/pull/6354)
2950
2951 ### Enhancements
2952
2953 * Add the `unreadable-literal-lint-fractions` configuration to disable
2954 the `unreadable_literal` lint for fractions
2955 [#6421](https://github.com/rust-lang/rust-clippy/pull/6421)
2956 * [`clone_on_copy`]: Now shows the type in the lint message
2957 [#6443](https://github.com/rust-lang/rust-clippy/pull/6443)
2958 * [`redundant_pattern_matching`]: Now also lints on `std::task::Poll`
2959 [#6339](https://github.com/rust-lang/rust-clippy/pull/6339)
2960 * [`redundant_pattern_matching`]: Additionally also lints on `std::net::IpAddr`
2961 [#6377](https://github.com/rust-lang/rust-clippy/pull/6377)
2962 * [`search_is_some`]: Now suggests `contains` instead of `find(foo).is_some()`
2963 [#6119](https://github.com/rust-lang/rust-clippy/pull/6119)
2964 * [`clone_double_ref`]: Now prints the reference type in the lint message
2965 [#6442](https://github.com/rust-lang/rust-clippy/pull/6442)
2966 * [`modulo_one`]: Now also lints on -1.
2967 [#6360](https://github.com/rust-lang/rust-clippy/pull/6360)
2968 * [`empty_loop`]: Now lints no_std crates, too
2969 [#6205](https://github.com/rust-lang/rust-clippy/pull/6205)
2970 * [`or_fun_call`]: Now also lints when indexing `HashMap` or `BTreeMap`
2971 [#6267](https://github.com/rust-lang/rust-clippy/pull/6267)
2972 * [`wrong_self_convention`]: Now also lints in trait definitions
2973 [#6316](https://github.com/rust-lang/rust-clippy/pull/6316)
2974 * [`needless_borrow`]: Print the type in the lint message
2975 [#6449](https://github.com/rust-lang/rust-clippy/pull/6449)
2976
2977 [msrv_readme]: https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
2978
2979 ### False Positive Fixes
2980
2981 * [`manual_range_contains`]: No longer lints in `const fn`
2982 [#6382](https://github.com/rust-lang/rust-clippy/pull/6382)
2983 * [`unnecessary_lazy_evaluations`]: No longer lints if closure argument is used
2984 [#6370](https://github.com/rust-lang/rust-clippy/pull/6370)
2985 * [`match_single_binding`]: Now ignores cases with `#[cfg()]` macros
2986 [#6435](https://github.com/rust-lang/rust-clippy/pull/6435)
2987 * [`match_like_matches_macro`]: No longer lints on arms with attributes
2988 [#6290](https://github.com/rust-lang/rust-clippy/pull/6290)
2989 * [`map_clone`]: No longer lints with deref and clone
2990 [#6269](https://github.com/rust-lang/rust-clippy/pull/6269)
2991 * [`map_clone`]: No longer lints in the case of &mut
2992 [#6301](https://github.com/rust-lang/rust-clippy/pull/6301)
2993 * [`needless_update`]: Now ignores `non_exhaustive` structs
2994 [#6464](https://github.com/rust-lang/rust-clippy/pull/6464)
2995 * [`needless_collect`]: No longer lints when a collect is needed multiple times
2996 [#6313](https://github.com/rust-lang/rust-clippy/pull/6313)
2997 * [`unnecessary_cast`] No longer lints cfg-dependent types
2998 [#6369](https://github.com/rust-lang/rust-clippy/pull/6369)
2999 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]:
3000 Both now ignore enums with frozen variants
3001 [#6110](https://github.com/rust-lang/rust-clippy/pull/6110)
3002 * [`field_reassign_with_default`] No longer lint for private fields
3003 [#6537](https://github.com/rust-lang/rust-clippy/pull/6537)
3004
3005
3006 ### Suggestion Fixes/Improvements
3007
3008 * [`vec_box`]: Provide correct type scope suggestion
3009 [#6271](https://github.com/rust-lang/rust-clippy/pull/6271)
3010 * [`manual_range_contains`]: Give correct suggestion when using floats
3011 [#6320](https://github.com/rust-lang/rust-clippy/pull/6320)
3012 * [`unnecessary_lazy_evaluations`]: Don't always mark suggestion as MachineApplicable
3013 [#6272](https://github.com/rust-lang/rust-clippy/pull/6272)
3014 * [`manual_async_fn`]: Improve suggestion formatting
3015 [#6294](https://github.com/rust-lang/rust-clippy/pull/6294)
3016 * [`unnecessary_cast`]: Fix incorrectly formatted float literal suggestion
3017 [#6362](https://github.com/rust-lang/rust-clippy/pull/6362)
3018
3019 ### ICE Fixes
3020
3021 * Fix a crash in [`from_iter_instead_of_collect`]
3022 [#6304](https://github.com/rust-lang/rust-clippy/pull/6304)
3023 * Fix a silent crash when parsing doc comments in [`needless_doctest_main`]
3024 [#6458](https://github.com/rust-lang/rust-clippy/pull/6458)
3025
3026 ### Documentation Improvements
3027
3028 * The lint website search has been improved ([#6477](https://github.com/rust-lang/rust-clippy/pull/6477)):
3029 * Searching for lints with dashes and spaces is possible now. For example
3030 `missing-errors-doc` and `missing errors doc` are now valid aliases for lint names
3031 * Improved fuzzy search in lint descriptions
3032 * Various README improvements
3033 [#6287](https://github.com/rust-lang/rust-clippy/pull/6287)
3034 * Add known problems to [`comparison_chain`] documentation
3035 [#6390](https://github.com/rust-lang/rust-clippy/pull/6390)
3036 * Fix example used in [`cargo_common_metadata`]
3037 [#6293](https://github.com/rust-lang/rust-clippy/pull/6293)
3038 * Improve [`map_clone`] documentation
3039 [#6340](https://github.com/rust-lang/rust-clippy/pull/6340)
3040
3041 ### Others
3042
3043 * You can now tell Clippy about the MSRV your project supports. Please refer to
3044 the specific README section to learn more about MSRV support [here][msrv_readme]
3045 [#6201](https://github.com/rust-lang/rust-clippy/pull/6201)
3046 * Add `--no-deps` option to avoid running on path dependencies in workspaces
3047 [#6188](https://github.com/rust-lang/rust-clippy/pull/6188)
3048
3049 ## Rust 1.49
3050
3051 Released 2020-12-31
3052
3053 [View all 107 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-09-24T14%3A05%3A12Z..2020-11-05T13%3A35%3A44Z+base%3Amaster)
3054
3055 ### New Lints
3056
3057 * [`field_reassign_with_default`] [#5911](https://github.com/rust-lang/rust-clippy/pull/5911)
3058 * [`await_holding_refcell_ref`] [#6029](https://github.com/rust-lang/rust-clippy/pull/6029)
3059 * [`disallowed_methods`] [#6081](https://github.com/rust-lang/rust-clippy/pull/6081)
3060 * [`inline_asm_x86_att_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
3061 * [`inline_asm_x86_intel_syntax`] [#6092](https://github.com/rust-lang/rust-clippy/pull/6092)
3062 * [`from_iter_instead_of_collect`] [#6101](https://github.com/rust-lang/rust-clippy/pull/6101)
3063 * [`mut_mutex_lock`] [#6103](https://github.com/rust-lang/rust-clippy/pull/6103)
3064 * [`single_element_loop`] [#6109](https://github.com/rust-lang/rust-clippy/pull/6109)
3065 * [`manual_unwrap_or`] [#6123](https://github.com/rust-lang/rust-clippy/pull/6123)
3066 * [`large_types_passed_by_value`] [#6135](https://github.com/rust-lang/rust-clippy/pull/6135)
3067 * [`result_unit_err`] [#6157](https://github.com/rust-lang/rust-clippy/pull/6157)
3068 * [`ref_option_ref`] [#6165](https://github.com/rust-lang/rust-clippy/pull/6165)
3069 * [`manual_range_contains`] [#6177](https://github.com/rust-lang/rust-clippy/pull/6177)
3070 * [`unusual_byte_groupings`] [#6183](https://github.com/rust-lang/rust-clippy/pull/6183)
3071 * [`comparison_to_empty`] [#6226](https://github.com/rust-lang/rust-clippy/pull/6226)
3072 * [`map_collect_result_unit`] [#6227](https://github.com/rust-lang/rust-clippy/pull/6227)
3073 * [`manual_ok_or`] [#6233](https://github.com/rust-lang/rust-clippy/pull/6233)
3074
3075 ### Moves and Deprecations
3076
3077 * Rename `single_char_push_str` to [`single_char_add_str`]
3078 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
3079 * Rename `zero_width_space` to [`invisible_characters`]
3080 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
3081 * Deprecate `drop_bounds` (uplifted)
3082 [#6111](https://github.com/rust-lang/rust-clippy/pull/6111)
3083 * Move [`string_lit_as_bytes`] to `nursery`
3084 [#6117](https://github.com/rust-lang/rust-clippy/pull/6117)
3085 * Move [`rc_buffer`] to `restriction`
3086 [#6128](https://github.com/rust-lang/rust-clippy/pull/6128)
3087
3088 ### Enhancements
3089
3090 * [`manual_memcpy`]: Also lint when there are loop counters (and produce a
3091 reliable suggestion)
3092 [#5727](https://github.com/rust-lang/rust-clippy/pull/5727)
3093 * [`single_char_add_str`]: Also lint on `String::insert_str`
3094 [#6037](https://github.com/rust-lang/rust-clippy/pull/6037)
3095 * [`invisible_characters`]: Also lint the characters `\u{AD}` and `\u{2060}`
3096 [#6105](https://github.com/rust-lang/rust-clippy/pull/6105)
3097 * [`eq_op`]: Also lint on the `assert_*!` macro family
3098 [#6167](https://github.com/rust-lang/rust-clippy/pull/6167)
3099 * [`items_after_statements`]: Also lint in local macro expansions
3100 [#6176](https://github.com/rust-lang/rust-clippy/pull/6176)
3101 * [`unnecessary_cast`]: Also lint casts on integer and float literals
3102 [#6187](https://github.com/rust-lang/rust-clippy/pull/6187)
3103 * [`manual_unwrap_or`]: Also lint `Result::unwrap_or`
3104 [#6190](https://github.com/rust-lang/rust-clippy/pull/6190)
3105 * [`match_like_matches_macro`]: Also lint when `match` has more than two arms
3106 [#6216](https://github.com/rust-lang/rust-clippy/pull/6216)
3107 * [`integer_arithmetic`]: Better handle `/` an `%` operators
3108 [#6229](https://github.com/rust-lang/rust-clippy/pull/6229)
3109
3110 ### False Positive Fixes
3111
3112 * [`needless_lifetimes`]: Bail out if the function has a `where` clause with the
3113 lifetime [#5978](https://github.com/rust-lang/rust-clippy/pull/5978)
3114 * [`explicit_counter_loop`]: No longer lints, when loop counter is used after it
3115 is incremented [#6076](https://github.com/rust-lang/rust-clippy/pull/6076)
3116 * [`or_fun_call`]: Revert changes addressing the handling of `const fn`
3117 [#6077](https://github.com/rust-lang/rust-clippy/pull/6077)
3118 * [`needless_range_loop`]: No longer lints, when the iterable is used in the
3119 range [#6102](https://github.com/rust-lang/rust-clippy/pull/6102)
3120 * [`inconsistent_digit_grouping`]: Fix bug when using floating point exponent
3121 [#6104](https://github.com/rust-lang/rust-clippy/pull/6104)
3122 * [`mistyped_literal_suffixes`]: No longer lints on the fractional part of a
3123 float (e.g. `713.32_64`)
3124 [#6114](https://github.com/rust-lang/rust-clippy/pull/6114)
3125 * [`invalid_regex`]: No longer lint on unicode characters within `bytes::Regex`
3126 [#6132](https://github.com/rust-lang/rust-clippy/pull/6132)
3127 * [`boxed_local`]: No longer lints on `extern fn` arguments
3128 [#6133](https://github.com/rust-lang/rust-clippy/pull/6133)
3129 * [`needless_lifetimes`]: Fix regression, where lifetime is used in `where`
3130 clause [#6198](https://github.com/rust-lang/rust-clippy/pull/6198)
3131
3132 ### Suggestion Fixes/Improvements
3133
3134 * [`unnecessary_sort_by`]: Avoid dereferencing the suggested closure parameter
3135 [#6078](https://github.com/rust-lang/rust-clippy/pull/6078)
3136 * [`needless_arbitrary_self_type`]: Correctly handle expanded code
3137 [#6093](https://github.com/rust-lang/rust-clippy/pull/6093)
3138 * [`useless_format`]: Preserve raw strings in suggestion
3139 [#6151](https://github.com/rust-lang/rust-clippy/pull/6151)
3140 * [`empty_loop`]: Suggest alternatives
3141 [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
3142 * [`borrowed_box`]: Correctly add parentheses in suggestion
3143 [#6200](https://github.com/rust-lang/rust-clippy/pull/6200)
3144 * [`unused_unit`]: Improve suggestion formatting
3145 [#6247](https://github.com/rust-lang/rust-clippy/pull/6247)
3146
3147 ### Documentation Improvements
3148
3149 * Some doc improvements:
3150 * [`rc_buffer`] [#6090](https://github.com/rust-lang/rust-clippy/pull/6090)
3151 * [`empty_loop`] [#6162](https://github.com/rust-lang/rust-clippy/pull/6162)
3152 * [`doc_markdown`]: Document problematic link text style
3153 [#6107](https://github.com/rust-lang/rust-clippy/pull/6107)
3154
3155 ## Rust 1.48
3156
3157 Released 2020-11-19
3158
3159 [View all 99 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-08-11T13%3A14%3A38Z..2020-09-23T18%3A55%3A22Z+base%3Amaster)
3160
3161 ### New lints
3162
3163 * [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
3164 * [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
3165 * [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
3166 * [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
3167 * [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
3168 * `to_string_in_display` [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
3169 * `single_char_push_str` [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
3170
3171 ### Moves and Deprecations
3172
3173 * Downgrade [`verbose_bit_mask`] to pedantic
3174 [#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
3175
3176 ### Enhancements
3177
3178 * Extend [`precedence`] to handle chains of methods combined with unary negation
3179 [#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
3180 * [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
3181 [#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
3182 * [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
3183 [#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
3184 * `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
3185 [#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
3186 * Avoid [`redundant_pattern_matching`] triggering in macros
3187 [#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
3188 * [`option_if_let_else`]: distinguish pure from impure `else` expressions
3189 [#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
3190 * [`needless_doctest_main`]: parse doctests instead of using textual search
3191 [#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
3192 * [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
3193 [#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
3194 * Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
3195 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
3196 * [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
3197 [#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
3198
3199 ### False Positive Fixes
3200
3201 * [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
3202 [#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
3203 * [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
3204 [#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
3205 * [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
3206 [#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
3207 * Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
3208 [#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
3209 * [`doc_markdown`]: allow using "GraphQL" without backticks
3210 [#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
3211 * `to_string_in_display`: avoid linting when calling `to_string()` on anything that is not `self`
3212 [#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
3213 * [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
3214 [#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
3215 * [`should_implement_trait`]: ignore methods with lifetime parameters
3216 [#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
3217 * [`needless_return`]: avoid linting if a temporary borrows a local variable
3218 [#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
3219 * Restrict [`unnecessary_sort_by`] to non-reference, Copy types
3220 [#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
3221 * Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
3222 [#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
3223 * [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
3224 [#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
3225
3226 ### Suggestion Fixes/Improvements
3227
3228 * [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
3229 [#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
3230 * [`useless_conversion`]: show the type in the error message
3231 [#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
3232 * [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
3233 [#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
3234 * [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
3235 [#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
3236 * [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
3237 [#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
3238 * [`collapsible_if`]: don't use expanded code in the suggestion
3239 [#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
3240 * Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
3241 [#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
3242 * [`unit_arg`]: improve the readability of the suggestion
3243 [#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
3244 * [`stable_sort_primitive`]: print the type that is being sorted in the lint message
3245 [#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
3246 * Show line count and max lines in [`too_many_lines`] lint message
3247 [#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
3248 * Keep parentheses in the suggestion of [`useless_conversion`] where applicable
3249 [#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
3250 * [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
3251 [#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
3252 * [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
3253 [#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
3254 * Make lint messages adhere to rustc dev guide conventions
3255 [#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
3256
3257 ### ICE Fixes
3258
3259 * Fix ICE in [`repeat_once`]
3260 [#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
3261
3262 ### Documentation Improvements
3263
3264 * [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
3265 [#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
3266 * [`unnecessary_mut_passed`]: fix typo
3267 [#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
3268 * Add example of false positive to [`ptr_arg`] docs.
3269 [#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
3270 * [`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`
3271 [#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
3272
3273 ## Rust 1.47
3274
3275 Released 2020-10-08
3276
3277 [View all 76 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-06-23T16%3A27%3A11Z..2020-08-11T12%3A52%3A41Z+base%3Amaster)
3278
3279 ### New lints
3280
3281 * [`derive_ord_xor_partial_ord`] [#5848](https://github.com/rust-lang/rust-clippy/pull/5848)
3282 * [`trait_duplication_in_bounds`] [#5852](https://github.com/rust-lang/rust-clippy/pull/5852)
3283 * [`map_identity`] [#5694](https://github.com/rust-lang/rust-clippy/pull/5694)
3284 * [`unit_return_expecting_ord`] [#5737](https://github.com/rust-lang/rust-clippy/pull/5737)
3285 * [`pattern_type_mismatch`] [#4841](https://github.com/rust-lang/rust-clippy/pull/4841)
3286 * [`repeat_once`] [#5773](https://github.com/rust-lang/rust-clippy/pull/5773)
3287 * [`same_item_push`] [#5825](https://github.com/rust-lang/rust-clippy/pull/5825)
3288 * [`needless_arbitrary_self_type`] [#5869](https://github.com/rust-lang/rust-clippy/pull/5869)
3289 * [`match_like_matches_macro`] [#5769](https://github.com/rust-lang/rust-clippy/pull/5769)
3290 * [`stable_sort_primitive`] [#5809](https://github.com/rust-lang/rust-clippy/pull/5809)
3291 * [`blanket_clippy_restriction_lints`] [#5750](https://github.com/rust-lang/rust-clippy/pull/5750)
3292 * [`option_if_let_else`] [#5301](https://github.com/rust-lang/rust-clippy/pull/5301)
3293
3294 ### Moves and Deprecations
3295
3296 * Deprecate [`regex_macro`] lint
3297 [#5760](https://github.com/rust-lang/rust-clippy/pull/5760)
3298 * Move [`range_minus_one`] to `pedantic`
3299 [#5752](https://github.com/rust-lang/rust-clippy/pull/5752)
3300
3301 ### Enhancements
3302
3303 * Improve [`needless_collect`] by catching `collect` calls followed by `iter` or `into_iter` calls
3304 [#5837](https://github.com/rust-lang/rust-clippy/pull/5837)
3305 * [`panic`], [`todo`], [`unimplemented`] and [`unreachable`] now detect calls with formatting
3306 [#5811](https://github.com/rust-lang/rust-clippy/pull/5811)
3307 * Detect more cases of [`suboptimal_flops`] and [`imprecise_flops`]
3308 [#5443](https://github.com/rust-lang/rust-clippy/pull/5443)
3309 * Handle asymmetrical implementations of `PartialEq` in [`cmp_owned`]
3310 [#5701](https://github.com/rust-lang/rust-clippy/pull/5701)
3311 * Make it possible to allow [`unsafe_derive_deserialize`]
3312 [#5870](https://github.com/rust-lang/rust-clippy/pull/5870)
3313 * Catch `ord.min(a).max(b)` where a < b in [`min_max`]
3314 [#5871](https://github.com/rust-lang/rust-clippy/pull/5871)
3315 * Make [`clone_on_copy`] suggestion machine applicable
3316 [#5745](https://github.com/rust-lang/rust-clippy/pull/5745)
3317 * Enable [`len_zero`] on ranges now that `is_empty` is stable on them
3318 [#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
3319
3320 ### False Positive Fixes
3321
3322 * Avoid triggering [`or_fun_call`] with const fns that take no arguments
3323 [#5889](https://github.com/rust-lang/rust-clippy/pull/5889)
3324 * Fix [`redundant_closure_call`] false positive for closures that have multiple calls
3325 [#5800](https://github.com/rust-lang/rust-clippy/pull/5800)
3326 * Don't lint cases involving `ManuallyDrop` in [`redundant_clone`]
3327 [#5824](https://github.com/rust-lang/rust-clippy/pull/5824)
3328 * Treat a single expression the same as a single statement in the 2nd arm of a match in [`single_match_else`]
3329 [#5771](https://github.com/rust-lang/rust-clippy/pull/5771)
3330 * Don't trigger [`unnested_or_patterns`] if the feature `or_patterns` is not enabled
3331 [#5758](https://github.com/rust-lang/rust-clippy/pull/5758)
3332 * Avoid linting if key borrows in [`unnecessary_sort_by`]
3333 [#5756](https://github.com/rust-lang/rust-clippy/pull/5756)
3334 * Consider `Try` impl for `Poll` when generating suggestions in [`try_err`]
3335 [#5857](https://github.com/rust-lang/rust-clippy/pull/5857)
3336 * Take input lifetimes into account in `manual_async_fn`
3337 [#5859](https://github.com/rust-lang/rust-clippy/pull/5859)
3338 * Fix multiple false positives in [`type_repetition_in_bounds`] and add a configuration option
3339 [#5761](https://github.com/rust-lang/rust-clippy/pull/5761)
3340 * Limit the [`suspicious_arithmetic_impl`] lint to one binary operation
3341 [#5820](https://github.com/rust-lang/rust-clippy/pull/5820)
3342
3343 ### Suggestion Fixes/Improvements
3344
3345 * Improve readability of [`shadow_unrelated`] suggestion by truncating the RHS snippet
3346 [#5788](https://github.com/rust-lang/rust-clippy/pull/5788)
3347 * Suggest `filter_map` instead of `flat_map` when mapping to `Option` in [`map_flatten`]
3348 [#5846](https://github.com/rust-lang/rust-clippy/pull/5846)
3349 * Ensure suggestion is shown correctly for long method call chains in [`iter_nth_zero`]
3350 [#5793](https://github.com/rust-lang/rust-clippy/pull/5793)
3351 * Drop borrow operator in suggestions of [`redundant_pattern_matching`]
3352 [#5815](https://github.com/rust-lang/rust-clippy/pull/5815)
3353 * Add suggestion for [`iter_skip_next`]
3354 [#5843](https://github.com/rust-lang/rust-clippy/pull/5843)
3355 * Improve [`collapsible_if`] fix suggestion
3356 [#5732](https://github.com/rust-lang/rust-clippy/pull/5732)
3357
3358 ### ICE Fixes
3359
3360 * Fix ICE caused by [`needless_collect`]
3361 [#5877](https://github.com/rust-lang/rust-clippy/pull/5877)
3362 * Fix ICE caused by [`unnested_or_patterns`]
3363 [#5784](https://github.com/rust-lang/rust-clippy/pull/5784)
3364
3365 ### Documentation Improvements
3366
3367 * Fix grammar of [`await_holding_lock`] documentation
3368 [#5748](https://github.com/rust-lang/rust-clippy/pull/5748)
3369
3370 ### Others
3371
3372 * Make lints adhere to the rustc dev guide
3373 [#5888](https://github.com/rust-lang/rust-clippy/pull/5888)
3374
3375 ## Rust 1.46
3376
3377 Released 2020-08-27
3378
3379 [View all 48 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-05-31T12%3A50%3A53Z..2020-06-23T15%3A00%3A32Z+base%3Amaster)
3380
3381 ### New lints
3382
3383 * [`unnested_or_patterns`] [#5378](https://github.com/rust-lang/rust-clippy/pull/5378)
3384 * [`iter_next_slice`] [#5597](https://github.com/rust-lang/rust-clippy/pull/5597)
3385 * [`unnecessary_sort_by`] [#5623](https://github.com/rust-lang/rust-clippy/pull/5623)
3386 * [`vec_resize_to_zero`] [#5637](https://github.com/rust-lang/rust-clippy/pull/5637)
3387
3388 ### Moves and Deprecations
3389
3390 * Move [`cast_ptr_alignment`] to pedantic [#5667](https://github.com/rust-lang/rust-clippy/pull/5667)
3391
3392 ### Enhancements
3393
3394 * Improve [`mem_replace_with_uninit`] lint [#5695](https://github.com/rust-lang/rust-clippy/pull/5695)
3395
3396 ### False Positive Fixes
3397
3398 * [`len_zero`]: Avoid linting ranges when the `range_is_empty` feature is not enabled
3399 [#5656](https://github.com/rust-lang/rust-clippy/pull/5656)
3400 * [`let_and_return`]: Don't lint if a temporary borrow is involved
3401 [#5680](https://github.com/rust-lang/rust-clippy/pull/5680)
3402 * [`reversed_empty_ranges`]: Avoid linting `N..N` in for loop arguments in
3403 [#5692](https://github.com/rust-lang/rust-clippy/pull/5692)
3404 * [`if_same_then_else`]: Don't assume multiplication is always commutative
3405 [#5702](https://github.com/rust-lang/rust-clippy/pull/5702)
3406 * [`disallowed_names`]: Remove `bar` from the default configuration
3407 [#5712](https://github.com/rust-lang/rust-clippy/pull/5712)
3408 * [`redundant_pattern_matching`]: Avoid suggesting non-`const fn` calls in const contexts
3409 [#5724](https://github.com/rust-lang/rust-clippy/pull/5724)
3410
3411 ### Suggestion Fixes/Improvements
3412
3413 * Fix suggestion of [`unit_arg`] lint, so that it suggest semantic equivalent code
3414 [#4455](https://github.com/rust-lang/rust-clippy/pull/4455)
3415 * Add auto applicable suggestion to [`macro_use_imports`]
3416 [#5279](https://github.com/rust-lang/rust-clippy/pull/5279)
3417
3418 ### ICE Fixes
3419
3420 * Fix ICE in the `consts` module of Clippy [#5709](https://github.com/rust-lang/rust-clippy/pull/5709)
3421
3422 ### Documentation Improvements
3423
3424 * Improve code examples across multiple lints [#5664](https://github.com/rust-lang/rust-clippy/pull/5664)
3425
3426 ### Others
3427
3428 * Introduce a `--rustc` flag to `clippy-driver`, which turns `clippy-driver`
3429 into `rustc` and passes all the given arguments to `rustc`. This is especially
3430 useful for tools that need the `rustc` version Clippy was compiled with,
3431 instead of the Clippy version. E.g. `clippy-driver --rustc --version` will
3432 print the output of `rustc --version`.
3433 [#5178](https://github.com/rust-lang/rust-clippy/pull/5178)
3434 * New issue templates now make it easier to complain if Clippy is too annoying
3435 or not annoying enough! [#5735](https://github.com/rust-lang/rust-clippy/pull/5735)
3436
3437 ## Rust 1.45
3438
3439 Released 2020-07-16
3440
3441 [View all 81 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-04-18T20%3A18%3A04Z..2020-05-27T19%3A25%3A04Z+base%3Amaster)
3442
3443 ### New lints
3444
3445 * [`match_wildcard_for_single_variants`] [#5582](https://github.com/rust-lang/rust-clippy/pull/5582)
3446 * [`unsafe_derive_deserialize`] [#5493](https://github.com/rust-lang/rust-clippy/pull/5493)
3447 * [`if_let_mutex`] [#5332](https://github.com/rust-lang/rust-clippy/pull/5332)
3448 * [`mismatched_target_os`] [#5506](https://github.com/rust-lang/rust-clippy/pull/5506)
3449 * [`await_holding_lock`] [#5439](https://github.com/rust-lang/rust-clippy/pull/5439)
3450 * [`match_on_vec_items`] [#5522](https://github.com/rust-lang/rust-clippy/pull/5522)
3451 * [`manual_async_fn`] [#5576](https://github.com/rust-lang/rust-clippy/pull/5576)
3452 * [`reversed_empty_ranges`] [#5583](https://github.com/rust-lang/rust-clippy/pull/5583)
3453 * [`manual_non_exhaustive`] [#5550](https://github.com/rust-lang/rust-clippy/pull/5550)
3454
3455 ### Moves and Deprecations
3456
3457 * Downgrade [`match_bool`] to pedantic [#5408](https://github.com/rust-lang/rust-clippy/pull/5408)
3458 * Downgrade [`match_wild_err_arm`] to pedantic and update help messages. [#5622](https://github.com/rust-lang/rust-clippy/pull/5622)
3459 * Downgrade [`useless_let_if_seq`] to nursery. [#5599](https://github.com/rust-lang/rust-clippy/pull/5599)
3460 * Generalize `option_and_then_some` and rename to [`bind_instead_of_map`]. [#5529](https://github.com/rust-lang/rust-clippy/pull/5529)
3461 * Rename `identity_conversion` to [`useless_conversion`]. [#5568](https://github.com/rust-lang/rust-clippy/pull/5568)
3462 * Merge `block_in_if_condition_expr` and `block_in_if_condition_stmt` into [`blocks_in_if_conditions`].
3463 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
3464 * Merge `option_map_unwrap_or`, `option_map_unwrap_or_else` and `result_map_unwrap_or_else` into [`map_unwrap_or`].
3465 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
3466 * Merge `option_unwrap_used` and `result_unwrap_used` into [`unwrap_used`].
3467 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
3468 * Merge `option_expect_used` and `result_expect_used` into [`expect_used`].
3469 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
3470 * Merge `for_loop_over_option` and `for_loop_over_result` into [`for_loops_over_fallibles`].
3471 [#5563](https://github.com/rust-lang/rust-clippy/pull/5563)
3472
3473 ### Enhancements
3474
3475 * Avoid running cargo lints when not enabled to improve performance. [#5505](https://github.com/rust-lang/rust-clippy/pull/5505)
3476 * Extend [`useless_conversion`] with `TryFrom` and `TryInto`. [#5631](https://github.com/rust-lang/rust-clippy/pull/5631)
3477 * Lint also in type parameters and where clauses in [`unused_unit`]. [#5592](https://github.com/rust-lang/rust-clippy/pull/5592)
3478 * Do not suggest deriving `Default` in [`new_without_default`]. [#5616](https://github.com/rust-lang/rust-clippy/pull/5616)
3479
3480 ### False Positive Fixes
3481
3482 * [`while_let_on_iterator`] [#5525](https://github.com/rust-lang/rust-clippy/pull/5525)
3483 * [`empty_line_after_outer_attr`] [#5609](https://github.com/rust-lang/rust-clippy/pull/5609)
3484 * [`unnecessary_unwrap`] [#5558](https://github.com/rust-lang/rust-clippy/pull/5558)
3485 * [`comparison_chain`] [#5596](https://github.com/rust-lang/rust-clippy/pull/5596)
3486 * Don't trigger [`used_underscore_binding`] in await desugaring. [#5535](https://github.com/rust-lang/rust-clippy/pull/5535)
3487 * Don't trigger [`borrowed_box`] on mutable references. [#5491](https://github.com/rust-lang/rust-clippy/pull/5491)
3488 * Allow `1 << 0` in [`identity_op`]. [#5602](https://github.com/rust-lang/rust-clippy/pull/5602)
3489 * Allow `use super::*;` glob imports in [`wildcard_imports`]. [#5564](https://github.com/rust-lang/rust-clippy/pull/5564)
3490 * Whitelist more words in [`doc_markdown`]. [#5611](https://github.com/rust-lang/rust-clippy/pull/5611)
3491 * Skip dev and build deps in [`multiple_crate_versions`]. [#5636](https://github.com/rust-lang/rust-clippy/pull/5636)
3492 * Honor `allow` attribute on arguments in [`ptr_arg`]. [#5647](https://github.com/rust-lang/rust-clippy/pull/5647)
3493 * Honor lint level attributes for [`redundant_field_names`], [`just_underscores_and_digits`], [`many_single_char_names`]
3494 and [`similar_names`]. [#5651](https://github.com/rust-lang/rust-clippy/pull/5651)
3495 * Ignore calls to `len` in [`or_fun_call`]. [#4429](https://github.com/rust-lang/rust-clippy/pull/4429)
3496
3497 ### Suggestion Improvements
3498
3499 * Simplify suggestions in [`manual_memcpy`]. [#5536](https://github.com/rust-lang/rust-clippy/pull/5536)
3500 * Fix suggestion in [`redundant_pattern_matching`] for macros. [#5511](https://github.com/rust-lang/rust-clippy/pull/5511)
3501 * Avoid suggesting `copied()` for mutable references in [`map_clone`]. [#5530](https://github.com/rust-lang/rust-clippy/pull/5530)
3502 * Improve help message for [`clone_double_ref`]. [#5547](https://github.com/rust-lang/rust-clippy/pull/5547)
3503
3504 ### ICE Fixes
3505
3506 * Fix ICE caused in unwrap module. [#5590](https://github.com/rust-lang/rust-clippy/pull/5590)
3507 * Fix ICE on rustc test issue-69020-assoc-const-arith-overflow.rs [#5499](https://github.com/rust-lang/rust-clippy/pull/5499)
3508
3509 ### Documentation
3510
3511 * Clarify the documentation of [`unnecessary_mut_passed`]. [#5639](https://github.com/rust-lang/rust-clippy/pull/5639)
3512 * Extend example for [`unneeded_field_pattern`]. [#5541](https://github.com/rust-lang/rust-clippy/pull/5541)
3513
3514 ## Rust 1.44
3515
3516 Released 2020-06-04
3517
3518 [View all 124 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-03-05T17%3A30%3A53Z..2020-04-18T09%3A20%3A51Z+base%3Amaster)
3519
3520 ### New lints
3521
3522 * [`explicit_deref_methods`] [#5226](https://github.com/rust-lang/rust-clippy/pull/5226)
3523 * [`implicit_saturating_sub`] [#5427](https://github.com/rust-lang/rust-clippy/pull/5427)
3524 * [`macro_use_imports`] [#5230](https://github.com/rust-lang/rust-clippy/pull/5230)
3525 * [`verbose_file_reads`] [#5272](https://github.com/rust-lang/rust-clippy/pull/5272)
3526 * [`future_not_send`] [#5423](https://github.com/rust-lang/rust-clippy/pull/5423)
3527 * [`redundant_pub_crate`] [#5319](https://github.com/rust-lang/rust-clippy/pull/5319)
3528 * [`large_const_arrays`] [#5248](https://github.com/rust-lang/rust-clippy/pull/5248)
3529 * [`result_map_or_into_option`] [#5415](https://github.com/rust-lang/rust-clippy/pull/5415)
3530 * [`redundant_allocation`] [#5349](https://github.com/rust-lang/rust-clippy/pull/5349)
3531 * [`fn_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
3532 * [`vtable_address_comparisons`] [#5294](https://github.com/rust-lang/rust-clippy/pull/5294)
3533
3534
3535 ### Moves and Deprecations
3536
3537 * Deprecate [`replace_consts`] lint [#5380](https://github.com/rust-lang/rust-clippy/pull/5380)
3538 * Move [`cognitive_complexity`] to nursery [#5428](https://github.com/rust-lang/rust-clippy/pull/5428)
3539 * Move [`useless_transmute`] to nursery [#5364](https://github.com/rust-lang/rust-clippy/pull/5364)
3540 * Downgrade [`inefficient_to_string`] to pedantic [#5412](https://github.com/rust-lang/rust-clippy/pull/5412)
3541 * Downgrade [`option_option`] to pedantic [#5401](https://github.com/rust-lang/rust-clippy/pull/5401)
3542 * Downgrade [`unreadable_literal`] to pedantic [#5419](https://github.com/rust-lang/rust-clippy/pull/5419)
3543 * Downgrade [`let_unit_value`] to pedantic [#5409](https://github.com/rust-lang/rust-clippy/pull/5409)
3544 * Downgrade [`trivially_copy_pass_by_ref`] to pedantic [#5410](https://github.com/rust-lang/rust-clippy/pull/5410)
3545 * Downgrade [`implicit_hasher`] to pedantic [#5411](https://github.com/rust-lang/rust-clippy/pull/5411)
3546
3547 ### Enhancements
3548
3549 * On _nightly_ you can now use `cargo clippy --fix -Z unstable-options` to
3550 auto-fix lints that support this [#5363](https://github.com/rust-lang/rust-clippy/pull/5363)
3551 * Make [`redundant_clone`] also trigger on cases where the cloned value is not
3552 consumed. [#5304](https://github.com/rust-lang/rust-clippy/pull/5304)
3553 * Expand [`integer_arithmetic`] to also disallow bit-shifting [#5430](https://github.com/rust-lang/rust-clippy/pull/5430)
3554 * [`option_as_ref_deref`] now detects more deref cases [#5425](https://github.com/rust-lang/rust-clippy/pull/5425)
3555 * [`large_enum_variant`] now report the sizes of the largest and second-largest variants [#5466](https://github.com/rust-lang/rust-clippy/pull/5466)
3556 * [`bool_comparison`] now also checks for inequality comparisons that can be
3557 written more concisely [#5365](https://github.com/rust-lang/rust-clippy/pull/5365)
3558 * Expand [`clone_on_copy`] to work in method call arguments as well [#5441](https://github.com/rust-lang/rust-clippy/pull/5441)
3559 * [`redundant_pattern_matching`] now also handles `while let` [#5483](https://github.com/rust-lang/rust-clippy/pull/5483)
3560 * [`integer_arithmetic`] now also lints references of integers [#5329](https://github.com/rust-lang/rust-clippy/pull/5329)
3561 * Expand [`float_cmp_const`] to also work on arrays [#5345](https://github.com/rust-lang/rust-clippy/pull/5345)
3562 * Trigger [`map_flatten`] when map is called on an `Option` [#5473](https://github.com/rust-lang/rust-clippy/pull/5473)
3563
3564 ### False Positive Fixes
3565
3566 * [`many_single_char_names`] [#5468](https://github.com/rust-lang/rust-clippy/pull/5468)
3567 * [`should_implement_trait`] [#5437](https://github.com/rust-lang/rust-clippy/pull/5437)
3568 * [`unused_self`] [#5387](https://github.com/rust-lang/rust-clippy/pull/5387)
3569 * [`redundant_clone`] [#5453](https://github.com/rust-lang/rust-clippy/pull/5453)
3570 * [`precedence`] [#5445](https://github.com/rust-lang/rust-clippy/pull/5445)
3571 * [`suspicious_op_assign_impl`] [#5424](https://github.com/rust-lang/rust-clippy/pull/5424)
3572 * [`needless_lifetimes`] [#5293](https://github.com/rust-lang/rust-clippy/pull/5293)
3573 * [`redundant_pattern`] [#5287](https://github.com/rust-lang/rust-clippy/pull/5287)
3574 * [`inconsistent_digit_grouping`] [#5451](https://github.com/rust-lang/rust-clippy/pull/5451)
3575
3576
3577 ### Suggestion Improvements
3578
3579 * Improved [`question_mark`] lint suggestion so that it doesn't add redundant `as_ref()` [#5481](https://github.com/rust-lang/rust-clippy/pull/5481)
3580 * Improve the suggested placeholder in [`option_map_unit_fn`] [#5292](https://github.com/rust-lang/rust-clippy/pull/5292)
3581 * Improve suggestion for [`match_single_binding`] when triggered inside a closure [#5350](https://github.com/rust-lang/rust-clippy/pull/5350)
3582
3583 ### ICE Fixes
3584
3585 * Handle the unstable `trivial_bounds` feature [#5296](https://github.com/rust-lang/rust-clippy/pull/5296)
3586 * `shadow_*` lints [#5297](https://github.com/rust-lang/rust-clippy/pull/5297)
3587
3588 ### Documentation
3589
3590 * Fix documentation generation for configurable lints [#5353](https://github.com/rust-lang/rust-clippy/pull/5353)
3591 * Update documentation for [`new_ret_no_self`] [#5448](https://github.com/rust-lang/rust-clippy/pull/5448)
3592 * The documentation for [`option_option`] now suggest using a tri-state enum [#5403](https://github.com/rust-lang/rust-clippy/pull/5403)
3593 * Fix bit mask example in [`verbose_bit_mask`] documentation [#5454](https://github.com/rust-lang/rust-clippy/pull/5454)
3594 * [`wildcard_imports`] documentation now mentions that `use ...::prelude::*` is
3595 not linted [#5312](https://github.com/rust-lang/rust-clippy/pull/5312)
3596
3597 ## Rust 1.43
3598
3599 Released 2020-04-23
3600
3601 [View all 91 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2020-01-26T16%3A01%3A11Z..2020-03-04T16%3A45%3A37Z+base%3Amaster)
3602
3603 ### New lints
3604
3605 * [`imprecise_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
3606 * [`suboptimal_flops`] [#4897](https://github.com/rust-lang/rust-clippy/pull/4897)
3607 * [`wildcard_imports`] [#5029](https://github.com/rust-lang/rust-clippy/pull/5029)
3608 * [`single_component_path_imports`] [#5058](https://github.com/rust-lang/rust-clippy/pull/5058)
3609 * [`match_single_binding`] [#5061](https://github.com/rust-lang/rust-clippy/pull/5061)
3610 * [`let_underscore_lock`] [#5101](https://github.com/rust-lang/rust-clippy/pull/5101)
3611 * [`struct_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
3612 * [`fn_params_excessive_bools`] [#5125](https://github.com/rust-lang/rust-clippy/pull/5125)
3613 * [`option_env_unwrap`] [#5148](https://github.com/rust-lang/rust-clippy/pull/5148)
3614 * [`lossy_float_literal`] [#5202](https://github.com/rust-lang/rust-clippy/pull/5202)
3615 * [`rest_pat_in_fully_bound_structs`] [#5258](https://github.com/rust-lang/rust-clippy/pull/5258)
3616
3617 ### Moves and Deprecations
3618
3619 * Move [`unneeded_field_pattern`] to pedantic group [#5200](https://github.com/rust-lang/rust-clippy/pull/5200)
3620
3621 ### Enhancements
3622
3623 * Make [`missing_errors_doc`] lint also trigger on `async` functions
3624 [#5181](https://github.com/rust-lang/rust-clippy/pull/5181)
3625 * Add more constants to [`approx_constant`] [#5193](https://github.com/rust-lang/rust-clippy/pull/5193)
3626 * Extend [`question_mark`] lint [#5266](https://github.com/rust-lang/rust-clippy/pull/5266)
3627
3628 ### False Positive Fixes
3629
3630 * [`use_debug`] [#5047](https://github.com/rust-lang/rust-clippy/pull/5047)
3631 * [`unnecessary_unwrap`] [#5132](https://github.com/rust-lang/rust-clippy/pull/5132)
3632 * [`zero_prefixed_literal`] [#5170](https://github.com/rust-lang/rust-clippy/pull/5170)
3633 * [`missing_const_for_fn`] [#5216](https://github.com/rust-lang/rust-clippy/pull/5216)
3634
3635 ### Suggestion Improvements
3636
3637 * Improve suggestion when blocks of code are suggested [#5134](https://github.com/rust-lang/rust-clippy/pull/5134)
3638
3639 ### ICE Fixes
3640
3641 * `misc_early` lints [#5129](https://github.com/rust-lang/rust-clippy/pull/5129)
3642 * [`missing_errors_doc`] [#5213](https://github.com/rust-lang/rust-clippy/pull/5213)
3643 * Fix ICE when evaluating `usize`s [#5256](https://github.com/rust-lang/rust-clippy/pull/5256)
3644
3645 ### Documentation
3646
3647 * Improve documentation of [`iter_nth_zero`]
3648 * Add documentation pages for stable releases [#5171](https://github.com/rust-lang/rust-clippy/pull/5171)
3649
3650 ### Others
3651
3652 * Clippy now completely runs on GitHub Actions [#5190](https://github.com/rust-lang/rust-clippy/pull/5190)
3653
3654
3655 ## Rust 1.42
3656
3657 Released 2020-03-12
3658
3659 [View all 101 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-12-15T01%3A40%3A34Z..2020-01-26T11%3A22%3A13Z+base%3Amaster)
3660
3661 ### New lints
3662
3663 * [`filetype_is_file`] [#4543](https://github.com/rust-lang/rust-clippy/pull/4543)
3664 * [`let_underscore_must_use`] [#4823](https://github.com/rust-lang/rust-clippy/pull/4823)
3665 * [`modulo_arithmetic`] [#4867](https://github.com/rust-lang/rust-clippy/pull/4867)
3666 * [`mem_replace_with_default`] [#4881](https://github.com/rust-lang/rust-clippy/pull/4881)
3667 * [`mutable_key_type`] [#4885](https://github.com/rust-lang/rust-clippy/pull/4885)
3668 * [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
3669 * [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
3670 * [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
3671 * `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
3672 * [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)
3673
3674 ### Moves and Deprecations
3675
3676 * Move [`transmute_float_to_int`] from nursery to complexity group
3677 [#5015](https://github.com/rust-lang/rust-clippy/pull/5015)
3678 * Move [`range_plus_one`] to pedantic group [#5057](https://github.com/rust-lang/rust-clippy/pull/5057)
3679 * Move [`debug_assert_with_mut_call`] to nursery group [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
3680 * Deprecate `unused_label` [#4930](https://github.com/rust-lang/rust-clippy/pull/4930)
3681
3682 ### Enhancements
3683
3684 * Lint vectored IO in [`unused_io_amount`] [#5027](https://github.com/rust-lang/rust-clippy/pull/5027)
3685 * Make [`vec_box`] configurable by adding a size threshold [#5081](https://github.com/rust-lang/rust-clippy/pull/5081)
3686 * Also lint constants in [`cmp_nan`] [#4910](https://github.com/rust-lang/rust-clippy/pull/4910)
3687 * Fix false negative in [`expect_fun_call`] [#4915](https://github.com/rust-lang/rust-clippy/pull/4915)
3688 * Fix false negative in [`redundant_clone`] [#5017](https://github.com/rust-lang/rust-clippy/pull/5017)
3689
3690 ### False Positive Fixes
3691
3692 * [`map_clone`] [#4937](https://github.com/rust-lang/rust-clippy/pull/4937)
3693 * [`replace_consts`] [#4977](https://github.com/rust-lang/rust-clippy/pull/4977)
3694 * [`let_and_return`] [#5008](https://github.com/rust-lang/rust-clippy/pull/5008)
3695 * [`eq_op`] [#5079](https://github.com/rust-lang/rust-clippy/pull/5079)
3696 * [`possible_missing_comma`] [#5083](https://github.com/rust-lang/rust-clippy/pull/5083)
3697 * [`debug_assert_with_mut_call`] [#5106](https://github.com/rust-lang/rust-clippy/pull/5106)
3698 * Don't trigger [`let_underscore_must_use`] in external macros
3699 [#5082](https://github.com/rust-lang/rust-clippy/pull/5082)
3700 * Don't trigger [`empty_loop`] in `no_std` crates [#5086](https://github.com/rust-lang/rust-clippy/pull/5086)
3701
3702 ### Suggestion Improvements
3703
3704 * `option_map_unwrap_or` [#4634](https://github.com/rust-lang/rust-clippy/pull/4634)
3705 * [`wildcard_enum_match_arm`] [#4934](https://github.com/rust-lang/rust-clippy/pull/4934)
3706 * [`cognitive_complexity`] [#4935](https://github.com/rust-lang/rust-clippy/pull/4935)
3707 * [`decimal_literal_representation`] [#4956](https://github.com/rust-lang/rust-clippy/pull/4956)
3708 * `unknown_clippy_lints` [#4963](https://github.com/rust-lang/rust-clippy/pull/4963)
3709 * [`explicit_into_iter_loop`] [#4978](https://github.com/rust-lang/rust-clippy/pull/4978)
3710 * [`useless_attribute`] [#5022](https://github.com/rust-lang/rust-clippy/pull/5022)
3711 * `if_let_some_result` [#5032](https://github.com/rust-lang/rust-clippy/pull/5032)
3712
3713 ### ICE fixes
3714
3715 * [`unsound_collection_transmute`] [#4975](https://github.com/rust-lang/rust-clippy/pull/4975)
3716
3717 ### Documentation
3718
3719 * Improve documentation of [`empty_enum`], [`replace_consts`], [`redundant_clone`], and [`iterator_step_by_zero`]
3720
3721
3722 ## Rust 1.41
3723
3724 Released 2020-01-30
3725
3726 [View all 74 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-10-28T20%3A50%3A24Z..2019-12-12T00%3A53%3A03Z+base%3Amaster)
3727
3728 * New Lints:
3729 * [`exit`] [#4697](https://github.com/rust-lang/rust-clippy/pull/4697)
3730 * [`to_digit_is_some`] [#4801](https://github.com/rust-lang/rust-clippy/pull/4801)
3731 * [`tabs_in_doc_comments`] [#4806](https://github.com/rust-lang/rust-clippy/pull/4806)
3732 * [`large_stack_arrays`] [#4807](https://github.com/rust-lang/rust-clippy/pull/4807)
3733 * [`same_functions_in_if_condition`] [#4814](https://github.com/rust-lang/rust-clippy/pull/4814)
3734 * [`zst_offset`] [#4816](https://github.com/rust-lang/rust-clippy/pull/4816)
3735 * [`as_conversions`] [#4821](https://github.com/rust-lang/rust-clippy/pull/4821)
3736 * [`missing_errors_doc`] [#4884](https://github.com/rust-lang/rust-clippy/pull/4884)
3737 * [`transmute_float_to_int`] [#4889](https://github.com/rust-lang/rust-clippy/pull/4889)
3738 * Remove plugin interface, see
3739 [Inside Rust Blog](https://blog.rust-lang.org/inside-rust/2019/11/04/Clippy-removes-plugin-interface.html) for
3740 details [#4714](https://github.com/rust-lang/rust-clippy/pull/4714)
3741 * Move [`use_self`] to nursery group [#4863](https://github.com/rust-lang/rust-clippy/pull/4863)
3742 * Deprecate `into_iter_on_array` [#4788](https://github.com/rust-lang/rust-clippy/pull/4788)
3743 * Expand [`string_lit_as_bytes`] to also trigger when literal has escapes
3744 [#4808](https://github.com/rust-lang/rust-clippy/pull/4808)
3745 * Fix false positive in `comparison_chain` [#4842](https://github.com/rust-lang/rust-clippy/pull/4842)
3746 * Fix false positive in `while_immutable_condition` [#4730](https://github.com/rust-lang/rust-clippy/pull/4730)
3747 * Fix false positive in `explicit_counter_loop` [#4803](https://github.com/rust-lang/rust-clippy/pull/4803)
3748 * Fix false positive in `must_use_candidate` [#4794](https://github.com/rust-lang/rust-clippy/pull/4794)
3749 * Fix false positive in `print_with_newline` and `write_with_newline`
3750 [#4769](https://github.com/rust-lang/rust-clippy/pull/4769)
3751 * Fix false positive in `derive_hash_xor_eq` [#4766](https://github.com/rust-lang/rust-clippy/pull/4766)
3752 * Fix false positive in `missing_inline_in_public_items` [#4870](https://github.com/rust-lang/rust-clippy/pull/4870)
3753 * Fix false positive in `string_add` [#4880](https://github.com/rust-lang/rust-clippy/pull/4880)
3754 * Fix false positive in `float_arithmetic` [#4851](https://github.com/rust-lang/rust-clippy/pull/4851)
3755 * Fix false positive in `cast_sign_loss` [#4883](https://github.com/rust-lang/rust-clippy/pull/4883)
3756 * Fix false positive in `manual_swap` [#4877](https://github.com/rust-lang/rust-clippy/pull/4877)
3757 * Fix ICEs occurring while checking some block expressions [#4772](https://github.com/rust-lang/rust-clippy/pull/4772)
3758 * Fix ICE in `use_self` [#4776](https://github.com/rust-lang/rust-clippy/pull/4776)
3759 * Fix ICEs related to `const_generics` [#4780](https://github.com/rust-lang/rust-clippy/pull/4780)
3760 * Display help when running `clippy-driver` without arguments, instead of ICEing
3761 [#4810](https://github.com/rust-lang/rust-clippy/pull/4810)
3762 * Clippy has its own ICE message now [#4588](https://github.com/rust-lang/rust-clippy/pull/4588)
3763 * Show deprecated lints in the documentation again [#4757](https://github.com/rust-lang/rust-clippy/pull/4757)
3764 * Improve Documentation by adding positive examples to some lints
3765 [#4832](https://github.com/rust-lang/rust-clippy/pull/4832)
3766
3767 ## Rust 1.40
3768
3769 Released 2019-12-19
3770
3771 [View all 76 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-09-23T06%3A18%3A04Z..2019-10-28T17%3A34%3A55Z+base%3Amaster)
3772
3773 * New Lints:
3774 * [`unneeded_wildcard_pattern`] [#4537](https://github.com/rust-lang/rust-clippy/pull/4537)
3775 * [`needless_doctest_main`] [#4603](https://github.com/rust-lang/rust-clippy/pull/4603)
3776 * [`suspicious_unary_op_formatting`] [#4615](https://github.com/rust-lang/rust-clippy/pull/4615)
3777 * [`debug_assert_with_mut_call`] [#4680](https://github.com/rust-lang/rust-clippy/pull/4680)
3778 * [`unused_self`] [#4619](https://github.com/rust-lang/rust-clippy/pull/4619)
3779 * [`inefficient_to_string`] [#4683](https://github.com/rust-lang/rust-clippy/pull/4683)
3780 * [`must_use_unit`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3781 * [`must_use_candidate`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3782 * [`double_must_use`] [#4560](https://github.com/rust-lang/rust-clippy/pull/4560)
3783 * [`comparison_chain`] [#4569](https://github.com/rust-lang/rust-clippy/pull/4569)
3784 * [`unsound_collection_transmute`] [#4592](https://github.com/rust-lang/rust-clippy/pull/4592)
3785 * [`panic`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3786 * [`unreachable`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3787 * [`todo`] [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3788 * `option_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3789 * `result_expect_used` [#4657](https://github.com/rust-lang/rust-clippy/pull/4657)
3790 * Move `redundant_clone` to perf group [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
3791 * Move `manual_mul_add` to nursery group [#4736](https://github.com/rust-lang/rust-clippy/pull/4736)
3792 * 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)
3793 * Expand `integer_arithmetic` to also detect mutating arithmetic like `+=` [#4585](https://github.com/rust-lang/rust-clippy/pull/4585)
3794 * Fix false positive in `nonminimal_bool` [#4568](https://github.com/rust-lang/rust-clippy/pull/4568)
3795 * Fix false positive in `missing_safety_doc` [#4611](https://github.com/rust-lang/rust-clippy/pull/4611)
3796 * Fix false positive in `cast_sign_loss` [#4614](https://github.com/rust-lang/rust-clippy/pull/4614)
3797 * Fix false positive in `redundant_clone` [#4509](https://github.com/rust-lang/rust-clippy/pull/4509)
3798 * Fix false positive in `try_err` [#4721](https://github.com/rust-lang/rust-clippy/pull/4721)
3799 * Fix false positive in `toplevel_ref_arg` [#4570](https://github.com/rust-lang/rust-clippy/pull/4570)
3800 * Fix false positive in `multiple_inherent_impl` [#4593](https://github.com/rust-lang/rust-clippy/pull/4593)
3801 * Improve more suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4575](https://github.com/rust-lang/rust-clippy/pull/4575)
3802 * Improve suggestion for `zero_ptr` [#4599](https://github.com/rust-lang/rust-clippy/pull/4599)
3803 * Improve suggestion for `explicit_counter_loop` [#4691](https://github.com/rust-lang/rust-clippy/pull/4691)
3804 * Improve suggestion for `mul_add` [#4602](https://github.com/rust-lang/rust-clippy/pull/4602)
3805 * Improve suggestion for `assertions_on_constants` [#4635](https://github.com/rust-lang/rust-clippy/pull/4635)
3806 * Fix ICE in `use_self` [#4671](https://github.com/rust-lang/rust-clippy/pull/4671)
3807 * Fix ICE when encountering const casts [#4590](https://github.com/rust-lang/rust-clippy/pull/4590)
3808
3809 ## Rust 1.39
3810
3811 Released 2019-11-07
3812
3813 [View all 100 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-08-11T19%3A21%3A38Z..2019-09-22T12%3A07%3A39Z+base%3Amaster)
3814
3815 * New Lints:
3816 * [`uninit_assumed_init`] [#4479](https://github.com/rust-lang/rust-clippy/pull/4479)
3817 * [`flat_map_identity`] [#4231](https://github.com/rust-lang/rust-clippy/pull/4231)
3818 * [`missing_safety_doc`] [#4535](https://github.com/rust-lang/rust-clippy/pull/4535)
3819 * [`mem_replace_with_uninit`] [#4511](https://github.com/rust-lang/rust-clippy/pull/4511)
3820 * [`suspicious_map`] [#4394](https://github.com/rust-lang/rust-clippy/pull/4394)
3821 * `option_and_then_some` [#4386](https://github.com/rust-lang/rust-clippy/pull/4386)
3822 * [`manual_saturating_arithmetic`] [#4498](https://github.com/rust-lang/rust-clippy/pull/4498)
3823 * 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)
3824 * Move `type_repetition_in_bounds` to pedantic group [#4403](https://github.com/rust-lang/rust-clippy/pull/4403)
3825 * Move `cast_lossless` to pedantic group [#4539](https://github.com/rust-lang/rust-clippy/pull/4539)
3826 * `temporary_cstring_as_ptr` now catches more cases [#4425](https://github.com/rust-lang/rust-clippy/pull/4425)
3827 * `use_self` now works in constructors, too [#4525](https://github.com/rust-lang/rust-clippy/pull/4525)
3828 * `cargo_common_metadata` now checks for license files [#4518](https://github.com/rust-lang/rust-clippy/pull/4518)
3829 * `cognitive_complexity` now includes the measured complexity in the warning message [#4469](https://github.com/rust-lang/rust-clippy/pull/4469)
3830 * Fix false positives in `block_in_if_*` lints [#4458](https://github.com/rust-lang/rust-clippy/pull/4458)
3831 * Fix false positive in `cast_lossless` [#4473](https://github.com/rust-lang/rust-clippy/pull/4473)
3832 * Fix false positive in `clone_on_copy` [#4411](https://github.com/rust-lang/rust-clippy/pull/4411)
3833 * Fix false positive in `deref_addrof` [#4487](https://github.com/rust-lang/rust-clippy/pull/4487)
3834 * Fix false positive in `too_many_lines` [#4490](https://github.com/rust-lang/rust-clippy/pull/4490)
3835 * Fix false positive in `new_ret_no_self` [#4365](https://github.com/rust-lang/rust-clippy/pull/4365)
3836 * Fix false positive in `manual_swap` [#4478](https://github.com/rust-lang/rust-clippy/pull/4478)
3837 * Fix false positive in `missing_const_for_fn` [#4450](https://github.com/rust-lang/rust-clippy/pull/4450)
3838 * Fix false positive in `extra_unused_lifetimes` [#4477](https://github.com/rust-lang/rust-clippy/pull/4477)
3839 * Fix false positive in `inherent_to_string` [#4460](https://github.com/rust-lang/rust-clippy/pull/4460)
3840 * Fix false positive in `map_entry` [#4495](https://github.com/rust-lang/rust-clippy/pull/4495)
3841 * Fix false positive in `unused_unit` [#4445](https://github.com/rust-lang/rust-clippy/pull/4445)
3842 * Fix false positive in `redundant_pattern` [#4489](https://github.com/rust-lang/rust-clippy/pull/4489)
3843 * Fix false positive in `wrong_self_convention` [#4369](https://github.com/rust-lang/rust-clippy/pull/4369)
3844 * Improve various suggestions and tests in preparation for the unstable `cargo fix --clippy` [#4558](https://github.com/rust-lang/rust-clippy/pull/4558)
3845 * Improve suggestions for `redundant_pattern_matching` [#4352](https://github.com/rust-lang/rust-clippy/pull/4352)
3846 * Improve suggestions for `explicit_write` [#4544](https://github.com/rust-lang/rust-clippy/pull/4544)
3847 * Improve suggestion for `or_fun_call` [#4522](https://github.com/rust-lang/rust-clippy/pull/4522)
3848 * Improve suggestion for `match_as_ref` [#4446](https://github.com/rust-lang/rust-clippy/pull/4446)
3849 * Improve suggestion for `unnecessary_fold_span` [#4382](https://github.com/rust-lang/rust-clippy/pull/4382)
3850 * Add suggestions for `unseparated_literal_suffix` [#4401](https://github.com/rust-lang/rust-clippy/pull/4401)
3851 * Add suggestions for `char_lit_as_u8` [#4418](https://github.com/rust-lang/rust-clippy/pull/4418)
3852
3853 ## Rust 1.38
3854
3855 Released 2019-09-26
3856
3857 [View all 76 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-06-30T13%3A40%3A26Z..2019-08-11T09%3A47%3A27Z+base%3Amaster)
3858
3859 * New Lints:
3860 * [`main_recursion`] [#4203](https://github.com/rust-lang/rust-clippy/pull/4203)
3861 * [`inherent_to_string`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
3862 * [`inherent_to_string_shadow_display`] [#4259](https://github.com/rust-lang/rust-clippy/pull/4259)
3863 * [`type_repetition_in_bounds`] [#3766](https://github.com/rust-lang/rust-clippy/pull/3766)
3864 * [`try_err`] [#4222](https://github.com/rust-lang/rust-clippy/pull/4222)
3865 * Move `{unnecessary,panicking}_unwrap` out of nursery [#4307](https://github.com/rust-lang/rust-clippy/pull/4307)
3866 * Extend the `use_self` lint to suggest uses of `Self::Variant` [#4308](https://github.com/rust-lang/rust-clippy/pull/4308)
3867 * Improve suggestion for needless return [#4262](https://github.com/rust-lang/rust-clippy/pull/4262)
3868 * Add auto-fixable suggestion for `let_unit` [#4337](https://github.com/rust-lang/rust-clippy/pull/4337)
3869 * Fix false positive in `pub_enum_variant_names` and `enum_variant_names` [#4345](https://github.com/rust-lang/rust-clippy/pull/4345)
3870 * Fix false positive in `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
3871 * Fix false positive in `string_lit_as_bytes` [#4233](https://github.com/rust-lang/rust-clippy/pull/4233)
3872 * Fix false positive in `needless_lifetimes` [#4266](https://github.com/rust-lang/rust-clippy/pull/4266)
3873 * Fix false positive in `float_cmp` [#4275](https://github.com/rust-lang/rust-clippy/pull/4275)
3874 * Fix false positives in `needless_return` [#4274](https://github.com/rust-lang/rust-clippy/pull/4274)
3875 * Fix false negative in `match_same_arms` [#4246](https://github.com/rust-lang/rust-clippy/pull/4246)
3876 * Fix incorrect suggestion for `needless_bool` [#4335](https://github.com/rust-lang/rust-clippy/pull/4335)
3877 * Improve suggestion for `cast_ptr_alignment` [#4257](https://github.com/rust-lang/rust-clippy/pull/4257)
3878 * Improve suggestion for `single_char_literal` [#4361](https://github.com/rust-lang/rust-clippy/pull/4361)
3879 * Improve suggestion for `len_zero` [#4314](https://github.com/rust-lang/rust-clippy/pull/4314)
3880 * Fix ICE in `implicit_hasher` [#4268](https://github.com/rust-lang/rust-clippy/pull/4268)
3881 * Fix allow bug in `trivially_copy_pass_by_ref` [#4250](https://github.com/rust-lang/rust-clippy/pull/4250)
3882
3883 ## Rust 1.37
3884
3885 Released 2019-08-15
3886
3887 [View all 72 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-05-19T08%3A11%3A23Z..2019-06-25T23%3A22%3A22Z+base%3Amaster)
3888
3889 * New Lints:
3890 * [`checked_conversions`] [#4088](https://github.com/rust-lang/rust-clippy/pull/4088)
3891 * [`get_last_with_len`] [#3832](https://github.com/rust-lang/rust-clippy/pull/3832)
3892 * [`integer_division`] [#4195](https://github.com/rust-lang/rust-clippy/pull/4195)
3893 * Renamed Lint: `const_static_lifetime` is now called [`redundant_static_lifetimes`].
3894 The lint now covers statics in addition to consts [#4162](https://github.com/rust-lang/rust-clippy/pull/4162)
3895 * [`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)
3896 * [`needless_return`] now works with void functions [#4220](https://github.com/rust-lang/rust-clippy/pull/4220)
3897 * Fix false positive in [`redundant_closure`] [#4190](https://github.com/rust-lang/rust-clippy/pull/4190)
3898 * Fix false positive in [`useless_attribute`] [#4107](https://github.com/rust-lang/rust-clippy/pull/4107)
3899 * Fix incorrect suggestion for [`float_cmp`] [#4214](https://github.com/rust-lang/rust-clippy/pull/4214)
3900 * Add suggestions for [`print_with_newline`] and [`write_with_newline`] [#4136](https://github.com/rust-lang/rust-clippy/pull/4136)
3901 * Improve suggestions for `option_map_unwrap_or_else` and `result_map_unwrap_or_else` [#4164](https://github.com/rust-lang/rust-clippy/pull/4164)
3902 * Improve suggestions for [`non_ascii_literal`] [#4119](https://github.com/rust-lang/rust-clippy/pull/4119)
3903 * Improve diagnostics for [`let_and_return`] [#4137](https://github.com/rust-lang/rust-clippy/pull/4137)
3904 * Improve diagnostics for [`trivially_copy_pass_by_ref`] [#4071](https://github.com/rust-lang/rust-clippy/pull/4071)
3905 * Add macro check for [`unreadable_literal`] [#4099](https://github.com/rust-lang/rust-clippy/pull/4099)
3906
3907 ## Rust 1.36
3908
3909 Released 2019-07-04
3910
3911 [View all 81 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-04-10T09%3A41%3A56Z..2019-05-18T00%3A29%3A40Z+base%3Amaster)
3912
3913 * New lints: [`find_map`], [`filter_map_next`] [#4039](https://github.com/rust-lang/rust-clippy/pull/4039)
3914 * New lint: [`path_buf_push_overwrite`] [#3954](https://github.com/rust-lang/rust-clippy/pull/3954)
3915 * Move `path_buf_push_overwrite` to the nursery [#4013](https://github.com/rust-lang/rust-clippy/pull/4013)
3916 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
3917 * Allow allowing of [`toplevel_ref_arg`] lint [#4007](https://github.com/rust-lang/rust-clippy/pull/4007)
3918 * Fix false negative in [`or_fun_call`] pertaining to nested constructors [#4084](https://github.com/rust-lang/rust-clippy/pull/4084)
3919 * Fix false positive in [`or_fun_call`] pertaining to enum variant constructors [#4018](https://github.com/rust-lang/rust-clippy/pull/4018)
3920 * Fix false positive in [`useless_let_if_seq`] pertaining to interior mutability [#4035](https://github.com/rust-lang/rust-clippy/pull/4035)
3921 * Fix false positive in [`redundant_closure`] pertaining to non-function types [#4008](https://github.com/rust-lang/rust-clippy/pull/4008)
3922 * Fix false positive in [`let_and_return`] pertaining to attributes on `let`s [#4024](https://github.com/rust-lang/rust-clippy/pull/4024)
3923 * Fix false positive in [`module_name_repetitions`] lint pertaining to attributes [#4006](https://github.com/rust-lang/rust-clippy/pull/4006)
3924 * Fix false positive on [`assertions_on_constants`] pertaining to `debug_assert!` [#3989](https://github.com/rust-lang/rust-clippy/pull/3989)
3925 * 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)
3926 * Improve suggestion for [`search_is_some`] [#4049](https://github.com/rust-lang/rust-clippy/pull/4049)
3927 * Improve suggestion applicability for [`naive_bytecount`] [#3984](https://github.com/rust-lang/rust-clippy/pull/3984)
3928 * Improve suggestion applicability for [`while_let_loop`] [#3975](https://github.com/rust-lang/rust-clippy/pull/3975)
3929 * Improve diagnostics for [`too_many_arguments`] [#4053](https://github.com/rust-lang/rust-clippy/pull/4053)
3930 * Improve diagnostics for [`cast_lossless`] [#4021](https://github.com/rust-lang/rust-clippy/pull/4021)
3931 * Deal with macro checks in desugarings better [#4082](https://github.com/rust-lang/rust-clippy/pull/4082)
3932 * Add macro check for [`unnecessary_cast`] [#4026](https://github.com/rust-lang/rust-clippy/pull/4026)
3933 * Remove [`approx_constant`]'s documentation's "Known problems" section. [#4027](https://github.com/rust-lang/rust-clippy/pull/4027)
3934 * Fix ICE in [`suspicious_else_formatting`] [#3960](https://github.com/rust-lang/rust-clippy/pull/3960)
3935 * Fix ICE in [`decimal_literal_representation`] [#3931](https://github.com/rust-lang/rust-clippy/pull/3931)
3936
3937
3938 ## Rust 1.35
3939
3940 Released 2019-05-20
3941
3942 [1fac380..37f5c1e](https://github.com/rust-lang/rust-clippy/compare/1fac380...37f5c1e)
3943
3944 * New lint: `drop_bounds` to detect `T: Drop` bounds
3945 * Split [`redundant_closure`] into [`redundant_closure`] and [`redundant_closure_for_method_calls`] [#4110](https://github.com/rust-lang/rust-clippy/pull/4101)
3946 * Rename `cyclomatic_complexity` to [`cognitive_complexity`], start work on making lint more practical for Rust code
3947 * Move [`get_unwrap`] to the restriction category
3948 * Improve suggestions for [`iter_cloned_collect`]
3949 * Improve suggestions for [`cast_lossless`] to suggest suffixed literals
3950 * Fix false positives in [`print_with_newline`] and [`write_with_newline`] pertaining to raw strings
3951 * Fix false positive in [`needless_range_loop`] pertaining to structs without a `.iter()`
3952 * Fix false positive in [`bool_comparison`] pertaining to non-bool types
3953 * Fix false positive in [`redundant_closure`] pertaining to differences in borrows
3954 * Fix false positive in `option_map_unwrap_or` on non-copy types
3955 * Fix false positives in [`missing_const_for_fn`] pertaining to macros and trait method impls
3956 * Fix false positive in [`needless_pass_by_value`] pertaining to procedural macros
3957 * Fix false positive in [`needless_continue`] pertaining to loop labels
3958 * Fix false positive for [`boxed_local`] pertaining to arguments moved into closures
3959 * Fix false positive for [`use_self`] in nested functions
3960 * Fix suggestion for [`expect_fun_call`] (https://github.com/rust-lang/rust-clippy/pull/3846)
3961 * Fix suggestion for [`explicit_counter_loop`] to deal with parenthesizing range variables
3962 * Fix suggestion for [`single_char_pattern`] to correctly escape single quotes
3963 * Avoid triggering [`redundant_closure`] in macros
3964 * 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)
3965
3966 ## Rust 1.34
3967
3968 Released 2019-04-10
3969
3970 [View all 61 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2019-01-17T17%3A45%3A39Z..2019-02-19T08%3A24%3A05Z+base%3Amaster)
3971
3972 * New lint: [`assertions_on_constants`] to detect for example `assert!(true)`
3973 * New lint: [`dbg_macro`] to detect uses of the `dbg!` macro
3974 * New lint: [`missing_const_for_fn`] that can suggest functions to be made `const`
3975 * New lint: [`too_many_lines`] to detect functions with excessive LOC. It can be
3976 configured using the `too-many-lines-threshold` configuration.
3977 * New lint: [`wildcard_enum_match_arm`] to check for wildcard enum matches using `_`
3978 * Expand `redundant_closure` to also work for methods (not only functions)
3979 * Fix ICEs in `vec_box`, `needless_pass_by_value` and `implicit_hasher`
3980 * Fix false positive in `cast_sign_loss`
3981 * Fix false positive in `integer_arithmetic`
3982 * Fix false positive in `unit_arg`
3983 * Fix false positives in `implicit_return`
3984 * Add suggestion to `explicit_write`
3985 * Improve suggestions for `question_mark` lint
3986 * Fix incorrect suggestion for `cast_lossless`
3987 * Fix incorrect suggestion for `expect_fun_call`
3988 * Fix incorrect suggestion for `needless_bool`
3989 * Fix incorrect suggestion for `needless_range_loop`
3990 * Fix incorrect suggestion for `use_self`
3991 * Fix incorrect suggestion for `while_let_on_iterator`
3992 * Clippy is now slightly easier to invoke in non-cargo contexts. See
3993 [#3665][pull3665] for more details.
3994 * We now have [improved documentation][adding_lints] on how to add new lints
3995
3996 ## Rust 1.33
3997
3998 Released 2019-02-26
3999
4000 [View all 120 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2018-11-28T06%3A19%3A50Z..2019-01-15T09%3A27%3A02Z+base%3Amaster)
4001
4002 * New lints: [`implicit_return`], [`vec_box`], [`cast_ref_to_mut`]
4003 * The `rust-clippy` repository is now part of the `rust-lang` org.
4004 * Rename `stutter` to `module_name_repetitions`
4005 * Merge `new_without_default_derive` into `new_without_default` lint
4006 * Move `large_digit_groups` from `style` group to `pedantic`
4007 * Expand `bool_comparison` to check for `<`, `<=`, `>`, `>=`, and `!=`
4008 comparisons against booleans
4009 * Expand `no_effect` to detect writes to constants such as `A_CONST.field = 2`
4010 * Expand `redundant_clone` to work on struct fields
4011 * Expand `suspicious_else_formatting` to detect `if .. {..} {..}`
4012 * Expand `use_self` to work on tuple structs and also in local macros
4013 * Fix ICE in `result_map_unit_fn` and `option_map_unit_fn`
4014 * Fix false positives in `implicit_return`
4015 * Fix false positives in `use_self`
4016 * Fix false negative in `clone_on_copy`
4017 * Fix false positive in `doc_markdown`
4018 * Fix false positive in `empty_loop`
4019 * Fix false positive in `if_same_then_else`
4020 * Fix false positive in `infinite_iter`
4021 * Fix false positive in `question_mark`
4022 * Fix false positive in `useless_asref`
4023 * Fix false positive in `wildcard_dependencies`
4024 * Fix false positive in `write_with_newline`
4025 * Add suggestion to `explicit_write`
4026 * Improve suggestions for `question_mark` lint
4027 * Fix incorrect suggestion for `get_unwrap`
4028
4029 ## Rust 1.32
4030
4031 Released 2019-01-17
4032
4033 [View all 71 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2018-10-24T05%3A02%3A21Z..2018-11-27T17%3A29%3A34Z+base%3Amaster)
4034
4035 * New lints: [`slow_vector_initialization`], `mem_discriminant_non_enum`,
4036 [`redundant_clone`], [`wildcard_dependencies`],
4037 [`into_iter_on_ref`], `into_iter_on_array`, [`deprecated_cfg_attr`],
4038 [`cargo_common_metadata`]
4039 * Add support for `u128` and `i128` to integer related lints
4040 * Add float support to `mistyped_literal_suffixes`
4041 * Fix false positives in `use_self`
4042 * Fix false positives in `missing_comma`
4043 * Fix false positives in `new_ret_no_self`
4044 * Fix false positives in `possible_missing_comma`
4045 * Fix false positive in `integer_arithmetic` in constant items
4046 * Fix false positive in `needless_borrow`
4047 * Fix false positive in `out_of_bounds_indexing`
4048 * Fix false positive in `new_without_default_derive`
4049 * Fix false positive in `string_lit_as_bytes`
4050 * Fix false negative in `out_of_bounds_indexing`
4051 * Fix false negative in `use_self`. It will now also check existential types
4052 * Fix incorrect suggestion for `redundant_closure_call`
4053 * Fix various suggestions that contained expanded macros
4054 * Fix `bool_comparison` triggering 3 times on on on the same code
4055 * Expand `trivially_copy_pass_by_ref` to work on trait methods
4056 * Improve suggestion for `needless_range_loop`
4057 * Move `needless_pass_by_value` from `pedantic` group to `style`
4058
4059 ## Rust 1.31
4060
4061 Released 2018-12-06
4062
4063 [125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
4064
4065 * Clippy has been relicensed under a dual MIT / Apache license.
4066 See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
4067 information.
4068 * With Rust 1.31, Clippy is no longer available via crates.io. The recommended
4069 installation method is via `rustup component add clippy`.
4070 * New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
4071 [`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
4072 * Fix ICE in `if_let_redundant_pattern_matching`
4073 * Fix ICE in `needless_pass_by_value` when encountering a generic function
4074 argument with a lifetime parameter
4075 * Fix ICE in `needless_range_loop`
4076 * Fix ICE in `single_char_pattern` when encountering a constant value
4077 * Fix false positive in `assign_op_pattern`
4078 * Fix false positive in `boxed_local` on trait implementations
4079 * Fix false positive in `cmp_owned`
4080 * Fix false positive in `collapsible_if` when conditionals have comments
4081 * Fix false positive in `double_parens`
4082 * Fix false positive in `excessive_precision`
4083 * Fix false positive in `explicit_counter_loop`
4084 * Fix false positive in `fn_to_numeric_cast_with_truncation`
4085 * Fix false positive in `map_clone`
4086 * Fix false positive in `new_ret_no_self`
4087 * Fix false positive in `new_without_default` when `new` is unsafe
4088 * Fix false positive in `type_complexity` when using extern types
4089 * Fix false positive in `useless_format`
4090 * Fix false positive in `wrong_self_convention`
4091 * Fix incorrect suggestion for `excessive_precision`
4092 * Fix incorrect suggestion for `expect_fun_call`
4093 * Fix incorrect suggestion for `get_unwrap`
4094 * Fix incorrect suggestion for `useless_format`
4095 * `fn_to_numeric_cast_with_truncation` lint can be disabled again
4096 * Improve suggestions for `manual_memcpy`
4097 * Improve help message for `needless_lifetimes`
4098
4099 ## Rust 1.30
4100
4101 Released 2018-10-25
4102
4103 [View all 88 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2018-08-02T16%3A54%3A12Z..2018-09-17T09%3A44%3A06Z+base%3Amaster)
4104 * Deprecate `assign_ops` lint
4105 * New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
4106 [`needless_collect`], [`copy_iterator`]
4107 * `cargo clippy -V` now includes the Clippy commit hash of the Rust
4108 Clippy component
4109 * Fix ICE in `implicit_hasher`
4110 * Fix ICE when encountering `println!("{}" a);`
4111 * Fix ICE when encountering a macro call in match statements
4112 * Fix false positive in `default_trait_access`
4113 * Fix false positive in `trivially_copy_pass_by_ref`
4114 * Fix false positive in `similar_names`
4115 * Fix false positive in `redundant_field_name`
4116 * Fix false positive in `expect_fun_call`
4117 * Fix false negative in `identity_conversion`
4118 * Fix false negative in `explicit_counter_loop`
4119 * Fix `range_plus_one` suggestion and false negative
4120 * `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
4121 * Fix `useless_attribute` to also whitelist `unused_extern_crates`
4122 * Fix incorrect suggestion for `single_char_pattern`
4123 * Improve suggestion for `identity_conversion` lint
4124 * Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
4125 * Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
4126 * Move `shadow_unrelated` from `restriction` group to `pedantic`
4127 * Move `indexing_slicing` from `pedantic` group to `restriction`
4128
4129 ## Rust 1.29
4130
4131 Released 2018-09-13
4132
4133 [v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
4134
4135 * :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
4136 :tada:
4137 You can now run `rustup component add clippy-preview` and then `cargo
4138 clippy` to run Clippy. This should put an end to the continuous nightly
4139 upgrades for Clippy users.
4140 * Clippy now follows the Rust versioning scheme instead of its own
4141 * Fix ICE when encountering a `while let (..) = x.iter()` construct
4142 * Fix false positives in `use_self`
4143 * Fix false positive in `trivially_copy_pass_by_ref`
4144 * Fix false positive in `useless_attribute` lint
4145 * Fix false positive in `print_literal`
4146 * Fix `use_self` regressions
4147 * Improve lint message for `neg_cmp_op_on_partial_ord`
4148 * Improve suggestion highlight for `single_char_pattern`
4149 * Improve suggestions for various print/write macro lints
4150 * Improve website header
4151
4152 ## 0.0.212 (2018-07-10)
4153 * Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
4154
4155 ## 0.0.211
4156 * Rustup to *rustc 1.28.0-nightly (e3bf634e0 2018-06-28)*
4157
4158 ## 0.0.210
4159 * Rustup to *rustc 1.28.0-nightly (01cc982e9 2018-06-24)*
4160
4161 ## 0.0.209
4162 * Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
4163
4164 ## 0.0.208
4165 * Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*
4166
4167 ## 0.0.207
4168 * Rustup to *rustc 1.28.0-nightly (2a0062974 2018-06-09)*
4169
4170 ## 0.0.206
4171 * Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)*
4172
4173 ## 0.0.205
4174 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)*
4175 * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint
4176
4177 ## 0.0.204
4178 * Rustup to *rustc 1.28.0-nightly (71e87be38 2018-05-22)*
4179
4180 ## 0.0.203
4181 * Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
4182 * Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
4183
4184 ## 0.0.202
4185 * Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*
4186
4187 ## 0.0.201
4188 * Rustup to *rustc 1.27.0-nightly (2f2a11dfc 2018-05-16)*
4189
4190 ## 0.0.200
4191 * Rustup to *rustc 1.27.0-nightly (9fae15374 2018-05-13)*
4192
4193 ## 0.0.199
4194 * Rustup to *rustc 1.27.0-nightly (ff2ac35db 2018-05-12)*
4195
4196 ## 0.0.198
4197 * Rustup to *rustc 1.27.0-nightly (acd3871ba 2018-05-10)*
4198
4199 ## 0.0.197
4200 * Rustup to *rustc 1.27.0-nightly (428ea5f6b 2018-05-06)*
4201
4202 ## 0.0.196
4203 * Rustup to *rustc 1.27.0-nightly (e82261dfb 2018-05-03)*
4204
4205 ## 0.0.195
4206 * Rustup to *rustc 1.27.0-nightly (ac3c2288f 2018-04-18)*
4207
4208 ## 0.0.194
4209 * Rustup to *rustc 1.27.0-nightly (bd40cbbe1 2018-04-14)*
4210 * New lints: [`cast_ptr_alignment`], [`transmute_ptr_to_ptr`], [`write_literal`], [`write_with_newline`], [`writeln_empty_string`]
4211
4212 ## 0.0.193
4213 * Rustup to *rustc 1.27.0-nightly (eeea94c11 2018-04-06)*
4214
4215 ## 0.0.192
4216 * Rustup to *rustc 1.27.0-nightly (fb44b4c0e 2018-04-04)*
4217 * New lint: [`print_literal`]
4218
4219 ## 0.0.191
4220 * Rustup to *rustc 1.26.0-nightly (ae544ee1c 2018-03-29)*
4221 * Lint audit; categorize lints as style, correctness, complexity, pedantic, nursery, restriction.
4222
4223 ## 0.0.190
4224 * Fix a bunch of intermittent cargo bugs
4225
4226 ## 0.0.189
4227 * Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
4228
4229 ## 0.0.188
4230 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
4231 * New lint: [`while_immutable_condition`]
4232
4233 ## 0.0.187
4234 * Rustup to *rustc 1.26.0-nightly (322d7f7b9 2018-02-25)*
4235 * New lints: [`redundant_field_names`], [`suspicious_arithmetic_impl`], [`suspicious_op_assign_impl`]
4236
4237 ## 0.0.186
4238 * Rustup to *rustc 1.25.0-nightly (0c6091fbd 2018-02-04)*
4239 * Various false positive fixes
4240
4241 ## 0.0.185
4242 * Rustup to *rustc 1.25.0-nightly (56733bc9f 2018-02-01)*
4243 * New lint: [`question_mark`]
4244
4245 ## 0.0.184
4246 * Rustup to *rustc 1.25.0-nightly (90eb44a58 2018-01-29)*
4247 * New lints: [`double_comparisons`], [`empty_line_after_outer_attr`]
4248
4249 ## 0.0.183
4250 * Rustup to *rustc 1.25.0-nightly (21882aad7 2018-01-28)*
4251 * New lint: [`misaligned_transmute`]
4252
4253 ## 0.0.182
4254 * Rustup to *rustc 1.25.0-nightly (a0dcecff9 2018-01-24)*
4255 * New lint: [`decimal_literal_representation`]
4256
4257 ## 0.0.181
4258 * Rustup to *rustc 1.25.0-nightly (97520ccb1 2018-01-21)*
4259 * New lints: [`else_if_without_else`], [`option_option`], [`unit_arg`], [`unnecessary_fold`]
4260 * Removed `unit_expr`
4261 * Various false positive fixes for [`needless_pass_by_value`]
4262
4263 ## 0.0.180
4264 * Rustup to *rustc 1.25.0-nightly (3f92e8d89 2018-01-14)*
4265
4266 ## 0.0.179
4267 * Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
4268
4269 ## 0.0.178
4270 * Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
4271
4272 ## 0.0.177
4273 * Rustup to *rustc 1.24.0-nightly (250b49205 2017-12-21)*
4274 * New lint: [`match_as_ref`]
4275
4276 ## 0.0.176
4277 * Rustup to *rustc 1.24.0-nightly (0077d128d 2017-12-14)*
4278
4279 ## 0.0.175
4280 * Rustup to *rustc 1.24.0-nightly (bb42071f6 2017-12-01)*
4281
4282 ## 0.0.174
4283 * Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
4284
4285 ## 0.0.173
4286 * Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*
4287
4288 ## 0.0.172
4289 * Rustup to *rustc 1.23.0-nightly (d0f8e2913 2017-11-16)*
4290
4291 ## 0.0.171
4292 * Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
4293
4294 ## 0.0.170
4295 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
4296
4297 ## 0.0.169
4298 * Rustup to *rustc 1.23.0-nightly (3b82e4c74 2017-11-05)*
4299 * New lints: [`just_underscores_and_digits`], `result_map_unwrap_or_else`, [`transmute_bytes_to_str`]
4300
4301 ## 0.0.168
4302 * Rustup to *rustc 1.23.0-nightly (f0fe716db 2017-10-30)*
4303
4304 ## 0.0.167
4305 * Rustup to *rustc 1.23.0-nightly (90ef3372e 2017-10-29)*
4306 * New lints: `const_static_lifetime`, [`erasing_op`], [`fallible_impl_from`], [`println_empty_string`], [`useless_asref`]
4307
4308 ## 0.0.166
4309 * Rustup to *rustc 1.22.0-nightly (b7960878b 2017-10-18)*
4310 * New lints: [`explicit_write`], `identity_conversion`, [`implicit_hasher`], `invalid_ref`, [`option_map_or_none`],
4311 [`range_minus_one`], [`range_plus_one`], [`transmute_int_to_bool`], [`transmute_int_to_char`],
4312 [`transmute_int_to_float`]
4313
4314 ## 0.0.165
4315 * Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
4316 * New lint: [`mut_range_bound`]
4317
4318 ## 0.0.164
4319 * Update to *rustc 1.22.0-nightly (6c476ce46 2017-09-25)*
4320 * New lint: [`int_plus_one`]
4321
4322 ## 0.0.163
4323 * Update to *rustc 1.22.0-nightly (14039a42a 2017-09-22)*
4324
4325 ## 0.0.162
4326 * Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
4327 * New lint: [`chars_last_cmp`]
4328 * Improved suggestions for [`needless_borrow`], [`ptr_arg`],
4329
4330 ## 0.0.161
4331 * Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
4332
4333 ## 0.0.160
4334 * Update to *rustc 1.22.0-nightly (dd08c3070 2017-09-12)*
4335
4336 ## 0.0.159
4337 * Update to *rustc 1.22.0-nightly (eba374fb2 2017-09-11)*
4338 * New lint: [`clone_on_ref_ptr`]
4339
4340 ## 0.0.158
4341 * New lint: [`manual_memcpy`]
4342 * [`cast_lossless`] no longer has redundant parentheses in its suggestions
4343 * Update to *rustc 1.22.0-nightly (dead08cb3 2017-09-08)*
4344
4345 ## 0.0.157 - 2017-09-04
4346 * Update to *rustc 1.22.0-nightly (981ce7d8d 2017-09-03)*
4347 * New lint: `unit_expr`
4348
4349 ## 0.0.156 - 2017-09-03
4350 * Update to *rustc 1.22.0-nightly (744dd6c1d 2017-09-02)*
4351
4352 ## 0.0.155
4353 * Update to *rustc 1.21.0-nightly (c11f689d2 2017-08-29)*
4354 * New lint: [`infinite_iter`], [`maybe_infinite_iter`], [`cast_lossless`]
4355
4356 ## 0.0.154
4357 * Update to *rustc 1.21.0-nightly (2c0558f63 2017-08-24)*
4358 * Fix [`use_self`] triggering inside derives
4359 * Add support for linting an entire workspace with `cargo clippy --all`
4360 * New lint: [`naive_bytecount`]
4361
4362 ## 0.0.153
4363 * Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)*
4364 * New lint: [`use_self`]
4365
4366 ## 0.0.152
4367 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)*
4368
4369 ## 0.0.151
4370 * Update to *rustc 1.21.0-nightly (13d94d5fa 2017-08-10)*
4371
4372 ## 0.0.150
4373 * Update to *rustc 1.21.0-nightly (215e0b10e 2017-08-08)*
4374
4375 ## 0.0.148
4376 * Update to *rustc 1.21.0-nightly (37c7d0ebb 2017-07-31)*
4377 * New lints: [`unreadable_literal`], [`inconsistent_digit_grouping`], [`large_digit_groups`]
4378
4379 ## 0.0.147
4380 * Update to *rustc 1.21.0-nightly (aac223f4f 2017-07-30)*
4381
4382 ## 0.0.146
4383 * Update to *rustc 1.21.0-nightly (52a330969 2017-07-27)*
4384 * Fixes false positives in `inline_always`
4385 * Fixes false negatives in `panic_params`
4386
4387 ## 0.0.145
4388 * Update to *rustc 1.20.0-nightly (afe145d22 2017-07-23)*
4389
4390 ## 0.0.144
4391 * Update to *rustc 1.20.0-nightly (086eaa78e 2017-07-15)*
4392
4393 ## 0.0.143
4394 * Update to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
4395 * Fix `cargo clippy` crashing on `dylib` projects
4396 * Fix false positives around `nested_while_let` and `never_loop`
4397
4398 ## 0.0.142
4399 * Update to *rustc 1.20.0-nightly (067971139 2017-07-02)*
4400
4401 ## 0.0.141
4402 * Rewrite of the `doc_markdown` lint.
4403 * Deprecated [`range_step_by_zero`]
4404 * New lint: [`iterator_step_by_zero`]
4405 * New lint: [`needless_borrowed_reference`]
4406 * Update to *rustc 1.20.0-nightly (69c65d296 2017-06-28)*
4407
4408 ## 0.0.140 - 2017-06-16
4409 * Update to *rustc 1.19.0-nightly (258ae6dd9 2017-06-15)*
4410
4411 ## 0.0.139 — 2017-06-10
4412 * Update to *rustc 1.19.0-nightly (4bf5c99af 2017-06-10)*
4413 * Fix bugs with for loop desugaring
4414 * Check for [`AsRef`]/[`AsMut`] arguments in [`wrong_self_convention`]
4415
4416 ## 0.0.138 — 2017-06-05
4417 * Update to *rustc 1.19.0-nightly (0418fa9d3 2017-06-04)*
4418
4419 ## 0.0.137 — 2017-06-05
4420 * Update to *rustc 1.19.0-nightly (6684d176c 2017-06-03)*
4421
4422 ## 0.0.136 — 2017—05—26
4423 * Update to *rustc 1.19.0-nightly (557967766 2017-05-26)*
4424
4425 ## 0.0.135 — 2017—05—24
4426 * Update to *rustc 1.19.0-nightly (5b13bff52 2017-05-23)*
4427
4428 ## 0.0.134 — 2017—05—19
4429 * Update to *rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)*
4430
4431 ## 0.0.133 — 2017—05—14
4432 * Update to *rustc 1.19.0-nightly (826d8f385 2017-05-13)*
4433
4434 ## 0.0.132 — 2017—05—05
4435 * Fix various bugs and some ices
4436
4437 ## 0.0.131 — 2017—05—04
4438 * Update to *rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)*
4439
4440 ## 0.0.130 — 2017—05—03
4441 * Update to *rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)*
4442
4443 ## 0.0.129 — 2017-05-01
4444 * Update to *rustc 1.19.0-nightly (06fb4d256 2017-04-30)*
4445
4446 ## 0.0.128 — 2017-04-28
4447 * Update to *rustc 1.18.0-nightly (94e884b63 2017-04-27)*
4448
4449 ## 0.0.127 — 2017-04-27
4450 * Update to *rustc 1.18.0-nightly (036983201 2017-04-26)*
4451 * New lint: [`needless_continue`]
4452
4453 ## 0.0.126 — 2017-04-24
4454 * Update to *rustc 1.18.0-nightly (2bd4b5c6d 2017-04-23)*
4455
4456 ## 0.0.125 — 2017-04-19
4457 * Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)*
4458
4459 ## 0.0.124 — 2017-04-16
4460 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)*
4461
4462 ## 0.0.123 — 2017-04-07
4463 * Fix various false positives
4464
4465 ## 0.0.122 — 2017-04-07
4466 * Rustup to *rustc 1.18.0-nightly (91ae22a01 2017-04-05)*
4467 * New lint: [`op_ref`]
4468
4469 ## 0.0.121 — 2017-03-21
4470 * Rustup to *rustc 1.17.0-nightly (134c4a0f0 2017-03-20)*
4471
4472 ## 0.0.120 — 2017-03-17
4473 * Rustup to *rustc 1.17.0-nightly (0aeb9c129 2017-03-15)*
4474
4475 ## 0.0.119 — 2017-03-13
4476 * Rustup to *rustc 1.17.0-nightly (824c9ebbd 2017-03-12)*
4477
4478 ## 0.0.118 — 2017-03-05
4479 * Rustup to *rustc 1.17.0-nightly (b1e31766d 2017-03-03)*
4480
4481 ## 0.0.117 — 2017-03-01
4482 * Rustup to *rustc 1.17.0-nightly (be760566c 2017-02-28)*
4483
4484 ## 0.0.116 — 2017-02-28
4485 * Fix `cargo clippy` on 64 bit windows systems
4486
4487 ## 0.0.115 — 2017-02-27
4488 * Rustup to *rustc 1.17.0-nightly (60a0edc6c 2017-02-26)*
4489 * New lints: [`zero_ptr`], [`never_loop`], [`mut_from_ref`]
4490
4491 ## 0.0.114 — 2017-02-08
4492 * Rustup to *rustc 1.17.0-nightly (c49d10207 2017-02-07)*
4493 * Tests are now ui tests (testing the exact output of rustc)
4494
4495 ## 0.0.113 — 2017-02-04
4496 * Rustup to *rustc 1.16.0-nightly (eedaa94e3 2017-02-02)*
4497 * New lint: [`large_enum_variant`]
4498 * `explicit_into_iter_loop` provides suggestions
4499
4500 ## 0.0.112 — 2017-01-27
4501 * Rustup to *rustc 1.16.0-nightly (df8debf6d 2017-01-25)*
4502
4503 ## 0.0.111 — 2017-01-21
4504 * Rustup to *rustc 1.16.0-nightly (a52da95ce 2017-01-20)*
4505
4506 ## 0.0.110 — 2017-01-20
4507 * Add badges and categories to `Cargo.toml`
4508
4509 ## 0.0.109 — 2017-01-19
4510 * Update to *rustc 1.16.0-nightly (c07a6ae77 2017-01-17)*
4511
4512 ## 0.0.108 — 2017-01-12
4513 * Update to *rustc 1.16.0-nightly (2782e8f8f 2017-01-12)*
4514
4515 ## 0.0.107 — 2017-01-11
4516 * Update regex dependency
4517 * Fix FP when matching `&&mut` by `&ref`
4518 * Reintroduce `for (_, x) in &mut hash_map` -> `for x in hash_map.values_mut()`
4519 * New lints: [`unused_io_amount`], [`forget_ref`], [`short_circuit_statement`]
4520
4521 ## 0.0.106 — 2017-01-04
4522 * Fix FP introduced by rustup in [`wrong_self_convention`]
4523
4524 ## 0.0.105 — 2017-01-04
4525 * Update to *rustc 1.16.0-nightly (468227129 2017-01-03)*
4526 * New lints: [`deref_addrof`], [`double_parens`], [`pub_enum_variant_names`]
4527 * Fix suggestion in [`new_without_default`]
4528 * FP fix in [`absurd_extreme_comparisons`]
4529
4530 ## 0.0.104 — 2016-12-15
4531 * Update to *rustc 1.15.0-nightly (8f02c429a 2016-12-15)*
4532
4533 ## 0.0.103 — 2016-11-25
4534 * Update to *rustc 1.15.0-nightly (d5814b03e 2016-11-23)*
4535
4536 ## 0.0.102 — 2016-11-24
4537 * Update to *rustc 1.15.0-nightly (3bf2be9ce 2016-11-22)*
4538
4539 ## 0.0.101 — 2016-11-23
4540 * Update to *rustc 1.15.0-nightly (7b3eeea22 2016-11-21)*
4541 * New lint: [`string_extend_chars`]
4542
4543 ## 0.0.100 — 2016-11-20
4544 * Update to *rustc 1.15.0-nightly (ac635aa95 2016-11-18)*
4545
4546 ## 0.0.99 — 2016-11-18
4547 * Update to rustc 1.15.0-nightly (0ed951993 2016-11-14)
4548 * New lint: [`get_unwrap`]
4549
4550 ## 0.0.98 — 2016-11-08
4551 * Fixes an issue due to a change in how cargo handles `--sysroot`, which broke `cargo clippy`
4552
4553 ## 0.0.97 — 2016-11-03
4554 * For convenience, `cargo clippy` defines a `cargo-clippy` feature. This was
4555 previously added for a short time under the name `clippy` but removed for
4556 compatibility.
4557 * `cargo clippy --help` is more helping (and less helpful :smile:)
4558 * Rustup to *rustc 1.14.0-nightly (5665bdf3e 2016-11-02)*
4559 * New lints: [`if_let_redundant_pattern_matching`], [`partialeq_ne_impl`]
4560
4561 ## 0.0.96 — 2016-10-22
4562 * Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)*
4563 * New lint: [`iter_skip_next`]
4564
4565 ## 0.0.95 — 2016-10-06
4566 * Rustup to *rustc 1.14.0-nightly (3210fd5c2 2016-10-05)*
4567
4568 ## 0.0.94 — 2016-10-04
4569 * Fixes bustage on Windows due to forbidden directory name
4570
4571 ## 0.0.93 — 2016-10-03
4572 * Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
4573 * `option_map_unwrap_or` and `option_map_unwrap_or_else` are now
4574 allowed by default.
4575 * New lint: [`explicit_into_iter_loop`]
4576
4577 ## 0.0.92 — 2016-09-30
4578 * Rustup to *rustc 1.14.0-nightly (289f3a4ca 2016-09-29)*
4579
4580 ## 0.0.91 — 2016-09-28
4581 * Rustup to *rustc 1.13.0-nightly (d0623cf7b 2016-09-26)*
4582
4583 ## 0.0.90 — 2016-09-09
4584 * Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)*
4585
4586 ## 0.0.89 — 2016-09-06
4587 * Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
4588
4589 ## 0.0.88 — 2016-09-04
4590 * Rustup to *rustc 1.13.0-nightly (70598e04f 2016-09-03)*
4591 * The following lints are not new but were only usable through the `clippy`
4592 lint groups: [`filter_next`], `for_loop_over_option`,
4593 `for_loop_over_result` and [`match_overlapping_arm`]. You should now be
4594 able to `#[allow/deny]` them individually and they are available directly
4595 through `cargo clippy`.
4596
4597 ## 0.0.87 — 2016-08-31
4598 * Rustup to *rustc 1.13.0-nightly (eac41469d 2016-08-30)*
4599 * New lints: [`builtin_type_shadow`]
4600 * Fix FP in [`zero_prefixed_literal`] and `0b`/`0o`
4601
4602 ## 0.0.86 — 2016-08-28
4603 * Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
4604 * New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
4605
4606 ## 0.0.85 — 2016-08-19
4607 * Fix ICE with [`useless_attribute`]
4608 * [`useless_attribute`] ignores `unused_imports` on `use` statements
4609
4610 ## 0.0.84 — 2016-08-18
4611 * Rustup to *rustc 1.13.0-nightly (aef6971ca 2016-08-17)*
4612
4613 ## 0.0.83 — 2016-08-17
4614 * Rustup to *rustc 1.12.0-nightly (1bf5fa326 2016-08-16)*
4615 * New lints: [`print_with_newline`], [`useless_attribute`]
4616
4617 ## 0.0.82 — 2016-08-17
4618 * Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)*
4619 * New lint: [`module_inception`]
4620
4621 ## 0.0.81 — 2016-08-14
4622 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)*
4623 * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`]
4624 * False positive fix in [`too_many_arguments`]
4625 * Addition of functionality to [`needless_borrow`]
4626 * Suggestions for [`clone_on_copy`]
4627 * Bug fix in [`wrong_self_convention`]
4628 * Doc improvements
4629
4630 ## 0.0.80 — 2016-07-31
4631 * Rustup to *rustc 1.12.0-nightly (1225e122f 2016-07-30)*
4632 * New lints: [`misrefactored_assign_op`], [`serde_api_misuse`]
4633
4634 ## 0.0.79 — 2016-07-10
4635 * Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
4636 * Major suggestions refactoring
4637
4638 ## 0.0.78 — 2016-07-02
4639 * Rustup to *rustc 1.11.0-nightly (01411937f 2016-07-01)*
4640 * New lints: [`wrong_transmute`], [`double_neg`], [`filter_map`]
4641 * For compatibility, `cargo clippy` does not defines the `clippy` feature
4642 introduced in 0.0.76 anymore
4643 * [`collapsible_if`] now considers `if let`
4644
4645 ## 0.0.77 — 2016-06-21
4646 * Rustup to *rustc 1.11.0-nightly (5522e678b 2016-06-20)*
4647 * New lints: `stutter` and [`iter_nth`]
4648
4649 ## 0.0.76 — 2016-06-10
4650 * Rustup to *rustc 1.11.0-nightly (7d2f75a95 2016-06-09)*
4651 * `cargo clippy` now automatically defines the `clippy` feature
4652 * New lint: [`not_unsafe_ptr_arg_deref`]
4653
4654 ## 0.0.75 — 2016-06-08
4655 * Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*
4656
4657 ## 0.0.74 — 2016-06-07
4658 * Fix bug with `cargo-clippy` JSON parsing
4659 * Add the `CLIPPY_DISABLE_DOCS_LINKS` environment variable to deactivate the
4660 “for further information visit *lint-link*” message.
4661
4662 ## 0.0.73 — 2016-06-05
4663 * Fix false positives in [`useless_let_if_seq`]
4664
4665 ## 0.0.72 — 2016-06-04
4666 * Fix false positives in [`useless_let_if_seq`]
4667
4668 ## 0.0.71 — 2016-05-31
4669 * Rustup to *rustc 1.11.0-nightly (a967611d8 2016-05-30)*
4670 * New lint: [`useless_let_if_seq`]
4671
4672 ## 0.0.70 — 2016-05-28
4673 * Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*
4674 * [`invalid_regex`] and [`trivial_regex`] can now warn on `RegexSet::new`,
4675 `RegexBuilder::new` and byte regexes
4676
4677 ## 0.0.69 — 2016-05-20
4678 * Rustup to *rustc 1.10.0-nightly (476fe6eef 2016-05-21)*
4679 * [`used_underscore_binding`] has been made `Allow` temporarily
4680
4681 ## 0.0.68 — 2016-05-17
4682 * Rustup to *rustc 1.10.0-nightly (cd6a40017 2016-05-16)*
4683 * New lint: [`unnecessary_operation`]
4684
4685 ## 0.0.67 — 2016-05-12
4686 * Rustup to *rustc 1.10.0-nightly (22ac88f1a 2016-05-11)*
4687
4688 ## 0.0.66 — 2016-05-11
4689 * New `cargo clippy` subcommand
4690 * New lints: [`assign_op_pattern`], [`assign_ops`], [`needless_borrow`]
4691
4692 ## 0.0.65 — 2016-05-08
4693 * Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
4694 * New lints: [`float_arithmetic`], [`integer_arithmetic`]
4695
4696 ## 0.0.64 — 2016-04-26
4697 * Rustup to *rustc 1.10.0-nightly (645dd013a 2016-04-24)*
4698 * New lints: `temporary_cstring_as_ptr`, [`unsafe_removed_from_name`], and [`mem_forget`]
4699
4700 ## 0.0.63 — 2016-04-08
4701 * Rustup to *rustc 1.9.0-nightly (7979dd608 2016-04-07)*
4702
4703 ## 0.0.62 — 2016-04-07
4704 * Rustup to *rustc 1.9.0-nightly (bf5da36f1 2016-04-06)*
4705
4706 ## 0.0.61 — 2016-04-03
4707 * Rustup to *rustc 1.9.0-nightly (5ab11d72c 2016-04-02)*
4708 * New lint: [`invalid_upcast_comparisons`]
4709
4710 ## 0.0.60 — 2016-04-01
4711 * Rustup to *rustc 1.9.0-nightly (e1195c24b 2016-03-31)*
4712
4713 ## 0.0.59 — 2016-03-31
4714 * Rustup to *rustc 1.9.0-nightly (30a3849f2 2016-03-30)*
4715 * New lints: [`logic_bug`], [`nonminimal_bool`]
4716 * Fixed: [`match_same_arms`] now ignores arms with guards
4717 * Improved: [`useless_vec`] now warns on `for … in vec![…]`
4718
4719 ## 0.0.58 — 2016-03-27
4720 * Rustup to *rustc 1.9.0-nightly (d5a91e695 2016-03-26)*
4721 * New lint: [`doc_markdown`]
4722
4723 ## 0.0.57 — 2016-03-27
4724 * Update to *rustc 1.9.0-nightly (a1e29daf1 2016-03-25)*
4725 * Deprecated lints: [`str_to_string`], [`string_to_string`], [`unstable_as_slice`], [`unstable_as_mut_slice`]
4726 * New lint: [`crosspointer_transmute`]
4727
4728 ## 0.0.56 — 2016-03-23
4729 * Update to *rustc 1.9.0-nightly (0dcc413e4 2016-03-22)*
4730 * New lints: [`many_single_char_names`] and [`similar_names`]
4731
4732 ## 0.0.55 — 2016-03-21
4733 * Update to *rustc 1.9.0-nightly (02310fd31 2016-03-19)*
4734
4735 ## 0.0.54 — 2016-03-16
4736 * Update to *rustc 1.9.0-nightly (c66d2380a 2016-03-15)*
4737
4738 ## 0.0.53 — 2016-03-15
4739 * Add a [configuration file]
4740
4741 ## ~~0.0.52~~
4742
4743 ## 0.0.51 — 2016-03-13
4744 * Add `str` to types considered by [`len_zero`]
4745 * New lints: [`indexing_slicing`]
4746
4747 ## 0.0.50 — 2016-03-11
4748 * Update to *rustc 1.9.0-nightly (c9629d61c 2016-03-10)*
4749
4750 ## 0.0.49 — 2016-03-09
4751 * Update to *rustc 1.9.0-nightly (eabfc160f 2016-03-08)*
4752 * New lints: [`overflow_check_conditional`], `unused_label`, [`new_without_default`]
4753
4754 ## 0.0.48 — 2016-03-07
4755 * Fixed: ICE in [`needless_range_loop`] with globals
4756
4757 ## 0.0.47 — 2016-03-07
4758 * Update to *rustc 1.9.0-nightly (998a6720b 2016-03-07)*
4759 * New lint: [`redundant_closure_call`]
4760
4761 [`AsMut`]: https://doc.rust-lang.org/std/convert/trait.AsMut.html
4762 [`AsRef`]: https://doc.rust-lang.org/std/convert/trait.AsRef.html
4763 [configuration file]: ./rust-clippy#configuration
4764 [pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
4765 [adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/adding_lints.md
4766 [`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
4767 [Clippy's lint list]: https://rust-lang.github.io/rust-clippy/master/index.html
4768
4769 <!-- lint disable no-unused-definitions -->
4770 <!-- begin autogenerated links to lint list -->
4771 [`absolute_paths`]: https://rust-lang.github.io/rust-clippy/master/index.html#absolute_paths
4772 [`absurd_extreme_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
4773 [`alloc_instead_of_core`]: https://rust-lang.github.io/rust-clippy/master/index.html#alloc_instead_of_core
4774 [`allow_attributes`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes
4775 [`allow_attributes_without_reason`]: https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason
4776 [`almost_complete_letter_range`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_letter_range
4777 [`almost_complete_range`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_complete_range
4778 [`almost_swapped`]: https://rust-lang.github.io/rust-clippy/master/index.html#almost_swapped
4779 [`approx_constant`]: https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant
4780 [`arc_with_non_send_sync`]: https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
4781 [`arithmetic_side_effects`]: https://rust-lang.github.io/rust-clippy/master/index.html#arithmetic_side_effects
4782 [`as_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_conversions
4783 [`as_ptr_cast_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_ptr_cast_mut
4784 [`as_underscore`]: https://rust-lang.github.io/rust-clippy/master/index.html#as_underscore
4785 [`assertions_on_constants`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
4786 [`assertions_on_result_states`]: https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
4787 [`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
4788 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
4789 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
4790 [`await_holding_invalid_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_invalid_type
4791 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
4792 [`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
4793 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
4794 [`big_endian_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#big_endian_bytes
4795 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
4796 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
4797 [`blanket_clippy_restriction_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#blanket_clippy_restriction_lints
4798 [`block_in_if_condition_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_expr
4799 [`block_in_if_condition_stmt`]: https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt
4800 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
4801 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
4802 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
4803 [`bool_to_int_with_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
4804 [`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
4805 [`borrow_deref_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
4806 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
4807 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
4808 [`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
4809 [`box_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_default
4810 [`box_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
4811 [`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
4812 [`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
4813 [`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
4814 [`bytes_count_to_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_count_to_len
4815 [`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
4816 [`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
4817 [`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
4818 [`cast_abs_to_unsigned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned
4819 [`cast_enum_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_constructor
4820 [`cast_enum_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_enum_truncation
4821 [`cast_lossless`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
4822 [`cast_nan_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_nan_to_int
4823 [`cast_possible_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
4824 [`cast_possible_wrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_wrap
4825 [`cast_precision_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss
4826 [`cast_ptr_alignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ptr_alignment
4827 [`cast_ref_to_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_ref_to_mut
4828 [`cast_sign_loss`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
4829 [`cast_slice_different_sizes`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes
4830 [`cast_slice_from_raw_parts`]: https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_from_raw_parts
4831 [`char_lit_as_u8`]: https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
4832 [`chars_last_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
4833 [`chars_next_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
4834 [`checked_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions
4835 [`clear_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#clear_with_drain
4836 [`clone_double_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
4837 [`clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
4838 [`clone_on_ref_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_ref_ptr
4839 [`cloned_instead_of_copied`]: https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
4840 [`cmp_nan`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_nan
4841 [`cmp_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
4842 [`cmp_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
4843 [`cognitive_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cognitive_complexity
4844 [`collapsible_else_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
4845 [`collapsible_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
4846 [`collapsible_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
4847 [`collapsible_str_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace
4848 [`collection_is_never_read`]: https://rust-lang.github.io/rust-clippy/master/index.html#collection_is_never_read
4849 [`comparison_chain`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
4850 [`comparison_to_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty
4851 [`const_static_lifetime`]: https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime
4852 [`copy_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#copy_iterator
4853 [`crate_in_macro_def`]: https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
4854 [`create_dir`]: https://rust-lang.github.io/rust-clippy/master/index.html#create_dir
4855 [`crosspointer_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute
4856 [`cyclomatic_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity
4857 [`dbg_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro
4858 [`debug_assert_with_mut_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#debug_assert_with_mut_call
4859 [`decimal_literal_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#decimal_literal_representation
4860 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
4861 [`default_constructed_unit_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs
4862 [`default_instead_of_iter_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_instead_of_iter_empty
4863 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
4864 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
4865 [`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
4866 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
4867 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
4868 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
4869 [`deref_by_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing
4870 [`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
4871 [`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
4872 [`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
4873 [`derive_partial_eq_without_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
4874 [`derived_hash_with_manual_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derived_hash_with_manual_eq
4875 [`disallowed_macros`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_macros
4876 [`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
4877 [`disallowed_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods
4878 [`disallowed_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
4879 [`disallowed_script_idents`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_script_idents
4880 [`disallowed_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
4881 [`disallowed_types`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
4882 [`diverging_sub_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
4883 [`doc_link_with_quotes`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
4884 [`doc_markdown`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
4885 [`double_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
4886 [`double_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_must_use
4887 [`double_neg`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_neg
4888 [`double_parens`]: https://rust-lang.github.io/rust-clippy/master/index.html#double_parens
4889 [`drain_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#drain_collect
4890 [`drop_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_bounds
4891 [`drop_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy
4892 [`drop_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
4893 [`drop_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref
4894 [`duplicate_mod`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_mod
4895 [`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
4896 [`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
4897 [`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
4898 [`empty_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_drop
4899 [`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
4900 [`empty_line_after_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
4901 [`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
4902 [`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
4903 [`empty_structs_with_brackets`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_structs_with_brackets
4904 [`enum_clike_unportable_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_clike_unportable_variant
4905 [`enum_glob_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use
4906 [`enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
4907 [`eq_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#eq_op
4908 [`equatable_if_let`]: https://rust-lang.github.io/rust-clippy/master/index.html#equatable_if_let
4909 [`erasing_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op
4910 [`err_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#err_expect
4911 [`error_impl_error`]: https://rust-lang.github.io/rust-clippy/master/index.html#error_impl_error
4912 [`eval_order_dependence`]: https://rust-lang.github.io/rust-clippy/master/index.html#eval_order_dependence
4913 [`excessive_nesting`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_nesting
4914 [`excessive_precision`]: https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
4915 [`exhaustive_enums`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums
4916 [`exhaustive_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_structs
4917 [`exit`]: https://rust-lang.github.io/rust-clippy/master/index.html#exit
4918 [`expect_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
4919 [`expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#expect_used
4920 [`expl_impl_clone_on_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
4921 [`explicit_auto_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
4922 [`explicit_counter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_counter_loop
4923 [`explicit_deref_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
4924 [`explicit_into_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_into_iter_loop
4925 [`explicit_iter_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
4926 [`explicit_write`]: https://rust-lang.github.io/rust-clippy/master/index.html#explicit_write
4927 [`extend_from_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_from_slice
4928 [`extend_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#extend_with_drain
4929 [`extra_unused_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
4930 [`extra_unused_type_parameters`]: https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
4931 [`fallible_impl_from`]: https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
4932 [`field_reassign_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
4933 [`filetype_is_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
4934 [`filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
4935 [`filter_map_bool_then`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_bool_then
4936 [`filter_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_identity
4937 [`filter_map_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_next
4938 [`filter_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
4939 [`find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#find_map
4940 [`flat_map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_identity
4941 [`flat_map_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
4942 [`float_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_arithmetic
4943 [`float_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
4944 [`float_cmp_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp_const
4945 [`float_equality_without_abs`]: https://rust-lang.github.io/rust-clippy/master/index.html#float_equality_without_abs
4946 [`fn_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_address_comparisons
4947 [`fn_null_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_null_check
4948 [`fn_params_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools
4949 [`fn_to_numeric_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast
4950 [`fn_to_numeric_cast_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any
4951 [`fn_to_numeric_cast_with_truncation`]: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation
4952 [`for_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map
4953 [`for_loop_over_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_option
4954 [`for_loop_over_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loop_over_result
4955 [`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
4956 [`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
4957 [`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
4958 [`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
4959 [`format_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_collect
4960 [`format_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
4961 [`format_push_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
4962 [`four_forward_slashes`]: https://rust-lang.github.io/rust-clippy/master/index.html#four_forward_slashes
4963 [`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
4964 [`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
4965 [`from_raw_with_void_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr
4966 [`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
4967 [`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
4968 [`get_first`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_first
4969 [`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
4970 [`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap
4971 [`host_endian_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#host_endian_bytes
4972 [`identity_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion
4973 [`identity_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
4974 [`if_let_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
4975 [`if_let_redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
4976 [`if_let_some_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
4977 [`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
4978 [`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
4979 [`if_then_some_else_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
4980 [`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
4981 [`ignored_unit_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
4982 [`impl_trait_in_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#impl_trait_in_params
4983 [`implicit_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
4984 [`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
4985 [`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
4986 [`implicit_saturating_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_add
4987 [`implicit_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub
4988 [`implied_bounds_in_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls
4989 [`impossible_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#impossible_comparisons
4990 [`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
4991 [`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
4992 [`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
4993 [`incorrect_clone_impl_on_copy_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_clone_impl_on_copy_type
4994 [`incorrect_partial_ord_impl_on_ord_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_partial_ord_impl_on_ord_type
4995 [`index_refutable_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice
4996 [`indexing_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
4997 [`ineffective_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask
4998 [`inefficient_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
4999 [`infallible_destructuring_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#infallible_destructuring_match
5000 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
5001 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
5002 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
5003 [`init_numbered_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
5004 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
5005 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
5006 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
5007 [`inline_fn_without_body`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body
5008 [`inspect_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#inspect_for_each
5009 [`int_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#int_plus_one
5010 [`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
5011 [`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
5012 [`into_iter_on_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array
5013 [`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
5014 [`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
5015 [`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
5016 [`invalid_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_ref
5017 [`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
5018 [`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
5019 [`invalid_utf8_in_unchecked`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_utf8_in_unchecked
5020 [`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
5021 [`is_digit_ascii_radix`]: https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
5022 [`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
5023 [`items_after_test_module`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_test_module
5024 [`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
5025 [`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
5026 [`iter_kv_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
5027 [`iter_next_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
5028 [`iter_next_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
5029 [`iter_not_returning_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
5030 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
5031 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
5032 [`iter_on_empty_collections`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_empty_collections
5033 [`iter_on_single_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_single_items
5034 [`iter_out_of_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_out_of_bounds
5035 [`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
5036 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
5037 [`iter_skip_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_zero
5038 [`iter_with_drain`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_with_drain
5039 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
5040 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
5041 [`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
5042 [`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
5043 [`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
5044 [`large_futures`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_futures
5045 [`large_include_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_include_file
5046 [`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
5047 [`large_stack_frames`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_frames
5048 [`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
5049 [`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
5050 [`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
5051 [`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
5052 [`let_underscore_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
5053 [`let_underscore_future`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future
5054 [`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
5055 [`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
5056 [`let_underscore_untyped`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
5057 [`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
5058 [`let_with_type_underscore`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_with_type_underscore
5059 [`lines_filter_map_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok
5060 [`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
5061 [`little_endian_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#little_endian_bytes
5062 [`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
5063 [`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
5064 [`macro_use_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
5065 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
5066 [`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
5067 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
5068 [`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
5069 [`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
5070 [`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
5071 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
5072 [`manual_find`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
5073 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
5074 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
5075 [`manual_instant_elapsed`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
5076 [`manual_is_ascii_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
5077 [`manual_is_finite`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_finite
5078 [`manual_is_infinite`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_infinite
5079 [`manual_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
5080 [`manual_main_separator_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_main_separator_str
5081 [`manual_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
5082 [`manual_memcpy`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
5083 [`manual_next_back`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
5084 [`manual_non_exhaustive`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
5085 [`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
5086 [`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
5087 [`manual_range_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
5088 [`manual_rem_euclid`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
5089 [`manual_retain`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_retain
5090 [`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
5091 [`manual_slice_size_calculation`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
5092 [`manual_split_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
5093 [`manual_str_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_str_repeat
5094 [`manual_string_new`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new
5095 [`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
5096 [`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
5097 [`manual_try_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
5098 [`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
5099 [`manual_while_let_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_while_let_some
5100 [`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
5101 [`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
5102 [`map_collect_result_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_collect_result_unit
5103 [`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
5104 [`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
5105 [`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
5106 [`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
5107 [`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
5108 [`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
5109 [`match_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_bool
5110 [`match_like_matches_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
5111 [`match_on_vec_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
5112 [`match_overlapping_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
5113 [`match_ref_pats`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
5114 [`match_result_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
5115 [`match_same_arms`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
5116 [`match_single_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
5117 [`match_str_case_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_str_case_mismatch
5118 [`match_wild_err_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
5119 [`match_wildcard_for_single_variants`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
5120 [`maybe_infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_infinite_iter
5121 [`maybe_misused_cfg`]: https://rust-lang.github.io/rust-clippy/master/index.html#maybe_misused_cfg
5122 [`mem_discriminant_non_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_discriminant_non_enum
5123 [`mem_forget`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
5124 [`mem_replace_option_with_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
5125 [`mem_replace_with_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
5126 [`mem_replace_with_uninit`]: https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
5127 [`min_ident_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_ident_chars
5128 [`min_max`]: https://rust-lang.github.io/rust-clippy/master/index.html#min_max
5129 [`misaligned_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#misaligned_transmute
5130 [`mismatched_target_os`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatched_target_os
5131 [`mismatching_type_param_order`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order
5132 [`misnamed_getters`]: https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters
5133 [`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
5134 [`missing_assert_message`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_message
5135 [`missing_asserts_for_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_asserts_for_indexing
5136 [`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
5137 [`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
5138 [`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
5139 [`missing_errors_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
5140 [`missing_fields_in_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_fields_in_debug
5141 [`missing_inline_in_public_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_inline_in_public_items
5142 [`missing_panics_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
5143 [`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
5144 [`missing_spin_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
5145 [`missing_trait_methods`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_trait_methods
5146 [`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
5147 [`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
5148 [`mixed_read_write_in_expression`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_read_write_in_expression
5149 [`mod_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
5150 [`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
5151 [`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
5152 [`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
5153 [`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
5154 [`multi_assignments`]: https://rust-lang.github.io/rust-clippy/master/index.html#multi_assignments
5155 [`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
5156 [`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
5157 [`multiple_unsafe_ops_per_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_unsafe_ops_per_block
5158 [`must_use_candidate`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate
5159 [`must_use_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#must_use_unit
5160 [`mut_from_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
5161 [`mut_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mut
5162 [`mut_mutex_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_mutex_lock
5163 [`mut_range_bound`]: https://rust-lang.github.io/rust-clippy/master/index.html#mut_range_bound
5164 [`mutable_key_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
5165 [`mutex_atomic`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
5166 [`mutex_integer`]: https://rust-lang.github.io/rust-clippy/master/index.html#mutex_integer
5167 [`naive_bytecount`]: https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount
5168 [`needless_arbitrary_self_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
5169 [`needless_bitwise_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bitwise_bool
5170 [`needless_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
5171 [`needless_bool_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool_assign
5172 [`needless_borrow`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
5173 [`needless_borrowed_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
5174 [`needless_borrows_for_generic_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
5175 [`needless_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
5176 [`needless_continue`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
5177 [`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
5178 [`needless_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_else
5179 [`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
5180 [`needless_if`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_if
5181 [`needless_late_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
5182 [`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
5183 [`needless_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
5184 [`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
5185 [`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
5186 [`needless_parens_on_range_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
5187 [`needless_pass_by_ref_mut`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
5188 [`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
5189 [`needless_pub_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self
5190 [`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
5191 [`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
5192 [`needless_raw_string_hashes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
5193 [`needless_raw_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_strings
5194 [`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
5195 [`needless_return_with_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return_with_question_mark
5196 [`needless_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_splitn
5197 [`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
5198 [`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
5199 [`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
5200 [`negative_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#negative_feature_names
5201 [`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
5202 [`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
5203 [`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
5204 [`new_without_default_derive`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive
5205 [`no_effect`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect
5206 [`no_effect_replace`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace
5207 [`no_effect_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
5208 [`no_mangle_with_rust_abi`]: https://rust-lang.github.io/rust-clippy/master/index.html#no_mangle_with_rust_abi
5209 [`non_ascii_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal
5210 [`non_canonical_clone_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl
5211 [`non_canonical_partial_ord_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
5212 [`non_minimal_cfg`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
5213 [`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
5214 [`non_send_fields_in_send_ty`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
5215 [`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
5216 [`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
5217 [`nonstandard_macro_braces`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
5218 [`not_unsafe_ptr_arg_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
5219 [`obfuscated_if_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
5220 [`octal_escapes`]: https://rust-lang.github.io/rust-clippy/master/index.html#octal_escapes
5221 [`ok_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#ok_expect
5222 [`only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#only_used_in_recursion
5223 [`op_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
5224 [`option_and_then_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_and_then_some
5225 [`option_as_ref_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
5226 [`option_env_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_env_unwrap
5227 [`option_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_expect_used
5228 [`option_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map
5229 [`option_if_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_if_let_else
5230 [`option_map_or_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_or_none
5231 [`option_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
5232 [`option_map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or
5233 [`option_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unwrap_or_else
5234 [`option_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_option
5235 [`option_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#option_unwrap_used
5236 [`or_fun_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
5237 [`or_then_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#or_then_unwrap
5238 [`out_of_bounds_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#out_of_bounds_indexing
5239 [`overflow_check_conditional`]: https://rust-lang.github.io/rust-clippy/master/index.html#overflow_check_conditional
5240 [`overly_complex_bool_expr`]: https://rust-lang.github.io/rust-clippy/master/index.html#overly_complex_bool_expr
5241 [`panic`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic
5242 [`panic_in_result_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
5243 [`panic_params`]: https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
5244 [`panicking_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
5245 [`partial_pub_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#partial_pub_fields
5246 [`partialeq_ne_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
5247 [`partialeq_to_none`]: https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
5248 [`path_buf_push_overwrite`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
5249 [`path_ends_with_ext`]: https://rust-lang.github.io/rust-clippy/master/index.html#path_ends_with_ext
5250 [`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
5251 [`permissions_set_readonly_false`]: https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false
5252 [`positional_named_format_parameters`]: https://rust-lang.github.io/rust-clippy/master/index.html#positional_named_format_parameters
5253 [`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
5254 [`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
5255 [`print_in_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_in_format_impl
5256 [`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
5257 [`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
5258 [`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
5259 [`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
5260 [`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
5261 [`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
5262 [`ptr_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
5263 [`ptr_cast_constness`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_cast_constness
5264 [`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
5265 [`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
5266 [`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
5267 [`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
5268 [`pub_with_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_with_shorthand
5269 [`pub_without_shorthand`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_without_shorthand
5270 [`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
5271 [`question_mark_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark_used
5272 [`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
5273 [`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
5274 [`range_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_step_by_zero
5275 [`range_zip_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_zip_with_len
5276 [`rc_buffer`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_buffer
5277 [`rc_clone_in_vec_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_clone_in_vec_init
5278 [`rc_mutex`]: https://rust-lang.github.io/rust-clippy/master/index.html#rc_mutex
5279 [`read_line_without_trim`]: https://rust-lang.github.io/rust-clippy/master/index.html#read_line_without_trim
5280 [`read_zero_byte_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#read_zero_byte_vec
5281 [`readonly_write_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#readonly_write_lock
5282 [`recursive_format_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#recursive_format_impl
5283 [`redundant_allocation`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_allocation
5284 [`redundant_as_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_as_str
5285 [`redundant_async_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_async_block
5286 [`redundant_at_rest_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_at_rest_pattern
5287 [`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
5288 [`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
5289 [`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
5290 [`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
5291 [`redundant_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_comparisons
5292 [`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
5293 [`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
5294 [`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
5295 [`redundant_guards`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
5296 [`redundant_locals`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_locals
5297 [`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
5298 [`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
5299 [`redundant_pub_crate`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate
5300 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
5301 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
5302 [`redundant_type_annotations`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_type_annotations
5303 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
5304 [`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
5305 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
5306 [`ref_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_patterns
5307 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
5308 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
5309 [`replace_consts`]: https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
5310 [`reserve_after_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#reserve_after_initialization
5311 [`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
5312 [`result_expect_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_expect_used
5313 [`result_large_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
5314 [`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
5315 [`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
5316 [`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
5317 [`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
5318 [`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
5319 [`return_self_not_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
5320 [`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
5321 [`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
5322 [`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
5323 [`same_name_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
5324 [`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
5325 [`seek_from_current`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current
5326 [`seek_to_start_instead_of_rewind`]: https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind
5327 [`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
5328 [`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
5329 [`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
5330 [`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
5331 [`semicolon_inside_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_inside_block
5332 [`semicolon_outside_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block
5333 [`separated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
5334 [`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
5335 [`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
5336 [`shadow_same`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
5337 [`shadow_unrelated`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
5338 [`short_circuit_statement`]: https://rust-lang.github.io/rust-clippy/master/index.html#short_circuit_statement
5339 [`should_assert_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_assert_eq
5340 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
5341 [`should_panic_without_expect`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_panic_without_expect
5342 [`significant_drop_in_scrutinee`]: https://rust-lang.github.io/rust-clippy/master/index.html#significant_drop_in_scrutinee
5343 [`significant_drop_tightening`]: https://rust-lang.github.io/rust-clippy/master/index.html#significant_drop_tightening
5344 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
5345 [`single_call_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_call_fn
5346 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
5347 [`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
5348 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
5349 [`single_char_push_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
5350 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
5351 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop
5352 [`single_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match
5353 [`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
5354 [`single_range_in_vec_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_range_in_vec_init
5355 [`size_of_in_element_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_in_element_count
5356 [`size_of_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#size_of_ref
5357 [`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
5358 [`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
5359 [`stable_sort_primitive`]: https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
5360 [`std_instead_of_alloc`]: https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_alloc
5361 [`std_instead_of_core`]: https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core
5362 [`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
5363 [`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
5364 [`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
5365 [`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
5366 [`string_from_utf8_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_from_utf8_as_bytes
5367 [`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
5368 [`string_lit_chars_any`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_chars_any
5369 [`string_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_slice
5370 [`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
5371 [`strlen_on_c_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#strlen_on_c_strings
5372 [`struct_excessive_bools`]: https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
5373 [`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
5374 [`suboptimal_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#suboptimal_flops
5375 [`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
5376 [`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
5377 [`suspicious_command_arg_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_command_arg_space
5378 [`suspicious_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
5379 [`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting
5380 [`suspicious_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_map
5381 [`suspicious_op_assign_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_op_assign_impl
5382 [`suspicious_operation_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_operation_groupings
5383 [`suspicious_splitn`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
5384 [`suspicious_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned
5385 [`suspicious_unary_op_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
5386 [`suspicious_xor_used_as_pow`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_xor_used_as_pow
5387 [`swap_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
5388 [`tabs_in_doc_comments`]: https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
5389 [`temporary_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
5390 [`temporary_cstring_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#temporary_cstring_as_ptr
5391 [`tests_outside_test_module`]: https://rust-lang.github.io/rust-clippy/master/index.html#tests_outside_test_module
5392 [`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
5393 [`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
5394 [`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
5395 [`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
5396 [`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
5397 [`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
5398 [`toplevel_ref_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
5399 [`trailing_empty_array`]: https://rust-lang.github.io/rust-clippy/master/index.html#trailing_empty_array
5400 [`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
5401 [`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
5402 [`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
5403 [`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
5404 [`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
5405 [`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
5406 [`transmute_int_to_non_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_non_zero
5407 [`transmute_null_to_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_null_to_fn
5408 [`transmute_num_to_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_num_to_bytes
5409 [`transmute_ptr_to_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
5410 [`transmute_ptr_to_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref
5411 [`transmute_undefined_repr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr
5412 [`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
5413 [`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
5414 [`trim_split_whitespace`]: https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace
5415 [`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
5416 [`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
5417 [`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
5418 [`tuple_array_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#tuple_array_conversions
5419 [`type_complexity`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
5420 [`type_id_on_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_id_on_box
5421 [`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
5422 [`unchecked_duration_subtraction`]: https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction
5423 [`undocumented_unsafe_blocks`]: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
5424 [`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops
5425 [`unicode_not_nfc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unicode_not_nfc
5426 [`unimplemented`]: https://rust-lang.github.io/rust-clippy/master/index.html#unimplemented
5427 [`uninit_assumed_init`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
5428 [`uninit_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec
5429 [`uninlined_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
5430 [`unit_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
5431 [`unit_cmp`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_cmp
5432 [`unit_hash`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_hash
5433 [`unit_return_expecting_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#unit_return_expecting_ord
5434 [`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
5435 [`unnecessary_box_returns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_box_returns
5436 [`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
5437 [`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
5438 [`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
5439 [`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
5440 [`unnecessary_join`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
5441 [`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
5442 [`unnecessary_literal_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
5443 [`unnecessary_map_on_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_on_constructor
5444 [`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
5445 [`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
5446 [`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
5447 [`unnecessary_safety_comment`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_comment
5448 [`unnecessary_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_doc
5449 [`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
5450 [`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
5451 [`unnecessary_struct_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_struct_initialization
5452 [`unnecessary_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
5453 [`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
5454 [`unnecessary_wraps`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_wraps
5455 [`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
5456 [`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern
5457 [`unnested_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
5458 [`unreachable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreachable
5459 [`unreadable_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
5460 [`unsafe_derive_deserialize`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_derive_deserialize
5461 [`unsafe_removed_from_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_removed_from_name
5462 [`unsafe_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsafe_vector_initialization
5463 [`unseparated_literal_suffix`]: https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
5464 [`unsound_collection_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#unsound_collection_transmute
5465 [`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
5466 [`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
5467 [`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
5468 [`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
5469 [`unused_format_specs`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
5470 [`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
5471 [`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
5472 [`unused_peekable`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_peekable
5473 [`unused_rounding`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
5474 [`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
5475 [`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
5476 [`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
5477 [`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
5478 [`unwrap_or_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
5479 [`unwrap_or_else_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
5480 [`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
5481 [`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
5482 [`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
5483 [`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
5484 [`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
5485 [`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
5486 [`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
5487 [`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
5488 [`useless_format`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
5489 [`useless_let_if_seq`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_let_if_seq
5490 [`useless_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute
5491 [`useless_vec`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
5492 [`vec_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_box
5493 [`vec_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push
5494 [`vec_resize_to_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#vec_resize_to_zero
5495 [`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
5496 [`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
5497 [`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
5498 [`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
5499 [`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
5500 [`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
5501 [`wildcard_dependencies`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies
5502 [`wildcard_enum_match_arm`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_enum_match_arm
5503 [`wildcard_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
5504 [`wildcard_in_or_patterns`]: https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_in_or_patterns
5505 [`write_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_literal
5506 [`write_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline
5507 [`writeln_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#writeln_empty_string
5508 [`wrong_pub_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_pub_self_convention
5509 [`wrong_self_convention`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
5510 [`wrong_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_transmute
5511 [`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
5512 [`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
5513 [`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
5514 [`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
5515 [`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
5516 [`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
5517 <!-- end autogenerated links to lint list -->
5518 <!-- begin autogenerated links to configuration documentation -->
5519 [`arithmetic-side-effects-allowed`]: https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed
5520 [`arithmetic-side-effects-allowed-binary`]: https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed-binary
5521 [`arithmetic-side-effects-allowed-unary`]: https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed-unary
5522 [`avoid-breaking-exported-api`]: https://doc.rust-lang.org/clippy/lint_configuration.html#avoid-breaking-exported-api
5523 [`msrv`]: https://doc.rust-lang.org/clippy/lint_configuration.html#msrv
5524 [`cognitive-complexity-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#cognitive-complexity-threshold
5525 [`excessive-nesting-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#excessive-nesting-threshold
5526 [`disallowed-names`]: https://doc.rust-lang.org/clippy/lint_configuration.html#disallowed-names
5527 [`semicolon-inside-block-ignore-singleline`]: https://doc.rust-lang.org/clippy/lint_configuration.html#semicolon-inside-block-ignore-singleline
5528 [`semicolon-outside-block-ignore-multiline`]: https://doc.rust-lang.org/clippy/lint_configuration.html#semicolon-outside-block-ignore-multiline
5529 [`doc-valid-idents`]: https://doc.rust-lang.org/clippy/lint_configuration.html#doc-valid-idents
5530 [`too-many-arguments-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#too-many-arguments-threshold
5531 [`type-complexity-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#type-complexity-threshold
5532 [`single-char-binding-names-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#single-char-binding-names-threshold
5533 [`too-large-for-stack`]: https://doc.rust-lang.org/clippy/lint_configuration.html#too-large-for-stack
5534 [`enum-variant-name-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enum-variant-name-threshold
5535 [`enum-variant-size-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enum-variant-size-threshold
5536 [`verbose-bit-mask-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#verbose-bit-mask-threshold
5537 [`literal-representation-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#literal-representation-threshold
5538 [`trivial-copy-size-limit`]: https://doc.rust-lang.org/clippy/lint_configuration.html#trivial-copy-size-limit
5539 [`pass-by-value-size-limit`]: https://doc.rust-lang.org/clippy/lint_configuration.html#pass-by-value-size-limit
5540 [`too-many-lines-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#too-many-lines-threshold
5541 [`array-size-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#array-size-threshold
5542 [`stack-size-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#stack-size-threshold
5543 [`vec-box-size-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#vec-box-size-threshold
5544 [`max-trait-bounds`]: https://doc.rust-lang.org/clippy/lint_configuration.html#max-trait-bounds
5545 [`max-struct-bools`]: https://doc.rust-lang.org/clippy/lint_configuration.html#max-struct-bools
5546 [`max-fn-params-bools`]: https://doc.rust-lang.org/clippy/lint_configuration.html#max-fn-params-bools
5547 [`warn-on-all-wildcard-imports`]: https://doc.rust-lang.org/clippy/lint_configuration.html#warn-on-all-wildcard-imports
5548 [`disallowed-macros`]: https://doc.rust-lang.org/clippy/lint_configuration.html#disallowed-macros
5549 [`disallowed-methods`]: https://doc.rust-lang.org/clippy/lint_configuration.html#disallowed-methods
5550 [`disallowed-types`]: https://doc.rust-lang.org/clippy/lint_configuration.html#disallowed-types
5551 [`unreadable-literal-lint-fractions`]: https://doc.rust-lang.org/clippy/lint_configuration.html#unreadable-literal-lint-fractions
5552 [`upper-case-acronyms-aggressive`]: https://doc.rust-lang.org/clippy/lint_configuration.html#upper-case-acronyms-aggressive
5553 [`matches-for-let-else`]: https://doc.rust-lang.org/clippy/lint_configuration.html#matches-for-let-else
5554 [`cargo-ignore-publish`]: https://doc.rust-lang.org/clippy/lint_configuration.html#cargo-ignore-publish
5555 [`standard-macro-braces`]: https://doc.rust-lang.org/clippy/lint_configuration.html#standard-macro-braces
5556 [`enforced-import-renames`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enforced-import-renames
5557 [`allowed-scripts`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-scripts
5558 [`enable-raw-pointer-heuristic-for-send`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enable-raw-pointer-heuristic-for-send
5559 [`max-suggested-slice-pattern-length`]: https://doc.rust-lang.org/clippy/lint_configuration.html#max-suggested-slice-pattern-length
5560 [`await-holding-invalid-types`]: https://doc.rust-lang.org/clippy/lint_configuration.html#await-holding-invalid-types
5561 [`max-include-file-size`]: https://doc.rust-lang.org/clippy/lint_configuration.html#max-include-file-size
5562 [`allow-expect-in-tests`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-expect-in-tests
5563 [`allow-unwrap-in-tests`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-unwrap-in-tests
5564 [`allow-dbg-in-tests`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-dbg-in-tests
5565 [`allow-print-in-tests`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-print-in-tests
5566 [`large-error-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#large-error-threshold
5567 [`ignore-interior-mutability`]: https://doc.rust-lang.org/clippy/lint_configuration.html#ignore-interior-mutability
5568 [`allow-mixed-uninlined-format-args`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-mixed-uninlined-format-args
5569 [`suppress-restriction-lint-in-const`]: https://doc.rust-lang.org/clippy/lint_configuration.html#suppress-restriction-lint-in-const
5570 [`missing-docs-in-crate-items`]: https://doc.rust-lang.org/clippy/lint_configuration.html#missing-docs-in-crate-items
5571 [`future-size-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#future-size-threshold
5572 [`unnecessary-box-size`]: https://doc.rust-lang.org/clippy/lint_configuration.html#unnecessary-box-size
5573 [`allow-private-module-inception`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-private-module-inception
5574 [`allowed-idents-below-min-chars`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-idents-below-min-chars
5575 [`min-ident-chars-threshold`]: https://doc.rust-lang.org/clippy/lint_configuration.html#min-ident-chars-threshold
5576 [`accept-comment-above-statement`]: https://doc.rust-lang.org/clippy/lint_configuration.html#accept-comment-above-statement
5577 [`accept-comment-above-attributes`]: https://doc.rust-lang.org/clippy/lint_configuration.html#accept-comment-above-attributes
5578 [`allow-one-hash-in-raw-strings`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-one-hash-in-raw-strings
5579 [`absolute-paths-max-segments`]: https://doc.rust-lang.org/clippy/lint_configuration.html#absolute-paths-max-segments
5580 [`absolute-paths-allowed-crates`]: https://doc.rust-lang.org/clippy/lint_configuration.html#absolute-paths-allowed-crates
5581 [`allowed-dotfiles`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-dotfiles
5582 [`enforce-iter-loop-reborrow`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enforce-iter-loop-reborrow
5583 <!-- end autogenerated links to configuration documentation -->