@@ -6,11 +6,81 @@ document.
6
6
7
7
## Unreleased / In Rust Nightly
8
8
9
- [ 74d1561...master] ( https://github.com/rust-lang/rust-clippy/compare/74d1561...master )
9
+ [ 7bfc26e...master] ( https://github.com/rust-lang/rust-clippy/compare/7bfc26e...master )
10
+
11
+ ## Rust 1.56
12
+
13
+ Current beta, release 2021-10-21
14
+
15
+ [ 74d1561...7bfc26e] ( https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e )
16
+
17
+ ### New Lints
18
+
19
+ * [ ` unwrap_or_else_default ` ]
20
+ [ #7516 ] ( https://github.com/rust-lang/rust-clippy/pull/7516 )
21
+
22
+ ### Enhancements
23
+
24
+ * [ ` needless_continue ` ] : Now also lints in ` loop { continue; } ` case
25
+ [ #7477 ] ( https://github.com/rust-lang/rust-clippy/pull/7477 )
26
+ * [ ` disallowed_type ` ] : Now also primitive types can be disallowed
27
+ [ #7488 ] ( https://github.com/rust-lang/rust-clippy/pull/7488 )
28
+ * [ ` manual_swap ` ] : Now also lints on xor swaps
29
+ [ #7506 ] ( https://github.com/rust-lang/rust-clippy/pull/7506 )
30
+ * [ ` map_flatten ` ] : Now also lints on the ` Result ` type
31
+ [ #7522 ] ( https://github.com/rust-lang/rust-clippy/pull/7522 )
32
+ * [ ` no_effect ` ] : Now also lints on inclusive ranges
33
+ [ #7556 ] ( https://github.com/rust-lang/rust-clippy/pull/7556 )
34
+
35
+ ### False Positive Fixes
36
+
37
+ * [ ` nonstandard_macro_braces ` ] : No longer lints on similar named nested macros
38
+ [ #7478 ] ( https://github.com/rust-lang/rust-clippy/pull/7478 )
39
+ * [ ` too_many_lines ` ] : No longer lints in closures to avoid duplicated diagnostics
40
+ [ #7534 ] ( https://github.com/rust-lang/rust-clippy/pull/7534 )
41
+ * [ ` similar_names ` ] : No longer complains about ` iter ` and ` item ` being too
42
+ similar [ #7546 ] ( https://github.com/rust-lang/rust-clippy/pull/7546 )
43
+
44
+ ### Suggestion Fixes/Improvements
45
+
46
+ * [ ` similar_names ` ] : No longer suggests to insert or add an underscore as a fix
47
+ [ #7221 ] ( https://github.com/rust-lang/rust-clippy/pull/7221 )
48
+ * [ ` new_without_default ` ] : No longer shows the full qualified type path when
49
+ suggesting adding a ` Default ` implementation
50
+ [ #7493 ] ( https://github.com/rust-lang/rust-clippy/pull/7493 )
51
+ * [ ` while_let_on_iterator ` ] : Now suggests re-borrowing mutable references
52
+ [ #7520 ] ( https://github.com/rust-lang/rust-clippy/pull/7520 )
53
+ * [ ` extend_with_drain ` ] : Improve code suggestion for mutable and immutable
54
+ references [ #7533 ] ( https://github.com/rust-lang/rust-clippy/pull/7533 )
55
+ * [ ` trivially_copy_pass_by_ref ` ] : Now properly handles ` Self ` type
56
+ [ #7535 ] ( https://github.com/rust-lang/rust-clippy/pull/7535 )
57
+ * [ ` never_loop ` ] : Now suggests using ` if let ` instead of a ` for ` loop when
58
+ applicable [ #7541 ] ( https://github.com/rust-lang/rust-clippy/pull/7541 )
59
+
60
+ ### Documentation Improvements
61
+
62
+ * Clippy now uses a lint to generate its lint documentation. [ Lints all the way
63
+ down] ( https://en.wikipedia.org/wiki/Turtles_all_the_way_down ) .
64
+ [ #7502 ] ( https://github.com/rust-lang/rust-clippy/pull/7502 )
65
+ * Reworked Clippy's website:
66
+ [ #7172 ] ( https://github.com/rust-lang/rust-clippy/issues/7172 )
67
+ [ #7279 ] ( https://github.com/rust-lang/rust-clippy/pull/7279 )
68
+ * Added applicability information about lints
69
+ * Added a link to jump into the implementation
70
+ * Improved loading times
71
+ * Adapted some styling
72
+ * ` cargo clippy --help ` now also explains the ` --fix ` and ` --no-deps ` flag
73
+ [ #7492 ] ( https://github.com/rust-lang/rust-clippy/pull/7492 )
74
+ * [ ` unnested_or_patterns ` ] : Removed ` or_patterns ` feature gate in the code
75
+ example [ #7507 ] ( https://github.com/rust-lang/rust-clippy/pull/7507 )
76
+
77
+ ### New Lints
78
+
79
+ * Renamed Lint: ` if_let_some_result ` is now called [ ` match_result_ok ` ] . Now also handles ` while let ` case.
10
80
11
81
## Rust 1.55
12
82
13
- Current beta, release 2021-09-09
83
+ Current stable, released 2021-09-09
14
84
15
85
[ 3ae8faf...74d1561] ( https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561 )
16
86
@@ -126,21 +196,9 @@ Current beta, release 2021-09-09
126
196
* [ ` use_self ` ]
127
197
[ #7428 ] ( https://github.com/rust-lang/rust-clippy/pull/7428 )
128
198
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 )
140
-
141
199
## Rust 1.54
142
200
143
- Current stable, released 2021-07-29
201
+ Released 2021-07-29
144
202
145
203
[ 7c7683c...3ae8faf] ( https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf )
146
204
@@ -1050,7 +1108,7 @@ Released 2020-11-19
1050
1108
[ #5913 ] ( https://github.com/rust-lang/rust-clippy/pull/5913 )
1051
1109
* Add example of false positive to [ ` ptr_arg ` ] docs.
1052
1110
[ #5885 ] ( https://github.com/rust-lang/rust-clippy/pull/5885 )
1053
- * [ ` box_vec ` ] , [ ` vec_box ` ] and [ ` borrowed_box ` ] : add link to the documentation of ` Box `
1111
+ * [ ` box_vec ` ] ( https://rust-lang.github.io/rust-clippy/master/index.html#box_collection ) , [ ` vec_box ` ] and [ ` borrowed_box ` ] : add link to the documentation of ` Box `
1054
1112
[ #6023 ] ( https://github.com/rust-lang/rust-clippy/pull/6023 )
1055
1113
1056
1114
## Rust 1.47
@@ -1491,7 +1549,7 @@ Released 2020-03-12
1491
1549
* ` unknown_clippy_lints ` [ #4963 ] ( https://github.com/rust-lang/rust-clippy/pull/4963 )
1492
1550
* [ ` explicit_into_iter_loop ` ] [ #4978 ] ( https://github.com/rust-lang/rust-clippy/pull/4978 )
1493
1551
* [ ` useless_attribute ` ] [ #5022 ] ( https://github.com/rust-lang/rust-clippy/pull/5022 )
1494
- * [ ` if_let_some_result ` ] [ #5032 ] ( https://github.com/rust-lang/rust-clippy/pull/5032 )
1552
+ * ` if_let_some_result ` [ #5032 ] ( https://github.com/rust-lang/rust-clippy/pull/5032 )
1495
1553
1496
1554
### ICE fixes
1497
1555
@@ -2570,7 +2628,7 @@ Released 2018-09-13
2570
2628
[ `bool_comparison` ] : https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
2571
2629
[ `borrow_interior_mutable_const` ] : https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
2572
2630
[ `borrowed_box` ] : https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
2573
- [ `box_vec ` ] : https://rust-lang.github.io/rust-clippy/master/index.html#box_vec
2631
+ [ `box_collection ` ] : https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
2574
2632
[ `boxed_local` ] : https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
2575
2633
[ `branches_sharing_code` ] : https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
2576
2634
[ `builtin_type_shadow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
@@ -2685,9 +2743,9 @@ Released 2018-09-13
2685
2743
[ `identity_op` ] : https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
2686
2744
[ `if_let_mutex` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_let_mutex
2687
2745
[ `if_let_redundant_pattern_matching` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_let_redundant_pattern_matching
2688
- [ `if_let_some_result` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_let_some_result
2689
2746
[ `if_not_else` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
2690
2747
[ `if_same_then_else` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
2748
+ [ `if_then_panic` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_then_panic
2691
2749
[ `if_then_some_else_none` ] : https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none
2692
2750
[ `ifs_same_cond` ] : https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
2693
2751
[ `implicit_clone` ] : https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
@@ -2722,6 +2780,7 @@ Released 2018-09-13
2722
2780
[ `iter_count` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
2723
2781
[ `iter_next_loop` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_loop
2724
2782
[ `iter_next_slice` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice
2783
+ [ `iter_not_returning_iterator` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
2725
2784
[ `iter_nth` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
2726
2785
[ `iter_nth_zero` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
2727
2786
[ `iter_skip_next` ] : https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
@@ -2773,6 +2832,7 @@ Released 2018-09-13
2773
2832
[ `match_on_vec_items` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_on_vec_items
2774
2833
[ `match_overlapping_arm` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_overlapping_arm
2775
2834
[ `match_ref_pats` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats
2835
+ [ `match_result_ok` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
2776
2836
[ `match_same_arms` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
2777
2837
[ `match_single_binding` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
2778
2838
[ `match_wild_err_arm` ] : https://rust-lang.github.io/rust-clippy/master/index.html#match_wild_err_arm
@@ -2905,6 +2965,7 @@ Released 2018-09-13
2905
2965
[ `reversed_empty_ranges` ] : https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
2906
2966
[ `same_functions_in_if_condition` ] : https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
2907
2967
[ `same_item_push` ] : https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
2968
+ [ `same_name_method` ] : https://rust-lang.github.io/rust-clippy/master/index.html#same_name_method
2908
2969
[ `search_is_some` ] : https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
2909
2970
[ `self_assignment` ] : https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
2910
2971
[ `self_named_constructors` ] : https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
0 commit comments