@@ -4,157 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
See [ Changelog Update] ( book/src/development/infrastructure/changelog_update.md ) if you want to update this
5
5
document.
6
6
7
- ## Unreleased / Beta / In Rust Nightly
7
+ ## Unreleased / In Rust Nightly
8
8
9
- [ b52fb523...master] ( https://github.com/rust-lang/rust-clippy/compare/b52fb523...master )
10
-
11
- ## Rust 1.65
12
-
13
- Current stable, released 2022-11-03
14
-
15
- [ 3c7e7dbc...b52fb523] ( https://github.com/rust-lang/rust-clippy/compare/3c7e7dbc...b52fb523 )
16
-
17
- ### Important Changes
18
-
19
- * Clippy now has an ` --explain <LINT> ` command to show the lint description in the console
20
- [ #8952 ] ( https://github.com/rust-lang/rust-clippy/pull/8952 )
21
-
22
- ### New Lints
23
-
24
- * [ ` unused_peekable ` ]
25
- [ #9258 ] ( https://github.com/rust-lang/rust-clippy/pull/9258 )
26
- * [ ` collapsible_str_replace ` ]
27
- [ #9269 ] ( https://github.com/rust-lang/rust-clippy/pull/9269 )
28
- * [ ` manual_string_new ` ]
29
- [ #9295 ] ( https://github.com/rust-lang/rust-clippy/pull/9295 )
30
- * [ ` iter_on_empty_collections ` ]
31
- [ #9187 ] ( https://github.com/rust-lang/rust-clippy/pull/9187 )
32
- * [ ` iter_on_single_items ` ]
33
- [ #9187 ] ( https://github.com/rust-lang/rust-clippy/pull/9187 )
34
- * [ ` bool_to_int_with_if ` ]
35
- [ #9412 ] ( https://github.com/rust-lang/rust-clippy/pull/9412 )
36
- * [ ` multi_assignments ` ]
37
- [ #9379 ] ( https://github.com/rust-lang/rust-clippy/pull/9379 )
38
- * [ ` result_large_err ` ]
39
- [ #9373 ] ( https://github.com/rust-lang/rust-clippy/pull/9373 )
40
- * [ ` partialeq_to_none ` ]
41
- [ #9288 ] ( https://github.com/rust-lang/rust-clippy/pull/9288 )
42
- * [ ` suspicious_to_owned ` ]
43
- [ #8984 ] ( https://github.com/rust-lang/rust-clippy/pull/8984 )
44
- * [ ` cast_slice_from_raw_parts ` ]
45
- [ #9247 ] ( https://github.com/rust-lang/rust-clippy/pull/9247 )
46
- * [ ` manual_instant_elapsed ` ]
47
- [ #9264 ] ( https://github.com/rust-lang/rust-clippy/pull/9264 )
48
-
49
- ### Moves and Deprecations
50
-
51
- * Moved [ ` significant_drop_in_scrutinee ` ] to ` nursery ` (now allow-by-default)
52
- [ #9302 ] ( https://github.com/rust-lang/rust-clippy/pull/9302 )
53
- * Rename ` logic_bug ` to [ ` overly_complex_bool_expr ` ]
54
- [ #9306 ] ( https://github.com/rust-lang/rust-clippy/pull/9306 )
55
- * Rename ` arithmetic ` to [ ` arithmetic_side_effects ` ]
56
- [ #9443 ] ( https://github.com/rust-lang/rust-clippy/pull/9443 )
57
- * Moved [ ` only_used_in_recursion ` ] to complexity (now warn-by-default)
58
- [ #8804 ] ( https://github.com/rust-lang/rust-clippy/pull/8804 )
59
- * Moved [ ` assertions_on_result_states ` ] to restriction (now allow-by-default)
60
- [ #9273 ] ( https://github.com/rust-lang/rust-clippy/pull/9273 )
61
- * Renamed ` blacklisted_name ` to [ ` disallowed_names ` ]
62
- [ #8974 ] ( https://github.com/rust-lang/rust-clippy/pull/8974 )
63
-
64
- ### Enhancements
65
-
66
- * [ ` option_if_let_else ` ] : Now also checks for match expressions
67
- [ #8696 ] ( https://github.com/rust-lang/rust-clippy/pull/8696 )
68
- * [ ` explicit_auto_deref ` ] : Now lints on implicit returns in closures
69
- [ #9126 ] ( https://github.com/rust-lang/rust-clippy/pull/9126 )
70
- * [ ` needless_borrow ` ] : Now considers trait implementations
71
- [ #9136 ] ( https://github.com/rust-lang/rust-clippy/pull/9136 )
72
- * [ ` suboptimal_flops ` ] , [ ` imprecise_flops ` ] : Now lint on constant expressions
73
- [ #9404 ] ( https://github.com/rust-lang/rust-clippy/pull/9404 )
74
- * [ ` if_let_mutex ` ] : Now detects mutex behind references and warns about deadlocks
75
- [ #9318 ] ( https://github.com/rust-lang/rust-clippy/pull/9318 )
76
-
77
- ### False Positive Fixes
78
-
79
- * [ ` unit_arg ` ] [ ` default_trait_access ` ] [ ` missing_docs_in_private_items ` ] : No longer
80
- trigger in code generated from proc-macros
81
- [ #8694 ] ( https://github.com/rust-lang/rust-clippy/pull/8694 )
82
- * [ ` unwrap_used ` ] : Now lints uses of ` unwrap_err `
83
- [ #9338 ] ( https://github.com/rust-lang/rust-clippy/pull/9338 )
84
- * [ ` expect_used ` ] : Now lints uses of ` expect_err `
85
- [ #9338 ] ( https://github.com/rust-lang/rust-clippy/pull/9338 )
86
- * [ ` transmute_undefined_repr ` ] : Now longer lints if the first field is compatible
87
- with the other type
88
- [ #9287 ] ( https://github.com/rust-lang/rust-clippy/pull/9287 )
89
- * [ ` unnecessary_to_owned ` ] : No longer lints, if type change cased errors in
90
- the caller function
91
- [ #9424 ] ( https://github.com/rust-lang/rust-clippy/pull/9424 )
92
- * [ ` match_like_matches_macro ` ] : No longer lints, if there are comments inside the
93
- match expression
94
- [ #9276 ] ( https://github.com/rust-lang/rust-clippy/pull/9276 )
95
- * [ ` partialeq_to_none ` ] : No longer trigger in code generated from macros
96
- [ #9389 ] ( https://github.com/rust-lang/rust-clippy/pull/9389 )
97
- * [ ` arithmetic_side_effects ` ] : No longer lints expressions that only use literals
98
- [ #9365 ] ( https://github.com/rust-lang/rust-clippy/pull/9365 )
99
- * [ ` explicit_auto_deref ` ] : Now ignores references on block expressions when the type
100
- is ` Sized ` , on ` dyn Trait ` returns and when the suggestion is non-trivial
101
- [ #9126 ] ( https://github.com/rust-lang/rust-clippy/pull/9126 )
102
- * [ ` trait_duplication_in_bounds ` ] : Now better tracks bounds to avoid false positives
103
- [ #9167 ] ( https://github.com/rust-lang/rust-clippy/pull/9167 )
104
- * [ ` format_in_format_args ` ] : Now suggests cases where the result is formatted again
105
- [ #9349 ] ( https://github.com/rust-lang/rust-clippy/pull/9349 )
106
- * [ ` only_used_in_recursion ` ] : No longer lints on function without recursions and
107
- takes external functions into account
108
- [ #8804 ] ( https://github.com/rust-lang/rust-clippy/pull/8804 )
109
- * [ ` missing_const_for_fn ` ] : No longer lints in proc-macros
110
- [ #9308 ] ( https://github.com/rust-lang/rust-clippy/pull/9308 )
111
- * [ ` non_ascii_literal ` ] : Allow non-ascii comments in tests and make sure ` #[allow] `
112
- attributes work in tests
113
- [ #9327 ] ( https://github.com/rust-lang/rust-clippy/pull/9327 )
114
- * [ ` question_mark ` ] : No longer lint ` if let ` s with subpatterns
115
- [ #9348 ] ( https://github.com/rust-lang/rust-clippy/pull/9348 )
116
- * [ ` needless_collect ` ] : No longer lints in loops
117
- [ #8992 ] ( https://github.com/rust-lang/rust-clippy/pull/8992 )
118
- * [ ` mut_mutex_lock ` ] : No longer lints if the mutex is behind an immutable reference
119
- [ #9418 ] ( https://github.com/rust-lang/rust-clippy/pull/9418 )
120
- * [ ` needless_return ` ] : Now ignores returns with arguments
121
- [ #9381 ] ( https://github.com/rust-lang/rust-clippy/pull/9381 )
122
- * [ ` range_plus_one ` ] , [ ` range_minus_one ` ] : Now ignores code with macros
123
- [ #9446 ] ( https://github.com/rust-lang/rust-clippy/pull/9446 )
124
- * [ ` assertions_on_result_states ` ] : No longer lints on the unit type
125
- [ #9273 ] ( https://github.com/rust-lang/rust-clippy/pull/9273 )
126
-
127
- ### Suggestion Fixes/Improvements
128
-
129
- * [ ` unwrap_or_else_default ` ] : Now suggests ` unwrap_or_default() ` for empty strings
130
- [ #9421 ] ( https://github.com/rust-lang/rust-clippy/pull/9421 )
131
- * [ ` if_then_some_else_none ` ] : Now also suggests ` bool::then_some `
132
- [ #9289 ] ( https://github.com/rust-lang/rust-clippy/pull/9289 )
133
- * [ ` redundant_closure_call ` ] : The suggestion now works for async closures
134
- [ #9053 ] ( https://github.com/rust-lang/rust-clippy/pull/9053 )
135
- * [ ` suboptimal_flops ` ] : Now suggests parenthesis when they are required
136
- [ #9394 ] ( https://github.com/rust-lang/rust-clippy/pull/9394 )
137
- * [ ` case_sensitive_file_extension_comparisons ` ] : Now suggests ` map_or(..) ` instead of ` map(..).unwrap_or `
138
- [ #9341 ] ( https://github.com/rust-lang/rust-clippy/pull/9341 )
139
- * Deprecated configuration values can now be updated automatically
140
- [ #9252 ] ( https://github.com/rust-lang/rust-clippy/pull/9252 )
141
- * [ ` or_fun_call ` ] : Now suggest ` Entry::or_default ` for ` Entry::or_insert(Default::default()) `
142
- [ #9342 ] ( https://github.com/rust-lang/rust-clippy/pull/9342 )
143
- * [ ` unwrap_used ` ] : Only suggests ` expect ` if [ ` expect_used ` ] is allowed
144
- [ #9223 ] ( https://github.com/rust-lang/rust-clippy/pull/9223 )
145
-
146
- ### ICE Fixes
147
-
148
- * Fix ICE in [ ` useless_format ` ] for literals
149
- [ #9406 ] ( https://github.com/rust-lang/rust-clippy/pull/9406 )
150
- * Fix infinite loop in [ ` vec_init_then_push ` ]
151
- [ #9441 ] ( https://github.com/rust-lang/rust-clippy/pull/9441 )
152
- * Fix ICE when reading literals with weird proc-macro spans
153
- [ #9303 ] ( https://github.com/rust-lang/rust-clippy/pull/9303 )
9
+ [ 3c7e7dbc...master] ( https://github.com/rust-lang/rust-clippy/compare/3c7e7dbc...master )
154
10
155
11
## Rust 1.64
156
12
157
- Released 2022-09-22
13
+ Current stable, released 2022-09-22
158
14
159
15
[ d7b5cbf0...3c7e7dbc] ( https://github.com/rust-lang/rust-clippy/compare/d7b5cbf0...3c7e7dbc )
160
16
@@ -4047,7 +3903,6 @@ Released 2018-09-13
4047
3903
[ `format_push_string` ] : https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
4048
3904
[ `from_iter_instead_of_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
4049
3905
[ `from_over_into` ] : https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
4050
- [ `from_raw_with_void_ptr` ] : https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr
4051
3906
[ `from_str_radix_10` ] : https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
4052
3907
[ `future_not_send` ] : https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
4053
3908
[ `get_first` ] : https://rust-lang.github.io/rust-clippy/master/index.html#get_first
@@ -4123,7 +3978,6 @@ Released 2018-09-13
4123
3978
[ `len_zero` ] : https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
4124
3979
[ `let_and_return` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
4125
3980
[ `let_underscore_drop` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
4126
- [ `let_underscore_future` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future
4127
3981
[ `let_underscore_lock` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
4128
3982
[ `let_underscore_must_use` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
4129
3983
[ `let_unit_value` ] : https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
@@ -4142,8 +3996,6 @@ Released 2018-09-13
4142
3996
[ `manual_find_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
4143
3997
[ `manual_flatten` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
4144
3998
[ `manual_instant_elapsed` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
4145
- [ `manual_is_ascii_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
4146
- [ `manual_let_else` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
4147
3999
[ `manual_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
4148
4000
[ `manual_memcpy` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_memcpy
4149
4001
[ `manual_non_exhaustive` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
@@ -4197,7 +4049,6 @@ Released 2018-09-13
4197
4049
[ `missing_panics_doc` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
4198
4050
[ `missing_safety_doc` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
4199
4051
[ `missing_spin_loop` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_spin_loop
4200
- [ `missing_trait_methods` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_trait_methods
4201
4052
[ `mistyped_literal_suffixes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
4202
4053
[ `mixed_case_hex_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
4203
4054
[ `mixed_read_write_in_expression` ] : https://rust-lang.github.io/rust-clippy/master/index.html#mixed_read_write_in_expression
@@ -4283,7 +4134,6 @@ Released 2018-09-13
4283
4134
[ `panic_in_result_fn` ] : https://rust-lang.github.io/rust-clippy/master/index.html#panic_in_result_fn
4284
4135
[ `panic_params` ] : https://rust-lang.github.io/rust-clippy/master/index.html#panic_params
4285
4136
[ `panicking_unwrap` ] : https://rust-lang.github.io/rust-clippy/master/index.html#panicking_unwrap
4286
- [ `partial_pub_fields` ] : https://rust-lang.github.io/rust-clippy/master/index.html#partial_pub_fields
4287
4137
[ `partialeq_ne_impl` ] : https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl
4288
4138
[ `partialeq_to_none` ] : https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
4289
4139
[ `path_buf_push_overwrite` ] : https://rust-lang.github.io/rust-clippy/master/index.html#path_buf_push_overwrite
@@ -4346,8 +4196,6 @@ Released 2018-09-13
4346
4196
[ `same_item_push` ] : https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
4347
4197
[ `same_name_method` ] : https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
4348
4198
[ `search_is_some` ] : https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
4349
- [ `seek_from_current` ] : https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current
4350
- [ `seek_to_start_instead_of_rewind` ] : https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind
4351
4199
[ `self_assignment` ] : https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
4352
4200
[ `self_named_constructors` ] : https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
4353
4201
[ `self_named_module_files` ] : https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
@@ -4397,7 +4245,6 @@ Released 2018-09-13
4397
4245
[ `suspicious_splitn` ] : https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_splitn
4398
4246
[ `suspicious_to_owned` ] : https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_to_owned
4399
4247
[ `suspicious_unary_op_formatting` ] : https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_unary_op_formatting
4400
- [ `suspicious_xor_used_as_pow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_xor_used_as_pow
4401
4248
[ `swap_ptr_to_ref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#swap_ptr_to_ref
4402
4249
[ `tabs_in_doc_comments` ] : https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
4403
4250
[ `temporary_assignment` ] : https://rust-lang.github.io/rust-clippy/master/index.html#temporary_assignment
@@ -4468,7 +4315,6 @@ Released 2018-09-13
4468
4315
[ `unstable_as_slice` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
4469
4316
[ `unused_async` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
4470
4317
[ `unused_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
4471
- [ `unused_format_specs` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
4472
4318
[ `unused_io_amount` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
4473
4319
[ `unused_label` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
4474
4320
[ `unused_peekable` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_peekable
0 commit comments