@@ -6,11 +6,126 @@ document.
6
6
7
7
## Unreleased / Beta / In Rust Nightly
8
8
9
- [ 7f27e2e7...master] ( https://github.com/rust-lang/rust-clippy/compare/7f27e2e7...master )
9
+ [ 149392b0...master] ( https://github.com/rust-lang/rust-clippy/compare/149392b0...master )
10
+
11
+ ## Rust 1.69
12
+
13
+ Current stable, released 2023-04-20
14
+
15
+ [ 7f27e2e7...149392b0] ( https://github.com/rust-lang/rust-clippy/compare/7f27e2e7...149392b0 )
16
+
17
+ ### New Lints
18
+
19
+ * [ ` no_mangle_with_rust_abi ` ]
20
+ [ #10369 ] ( https://github.com/rust-lang/rust-clippy/pull/10369 )
21
+ * [ ` significant_drop_tightening ` ]
22
+ [ #10163 ] ( https://github.com/rust-lang/rust-clippy/pull/10163 )
23
+ * [ ` suspicious_command_arg_space ` ]
24
+ [ #10317 ] ( https://github.com/rust-lang/rust-clippy/pull/10317 )
25
+ * [ ` let_underscore_untyped ` ]
26
+ [ #10356 ] ( https://github.com/rust-lang/rust-clippy/pull/10356 )
27
+ * [ ` question_mark_used ` ]
28
+ [ #10342 ] ( https://github.com/rust-lang/rust-clippy/pull/10342 )
29
+ * [ ` extra_unused_type_parameters ` ]
30
+ [ #10028 ] ( https://github.com/rust-lang/rust-clippy/pull/10028 )
31
+ * [ ` impl_trait_in_params ` ]
32
+ [ 10197] ( https://github.com/rust-lang/rust-clippy/pull/10197 )
33
+ * [ ` transmute_int_to_non_zero ` ]
34
+ [ #10360 ] ( https://github.com/rust-lang/rust-clippy/pull/10360 )
35
+ * [ ` multiple_unsafe_ops_per_block ` ]
36
+ [ #10206 ] ( https://github.com/rust-lang/rust-clippy/pull/10206 )
37
+
38
+ ### Moves and Deprecations
39
+
40
+ * Moved [ ` uninlined_format_args ` ] to ` pedantic ` (Now allow-by-default)
41
+ [ #10265 ] ( https://github.com/rust-lang/rust-clippy/pull/10265 )
42
+ * Moved [ ` unchecked_duration_subtraction ` ] to ` pedantic ` (Now allow-by-default)
43
+ [ #10194 ] ( https://github.com/rust-lang/rust-clippy/pull/10194 )
44
+
45
+ ### Enhancements
46
+
47
+ * [ ` arithmetic_side_effects ` ] : No longer lints, if safe constant values are used.
48
+ [ #10310 ] ( https://github.com/rust-lang/rust-clippy/pull/10310 )
49
+ * [ ` needless_lifetimes ` ] : Now works in local macros
50
+ [ #10257 ] ( https://github.com/rust-lang/rust-clippy/pull/10257 )
51
+ * [ ` unused_io_amount ` ] : Now detects usages of ` is_ok ` and ` is_err `
52
+ [ #10225 ] ( https://github.com/rust-lang/rust-clippy/pull/10225 )
53
+ * [ ` missing_docs_in_private_items ` ] : Added new configuration ` missing-docs-in-crate-items ` to lint
54
+ on items visible within the current crate. For example, ` pub(crate) ` items.
55
+ [ #10303 ] ( https://github.com/rust-lang/rust-clippy/pull/10303 )
56
+ * [ ` almost_swapped ` ] : Now detects almost swaps using ` let ` statements
57
+ [ #10177 ] ( https://github.com/rust-lang/rust-clippy/pull/10177 )
58
+ * [ ` wildcard_enum_match_arm ` ] : Now lints missing private variants, for local enums
59
+ [ #10250 ] ( https://github.com/rust-lang/rust-clippy/pull/10250 )
60
+
61
+ ### False Positive Fixes
62
+
63
+ * [ ` explicit_auto_deref ` ] : Now considers projections, when determining if auto deref is applicable
64
+ [ #10386 ] ( https://github.com/rust-lang/rust-clippy/pull/10386 )
65
+ * [ ` manual_let_else ` ] : Now considers side effects of branches, before linting
66
+ [ #10336 ] ( https://github.com/rust-lang/rust-clippy/pull/10336 )
67
+ * [ ` uninlined_format_args ` ] : No longer lints for arguments with generic parameters
68
+ [ #10343 ] ( https://github.com/rust-lang/rust-clippy/pull/10343 )
69
+ * [ ` needless_lifetimes ` ] : No longer lints signatures in macros, if the lifetime is a metavariable
70
+ [ #10380 ] ( https://github.com/rust-lang/rust-clippy/pull/10380 )
71
+ * [ ` len_without_is_empty ` ] : No longer lints, if ` len ` as a non-default signature
72
+ [ #10255 ] ( https://github.com/rust-lang/rust-clippy/pull/10255 )
73
+ * [ ` unusual_byte_groupings ` ] : Relaxed the required restrictions for specific sizes, to reduce false
74
+ positives
75
+ [ #10353 ] ( https://github.com/rust-lang/rust-clippy/pull/10353 )
76
+ * [ ` manual_let_else ` ] : No longer lints ` if-else ` blocks if they can divergent
77
+ [ #10332 ] ( https://github.com/rust-lang/rust-clippy/pull/10332 )
78
+ * [ ` expect_used ` ] , [ ` unwrap_used ` ] , [ ` dbg_macro ` ] , [ ` print_stdout ` ] , [ ` print_stderr ` ] : No longer lint
79
+ in test functions, if ` allow-expect-in-tests ` is set
80
+ [ #10391 ] ( https://github.com/rust-lang/rust-clippy/pull/10391 )
81
+ * [ ` unnecessary_safety_comment ` ] : No longer lints code inside macros
82
+ [ #10106 ] ( https://github.com/rust-lang/rust-clippy/pull/10106 )
83
+ * [ ` never_loop ` ] : No longer lints, for statements following break statements for outer blocks.
84
+ [ #10311 ] ( https://github.com/rust-lang/rust-clippy/pull/10311 )
85
+
86
+ ### Suggestion Fixes/Improvements
87
+
88
+ * [ ` box_default ` ] : The suggestion now includes the type for trait objects, when needed
89
+ [ #10382 ] ( https://github.com/rust-lang/rust-clippy/pull/10382 )
90
+ * [ ` cast_possible_truncation ` ] : Now suggests using ` try_from ` or allowing the lint
91
+ [ #10038 ] ( https://github.com/rust-lang/rust-clippy/pull/10038 )
92
+ * [ ` invalid_regex ` ] : Regex errors for non-literals or regular strings containing escape sequences will
93
+ now show the complete error
94
+ [ #10231 ] ( https://github.com/rust-lang/rust-clippy/pull/10231 )
95
+ * [ ` transmutes_expressible_as_ptr_casts ` ] : The suggestion now works, if the base type is borrowed
96
+ [ #10193 ] ( https://github.com/rust-lang/rust-clippy/pull/10193 )
97
+ * [ ` needless_return ` ] : Now removes all semicolons on the same line
98
+ [ #10187 ] ( https://github.com/rust-lang/rust-clippy/pull/10187 )
99
+ * [ ` suspicious_to_owned ` ] : The suggestion now shows all options clearly
100
+ [ #10295 ] ( https://github.com/rust-lang/rust-clippy/pull/10295 )
101
+ * [ ` bytes_nth ` ] : Now suggests the correct replacement based on the context
102
+ [ #10361 ] ( https://github.com/rust-lang/rust-clippy/pull/10361 )
103
+ * [ ` bool_assert_comparison ` ] : The suggestion is now machine applicable
104
+ [ #10218 ] ( https://github.com/rust-lang/rust-clippy/pull/10218 )
105
+ * [ ` cast_possible_truncation ` ] : Corrected the lint name in the help message
106
+ [ #10330 ] ( https://github.com/rust-lang/rust-clippy/pull/10330 )
107
+ * [ ` needless_return ` ] : The suggestion now works on if sequences
108
+ [ #10345 ] ( https://github.com/rust-lang/rust-clippy/pull/10345 )
109
+ * [ ` needless_lifetimes ` ] : The suggestion is now machine applicable
110
+ [ #10222 ] ( https://github.com/rust-lang/rust-clippy/pull/10222 )
111
+ * [ ` map_entry ` ] : The suggestion no longer expands macros
112
+ [ #10346 ] ( https://github.com/rust-lang/rust-clippy/pull/10346 )
113
+
114
+ ### ICE Fixes
115
+
116
+ * [ ` needless_pass_by_value ` ] : Fixed an ICE, caused by how late bounds were handled
117
+ [ #10328 ] ( https://github.com/rust-lang/rust-clippy/pull/10328 )
118
+ * [ ` needless_borrow ` ] : No longer panics on ambiguous projections
119
+ [ #10403 ] ( https://github.com/rust-lang/rust-clippy/pull/10403 )
120
+
121
+ ### Documentation Improvements
122
+
123
+ * All configurations are now documented in the Clippy Book
124
+ [ #10199 ] ( https://github.com/rust-lang/rust-clippy/pull/10199 )
10
125
11
126
## Rust 1.68
12
127
13
- Current stable, released 2023-03-09
128
+ Released 2023-03-09
14
129
15
130
[ d822110d...7f27e2e7] ( https://github.com/rust-lang/rust-clippy/compare/d822110d...7f27e2e7 )
16
131
@@ -4615,6 +4730,7 @@ Released 2018-09-13
4615
4730
[ `invisible_characters` ] : https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
4616
4731
[ `is_digit_ascii_radix` ] : https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
4617
4732
[ `items_after_statements` ] : https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
4733
+ [ `items_after_test_module` ] : https://rust-lang.github.io/rust-clippy/master/index.html#items_after_test_module
4618
4734
[ `iter_cloned_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
4619
4735
[ `iter_count` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
4620
4736
[ `iter_kv_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
0 commit comments