@@ -6,13 +6,127 @@ document.
66
77## Unreleased / In Rust Nightly
88
9- [ b7f3f7f...master] ( https://github.com/rust-lang/rust-clippy/compare/b7f3f7f...master )
9+ [ e181011...master] ( https://github.com/rust-lang/rust-clippy/compare/e181011...master )
10+
11+ ## Rust 1.58 (beta)
12+
13+ Current beta, release 2022-01-13
14+
15+ [ 00e31fa...e181011] ( https://github.com/rust-lang/rust-clippy/compare/00e31fa...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+ ### Moves or deprecations of lints
37+
38+ * Move [ ` non_send_fields_in_send_ty ` ] to ` suspicious `
39+ [ #7874 ] ( https://github.com/rust-lang/rust-clippy/pull/7874 )
40+ * Move [ ` non_ascii_literal ` ] to ` restriction `
41+ [ #7907 ] ( https://github.com/rust-lang/rust-clippy/pull/7907 )
42+
43+ ### Changes that expand what code existing lints cover
44+
45+ * [ ` question_mark ` ] now covers ` Result `
46+ [ #7840 ] ( https://github.com/rust-lang/rust-clippy/pull/7840 )
47+ * Make [ ` useless_format ` ] recognize bare ` format!("") `
48+ [ #7801 ] ( https://github.com/rust-lang/rust-clippy/pull/7801 )
49+ * Lint on underscored variables with no side effects in [ ` no_effect ` ]
50+ [ #7775 ] ( https://github.com/rust-lang/rust-clippy/pull/7775 )
51+ * Expand [ ` match_ref_pats ` ] to check for multiple reference patterns
52+ [ #7800 ] ( https://github.com/rust-lang/rust-clippy/pull/7800 )
53+
54+ ### False positive fixes
55+
56+ * Fix false positive of [ ` implicit_saturating_sub ` ] with ` else ` clause
57+ [ #7832 ] ( https://github.com/rust-lang/rust-clippy/pull/7832 )
58+ * Fix [ ` question_mark ` ] when there is call in conditional predicate
59+ [ #7860 ] ( https://github.com/rust-lang/rust-clippy/pull/7860 )
60+ * [ ` mut_mut ` ] no longer lints when type is defined in external macros
61+ [ #7795 ] ( https://github.com/rust-lang/rust-clippy/pull/7795 )
62+ * Avoid [ ` eq_op ` ] in test functions
63+ [ #7811 ] ( https://github.com/rust-lang/rust-clippy/pull/7811 )
64+ * [ ` cast_possible_truncation ` ] no longer lints when cast is coming from ` signum `
65+ method call [ #7850 ] ( https://github.com/rust-lang/rust-clippy/pull/7850 )
66+ * [ ` match_str_case_mismatch ` ] no longer lints on uncased characters
67+ [ #7865 ] ( https://github.com/rust-lang/rust-clippy/pull/7865 )
68+ * [ ` ptr_arg ` ] no longer lints references to type aliases
69+ [ #7890 ] ( https://github.com/rust-lang/rust-clippy/pull/7890 )
70+ * [ ` missing_safety_doc ` ] now also accepts "implementation safety" headers
71+ [ #7856 ] ( https://github.com/rust-lang/rust-clippy/pull/7856 )
72+ * [ ` missing_safety_doc ` ] no longer lints if any parent has ` #[doc(hidden)] `
73+ attribute [ #7849 ] ( https://github.com/rust-lang/rust-clippy/pull/7849 )
74+ * [ ` if_not_else ` ] now ignores else-if statements
75+ [ #7895 ] ( https://github.com/rust-lang/rust-clippy/pull/7895 )
76+ * Avoid linting [ ` cast_possible_truncation ` ] on bit-reducing operations
77+ [ #7819 ] ( https://github.com/rust-lang/rust-clippy/pull/7819 )
78+ * Avoid linting [ ` field_reassign_with_default ` ] when ` Drop ` and ` Copy ` are
79+ involved [ #7794 ] ( https://github.com/rust-lang/rust-clippy/pull/7794 )
80+ * [ ` unnecessary_sort_by ` ] now checks if argument implements ` Ord ` trait
81+ [ #7824 ] ( https://github.com/rust-lang/rust-clippy/pull/7824 )
82+ * Fix false positive in [ ` match_overlapping_arm ` ]
83+ [ #7847 ] ( https://github.com/rust-lang/rust-clippy/pull/7847 )
84+ * Prevent [ ` needless_lifetimes ` ] false positive in ` async ` function definition
85+ [ #7901 ] ( https://github.com/rust-lang/rust-clippy/pull/7901 )
86+
87+ ### Suggestion fixes/improvements
88+
89+ * Keep an initial ` :: ` when [ ` doc_markdown ` ] suggests to use ticks
90+ [ #7916 ] ( https://github.com/rust-lang/rust-clippy/pull/7916 )
91+ * Add a machine applicable suggestion for the [ ` doc_markdown ` ] missing backticks
92+ lint [ #7904 ] ( https://github.com/rust-lang/rust-clippy/pull/7904 )
93+ * [ ` equatable_if_let ` ] no longer expands macros in the suggestion
94+ [ #7788 ] ( https://github.com/rust-lang/rust-clippy/pull/7788 )
95+ * Make [ ` shadow_reuse ` ] suggestion less verbose
96+ [ #7782 ] ( https://github.com/rust-lang/rust-clippy/pull/7782 )
97+
98+ ### ICE fixes
99+
100+ * Fix ICE in [ ` enum_variant_names ` ]
101+ [ #7873 ] ( https://github.com/rust-lang/rust-clippy/pull/7873 )
102+ * Fix ICE in [ ` undocumented_unsafe_blocks ` ]
103+ [ #7891 ] ( https://github.com/rust-lang/rust-clippy/pull/7891 )
104+
105+ ### Documentation improvements
106+
107+ * Fixed naive doc formatting for ` #[must_use] ` lints ([ ` must_use_unit ` ] ,
108+ [ ` 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
118+ 2021 . [ #7851 ] ( https://github.com/rust-lang/rust-clippy/pull/7851 )
119+ * Fix regression in [ ` semicolon_if_nothing_returned ` ] on macros containing while
120+ loops [ #7789 ] ( https://github.com/rust-lang/rust-clippy/pull/7789 )
121+ * Added a new configuration ` literal-suffix-style ` to enforce a certain style
122+ writing [ ` unseparated_literal_suffix ` ]
123+ [ #7726 ] ( https://github.com/rust-lang/rust-clippy/pull/7726 )
10124
11125## Rust 1.57
12126
13- Current beta, release 2021-12-02
127+ Current stable, released 2021-12-02
14128
15- [ 7bfc26e...b7f3f7f ] ( https://github.com/rust-lang/rust-clippy/compare/7bfc26e...b7f3f7f )
129+ [ 7bfc26e...00e31fa ] ( https://github.com/rust-lang/rust-clippy/compare/7bfc26e...00e31fa )
16130
17131### New Lints
18132
@@ -161,7 +275,7 @@ Current beta, release 2021-12-02
161275
162276## Rust 1.56
163277
164- Current stable, released 2021-10-21
278+ Released 2021-10-21
165279
166280[ 74d1561...7bfc26e] ( https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e )
167281
@@ -2912,6 +3026,7 @@ Released 2018-09-13
29123026[ `infinite_iter` ] : https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
29133027[ `inherent_to_string` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
29143028[ `inherent_to_string_shadow_display` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
3029+ [ `init_numbered_fields` ] : https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
29153030[ `inline_always` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
29163031[ `inline_asm_x86_att_syntax` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
29173032[ `inline_asm_x86_intel_syntax` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
0 commit comments