@@ -6,11 +6,141 @@ document.
6
6
7
7
## Unreleased / In Rust Nightly
8
8
9
- [3ae8faf...master](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...master)
9
+ [74d1561...master](https://github.com/rust-lang/rust-clippy/compare/74d1561...master)
10
+
11
+ ## Rust 1.55
12
+
13
+ Current beta, release 2021-09-09
14
+
15
+ [3ae8faf...74d1561](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561)
16
+
17
+ ### Important Changes
18
+
19
+ * Stabilized `cargo clippy --fix` :tada:
20
+ [#7405](https://github.com/rust-lang/rust-clippy/pull/7405)
21
+
22
+ ### New Lints
23
+
24
+ * [`rc_mutex`]
25
+ [#7316](https://github.com/rust-lang/rust-clippy/pull/7316)
26
+ * [`nonstandard_macro_braces`]
27
+ [#7299](https://github.com/rust-lang/rust-clippy/pull/7299)
28
+ * [`strlen_on_c_strings`]
29
+ [#7243](https://github.com/rust-lang/rust-clippy/pull/7243)
30
+ * [`self_named_constructors`]
31
+ [#7403](https://github.com/rust-lang/rust-clippy/pull/7403)
32
+ * [`disallowed_script_idents`]
33
+ [#7400](https://github.com/rust-lang/rust-clippy/pull/7400)
34
+ * [`disallowed_type`]
35
+ [#7315](https://github.com/rust-lang/rust-clippy/pull/7315)
36
+ * [`missing_enforced_import_renames`]
37
+ [#7300](https://github.com/rust-lang/rust-clippy/pull/7300)
38
+ * [`extend_with_drain`]
39
+ [#7270](https://github.com/rust-lang/rust-clippy/pull/7270)
40
+
41
+ ### Moves and Deprecations
42
+
43
+ * Moved [`from_iter_instead_of_collect`] to `pedantic`
44
+ [#7375](https://github.com/rust-lang/rust-clippy/pull/7375)
45
+ * Added `suspicious` as a new lint group for *code that is most likely wrong or useless*
46
+ [#7350](https://github.com/rust-lang/rust-clippy/pull/7350)
47
+ * Moved [`blanket_clippy_restriction_lints`] to `suspicious`
48
+ * Moved [`empty_loop`] to `suspicious`
49
+ * Moved [`eval_order_dependence`] to `suspicious`
50
+ * Moved [`float_equality_without_abs`] to `suspicious`
51
+ * Moved [`for_loops_over_fallibles`] to `suspicious`
52
+ * Moved [`misrefactored_assign_op`] to `suspicious`
53
+ * Moved [`mut_range_bound`] to `suspicious`
54
+ * Moved [`mutable_key_type`] to `suspicious`
55
+ * Moved [`suspicious_arithmetic_impl`] to `suspicious`
56
+ * Moved [`suspicious_assignment_formatting`] to `suspicious`
57
+ * Moved [`suspicious_else_formatting`] to `suspicious`
58
+ * Moved [`suspicious_map`] to `suspicious`
59
+ * Moved [`suspicious_op_assign_impl`] to `suspicious`
60
+ * Moved [`suspicious_unary_op_formatting`] to `suspicious`
61
+
62
+ ### Enhancements
63
+
64
+ * [`while_let_on_iterator`]: Now suggests `&mut iter` inside closures
65
+ [#7262](https://github.com/rust-lang/rust-clippy/pull/7262)
66
+ * [`doc_markdown`]:
67
+ * Now detects unbalanced ticks
68
+ [#7357](https://github.com/rust-lang/rust-clippy/pull/7357)
69
+ * Add `FreeBSD` to the default configuration as an allowed identifier
70
+ [#7334](https://github.com/rust-lang/rust-clippy/pull/7334)
71
+ * [`wildcard_enum_match_arm`], [`match_wildcard_for_single_variants`]: Now allows wildcards for enums with unstable
72
+ or hidden variants
73
+ [#7407](https://github.com/rust-lang/rust-clippy/pull/7407)
74
+ * [`redundant_allocation`]: Now additionally supports the `Arc<>` type
75
+ [#7308](https://github.com/rust-lang/rust-clippy/pull/7308)
76
+ * [`blacklisted_name`]: Now allows blacklisted names in test code
77
+ [#7379](https://github.com/rust-lang/rust-clippy/pull/7379)
78
+ * [`redundant_closure`]: Suggests `&mut` for `FnMut`
79
+ [#7437](https://github.com/rust-lang/rust-clippy/pull/7437)
80
+ * [`disallowed_method`], [`disallowed_type`]: The configuration values `disallowed-method` and `disallowed-type`
81
+ no longer require fully qualified paths
82
+ [#7345](https://github.com/rust-lang/rust-clippy/pull/7345)
83
+ * [`zst_offset`]: Fixed lint invocation after it was accidentally suppressed
84
+ [#7396](https://github.com/rust-lang/rust-clippy/pull/7396)
85
+
86
+ ### False Positive Fixes
87
+
88
+ * [`default_numeric_fallback`]: No longer lints on float literals as function arguments
89
+ [#7446](https://github.com/rust-lang/rust-clippy/pull/7446)
90
+ * [`use_self`]: No longer lints on type parameters
91
+ [#7288](https://github.com/rust-lang/rust-clippy/pull/7288)
92
+ * [`unimplemented`]: Now ignores the `assert` and `debug_assert` macros
93
+ [#7439](https://github.com/rust-lang/rust-clippy/pull/7439)
94
+ * [`branches_sharing_code`]: Now always checks for block expressions
95
+ [#7462](https://github.com/rust-lang/rust-clippy/pull/7462)
96
+ * [`field_reassign_with_default`]: No longer triggers in macros
97
+ [#7160](https://github.com/rust-lang/rust-clippy/pull/7160)
98
+ * [`redundant_clone`]: No longer lints on required clones for borrowed data
99
+ [#7346](https://github.com/rust-lang/rust-clippy/pull/7346)
100
+ * [`default_numeric_fallback`]: No longer triggers in external macros
101
+ [#7325](https://github.com/rust-lang/rust-clippy/pull/7325)
102
+ * [`needless_bool`]: No longer lints in macros
103
+ [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
104
+ * [`useless_format`]: No longer triggers when additional text is being appended
105
+ [#7442](https://github.com/rust-lang/rust-clippy/pull/7442)
106
+ * [`assertions_on_constants`]: `cfg!(...)` is no longer considered to be a constant
107
+ [#7319](https://github.com/rust-lang/rust-clippy/pull/7319)
108
+
109
+ ### Suggestion Fixes/Improvements
110
+
111
+ * [`needless_collect`]: Now show correct lint messages for shadowed values
112
+ [#7289](https://github.com/rust-lang/rust-clippy/pull/7289)
113
+ * [`wrong_pub_self_convention`]: The deprecated message now suggest the correct configuration value
114
+ [#7382](https://github.com/rust-lang/rust-clippy/pull/7382)
115
+ * [`semicolon_if_nothing_returned`]: Allow missing semicolon in blocks with only one expression
116
+ [#7326](https://github.com/rust-lang/rust-clippy/pull/7326)
117
+
118
+ ### ICE Fixes
119
+
120
+ * [`zero_sized_map_values`]
121
+ [#7470](https://github.com/rust-lang/rust-clippy/pull/7470)
122
+ * [`redundant_pattern_matching`]
123
+ [#7471](https://github.com/rust-lang/rust-clippy/pull/7471)
124
+ * [`modulo_one`]
125
+ [#7473](https://github.com/rust-lang/rust-clippy/pull/7473)
126
+ * [`use_self`]
127
+ [#7428](https://github.com/rust-lang/rust-clippy/pull/7428)
128
+
129
+ ### Documentation Improvements
130
+
131
+ * Reworked Clippy's website:
132
+ [#7279](https://github.com/rust-lang/rust-clippy/pull/7279)
133
+ [#7172](https://github.com/rust-lang/rust-clippy/issues/7172)
134
+ * Added applicability information about lints
135
+ * Added a link to jump into the implementation
136
+ * Improved loading times
137
+ * Adapted some styling
138
+ * Clippy now uses a lint to generate its documentation
139
+ [#7298](https://github.com/rust-lang/rust-clippy/pull/7298)
10
140
11
141
## Rust 1.54
12
142
13
- Current beta, release 2021-07-29
143
+ Current stable, released 2021-07-29
14
144
15
145
[7c7683c...3ae8faf](https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf)
16
146
@@ -29,7 +159,7 @@ Current beta, release 2021-07-29
29
159
### Moves and Deprecations
30
160
31
161
- Deprecate `pub_enum_variant_names` and `wrong_pub_self_convention` in favor of
32
- the new `avoid_breaking_exported_api ` config option (see
162
+ the new `avoid-breaking-exported-api ` config option (see
33
163
[Enhancements](#1-54-enhancements))
34
164
[#7187](https://github.com/rust-lang/rust-clippy/pull/7187)
35
165
- Move [`inconsistent_struct_constructor`] to `pedantic`
@@ -51,7 +181,7 @@ Current beta, release 2021-07-29
51
181
[#7163](https://github.com/rust-lang/rust-clippy/pull/7163)
52
182
- [`if_then_some_else_none`]: Now works with the MSRV config
53
183
[#7177](https://github.com/rust-lang/rust-clippy/pull/7177)
54
- - Add `avoid_breaking_exported_api ` config option for the lints
184
+ - Add `avoid-breaking-exported-api ` config option for the lints
55
185
[`enum_variant_names`], [`large_types_passed_by_value`],
56
186
[`trivially_copy_pass_by_ref`], [`unnecessary_wraps`],
57
187
[`upper_case_acronyms`], and [`wrong_self_convention`]. We recommend to set
@@ -138,7 +268,7 @@ Current beta, release 2021-07-29
138
268
139
269
## Rust 1.53
140
270
141
- Current stable, released 2021-06-17
271
+ Released 2021-06-17
142
272
143
273
[6ed6f1e...7c7683c](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...7c7683c)
144
274
@@ -2869,6 +2999,7 @@ Released 2018-09-13
2869
2999
[`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
2870
3000
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
2871
3001
[`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
3002
+ [`unwrap_or_else_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_else_default
2872
3003
[`unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
2873
3004
[`upper_case_acronyms`]: https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
2874
3005
[`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
0 commit comments