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