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