@@ -6,11 +6,125 @@ document.
6
6
7
7
## Unreleased / In Rust Nightly
8
8
9
- [ b7f3f7f...master] ( https://github.com/rust-lang/rust-clippy/compare/b7f3f7f...master )
9
+ [ e181011...master] ( https://github.com/rust-lang/rust-clippy/compare/b7f3f7f...master )
10
+
11
+ ## Rust 1.58 (beta)
12
+
13
+ Current beta, release 2022-01-13
14
+
15
+ [ b7f3f7f..e181011] ( https://github.com/rust-lang/rust-clippy/compare/b7f3f7f..e181011 )
16
+
17
+ ### New lints
18
+
19
+ * [ ` transmute_num_to_bytes ` ]
20
+ [ #7805 ] ( https://github.com/rust-lang/rust-clippy/pull/7805 )
21
+ * [ ` match_str_case_mismatch ` ]
22
+ [ #7806 ] ( https://github.com/rust-lang/rust-clippy/pull/7806 )
23
+ * [ ` format_in_format_args ` ] , [ ` to_string_in_format_args ` ]
24
+ [ #7743 ] ( https://github.com/rust-lang/rust-clippy/pull/7743 )
25
+ * [ ` uninit_vec ` ]
26
+ [ #7682 ] ( https://github.com/rust-lang/rust-clippy/pull/7682 )
27
+ * [ ` fn_to_numeric_cast_any ` ]
28
+ [ #7705 ] ( https://github.com/rust-lang/rust-clippy/pull/7705 )
29
+ * [ ` undocumented_unsafe_blocks ` ]
30
+ [ #7748 ] ( https://github.com/rust-lang/rust-clippy/pull/7748 )
31
+ * [ ` trailing_empty_array ` ]
32
+ [ #7838 ] ( https://github.com/rust-lang/rust-clippy/pull/7838 )
33
+ * [ ` string_slice ` ]
34
+ [ #7878 ] ( https://github.com/rust-lang/rust-clippy/pull/7878 )
35
+
36
+
37
+ ### Moves or deprecations of lints
38
+
39
+ * Move [ ` non_send_fields_in_send_ty ` ] to ` suspicious `
40
+ [ #7874 ] ( https://github.com/rust-lang/rust-clippy/pull/7874 )
41
+ * Move [ ` non_ascii_literal ` ] to ` restriction `
42
+ [ #7907 ] ( https://github.com/rust-lang/rust-clippy/pull/7907 )
43
+
44
+ ### Changes that expand what code existing lints cover
45
+
46
+ * [ ` question_mark ` ] now covers ` Result `
47
+ [ #7840 ] ( https://github.com/rust-lang/rust-clippy/pull/7840 )
48
+ * Make [ ` useless_format ` ] recognize bare ` format!("") `
49
+ [ #7801 ] ( https://github.com/rust-lang/rust-clippy/pull/7801 )
50
+ * Lint on underscored variables with no side effects in [ ` no_effect ` ]
51
+ [ #7775 ] ( https://github.com/rust-lang/rust-clippy/pull/7775 )
52
+ * Expand [ ` match_ref_pats ` ] to check for multiple reference patterns
53
+ [ #7800 ] ( https://github.com/rust-lang/rust-clippy/pull/7800 )
54
+
55
+ ### False positive fixes
56
+
57
+ * Fix false positive of [ ` implicit_saturating_sub ` ] with ` else ` clause
58
+ [ #7832 ] ( https://github.com/rust-lang/rust-clippy/pull/7832 )
59
+ * Fix [ ` question_mark ` ] when there is call in conditional predicate
60
+ [ #7860 ] ( https://github.com/rust-lang/rust-clippy/pull/7860 )
61
+ * [ ` mut_mut ` ] no longer lints when type is defined in external macros
62
+ [ #7795 ] ( https://github.com/rust-lang/rust-clippy/pull/7795 )
63
+ * Avoid [ ` eq_op ` ] in test functions
64
+ [ #7811 ] ( https://github.com/rust-lang/rust-clippy/pull/7811 )
65
+ * [ ` cast_possible_truncation ` ] no longer lints when cast is coming from ` signum ` method call
66
+ [ #7850 ] ( https://github.com/rust-lang/rust-clippy/pull/7850 )
67
+ * [ ` match_str_case_mismatch ` ] no longer lints on uncased characters
68
+ [ #7865 ] ( https://github.com/rust-lang/rust-clippy/pull/7865 )
69
+ * [ ` ptr_arg ` ] no longer lints references to type aliases
70
+ [ #7890 ] ( https://github.com/rust-lang/rust-clippy/pull/7890 )
71
+ * [ ` missing_safety_doc ` ] now also accepts "implementation safety" headers
72
+ [ #7856 ] ( https://github.com/rust-lang/rust-clippy/pull/7856 )
73
+ * [ ` missing_safety_doc ` ] no longer lints if any parent has ` #[doc(hidden)] ` attribute
74
+ [ #7849 ] ( https://github.com/rust-lang/rust-clippy/pull/7849 )
75
+ * [ ` if_not_else ` ] now ignores else-if statements
76
+ [ #7895 ] ( https://github.com/rust-lang/rust-clippy/pull/7895 )
77
+ * Avoid linting [ ` cast_possible_truncation ` ] on bit-reducing operations
78
+ [ #7819 ] ( https://github.com/rust-lang/rust-clippy/pull/7819 )
79
+ * Avoid linting [ ` field_reassign_with_default ` ] when ` Drop ` and ` Copy ` are involved
80
+ [ #7794 ] ( https://github.com/rust-lang/rust-clippy/pull/7794 )
81
+ * [ ` unnecessary_sort_by ` ] now checks if argument implements ` Ord ` trait
82
+ [ #7824 ] ( https://github.com/rust-lang/rust-clippy/pull/7824 )
83
+ * Fix false positive in [ ` match_overlapping_arm ` ]
84
+ [ #7847 ] ( https://github.com/rust-lang/rust-clippy/pull/7847 )
85
+ * Prevent [ ` needless_lifetimes ` ] false positive in ` async ` function definition
86
+ [ #7901 ] ( https://github.com/rust-lang/rust-clippy/pull/7901 )
87
+
88
+ ### Suggestion fixes/improvements
89
+
90
+ * Keep an initial ` :: ` when [ ` doc_markdown ` ] suggests to use ticks
91
+ [ #7916 ] ( https://github.com/rust-lang/rust-clippy/pull/7916 )
92
+ * Add a machine applicable suggestion for the [ ` doc_markdown ` ] missing backticks lint
93
+ [ #7904 ] ( https://github.com/rust-lang/rust-clippy/pull/7904 )
94
+ * [ ` equatable_if_let ` ] no longer expands macros in the suggestion
95
+ [ #7788 ] ( https://github.com/rust-lang/rust-clippy/pull/7788 )
96
+ * Make [ ` shadow_reuse ` ] suggestion less verbose
97
+ [ #7782 ] ( https://github.com/rust-lang/rust-clippy/pull/7782 )
98
+
99
+ ### ICE fixes
100
+
101
+ * Fix ICE in [ ` enum_variant_names ` ]
102
+ [ #7873 ] ( https://github.com/rust-lang/rust-clippy/pull/7873 )
103
+ * Fix ICE in [ ` undocumented_unsafe_blocks ` ]
104
+ [ #7891 ] ( https://github.com/rust-lang/rust-clippy/pull/7891 )
105
+
106
+ ### Documentation improvements
107
+
108
+ * Fixed naive doc formatting for ` #[must_use] ` lints ([ ` must_use_unit ` ] , [ ` double_must_use ` ] , [ ` must_use_candidate ` ] , [ ` let_underscore_must_use ` ] )
109
+ [ #7827 ] ( https://github.com/rust-lang/rust-clippy/pull/7827 )
110
+ * Fix typo in example for [ ` match_result_ok ` ]
111
+ [ #7815 ] ( https://github.com/rust-lang/rust-clippy/pull/7815 )
112
+
113
+ ### Others
114
+
115
+ * Allow giving reasons for [ ` disallowed_types ` ]
116
+ [ #7791 ] ( https://github.com/rust-lang/rust-clippy/pull/7791 )
117
+ * Fix [ ` manual_assert ` ] and [ ` match_wild_err_arm ` ] for ` #![no_std] ` and Rust 2021.
118
+ [ #7851 ] ( https://github.com/rust-lang/rust-clippy/pull/7851 )
119
+ * Fix regression in [ ` semicolon_if_nothing_returned ` ] on macros containing while loops
120
+ [ #7789 ] ( https://github.com/rust-lang/rust-clippy/pull/7789 )
121
+ * Added a new configuration ` literal-suffix-style ` to enforce a certain style writing [ ` unseparated_literal_suffix ` ]
122
+ [ #7726 ] ( https://github.com/rust-lang/rust-clippy/pull/7726 )
123
+
10
124
11
125
## Rust 1.57
12
126
13
- Current beta, release 2021-12-02
127
+ Current stable
14
128
15
129
[ 7bfc26e...b7f3f7f] ( https://github.com/rust-lang/rust-clippy/compare/7bfc26e...b7f3f7f )
16
130
0 commit comments