@@ -6,11 +6,69 @@ document.
6
6
7
7
## Unreleased / Beta / In Rust Nightly
8
8
9
- [ 93f0a9a9...master] ( https://github.com/rust-lang/rust-clippy/compare/93f0a9a9...master )
9
+ [ ca3b3937...master] ( https://github.com/rust-lang/rust-clippy/compare/ca3b3937...master )
10
+
11
+ ## Rust 1.79
12
+
13
+ Current stable, released 2024-06-13
14
+
15
+ [ View all 102 merged pull requests] ( https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2024-03-08T11%3A13%3A58Z..2024-04-18T15%3A50%3A50Z+base%3Amaster )
16
+
17
+ ### New Lints
18
+
19
+ * Added [ ` legacy_numeric_constants ` ] to ` style `
20
+ [ #12312 ] ( https://github.com/rust-lang/rust-clippy/pull/12312 )
21
+ * Added [ ` missing_transmute_annotations ` ] to ` suspicious `
22
+ [ #12239 ] ( https://github.com/rust-lang/rust-clippy/pull/12239 )
23
+ * Added [ ` integer_division_remainder_used ` ] to ` restriction `
24
+ [ #12451 ] ( https://github.com/rust-lang/rust-clippy/pull/12451 )
25
+ * Added [ ` duplicated_attributes ` ] to ` suspicious `
26
+ [ #12378 ] ( https://github.com/rust-lang/rust-clippy/pull/12378 )
27
+ * Added [ ` manual_unwrap_or_default ` ] to ` suspicious `
28
+ [ #12440 ] ( https://github.com/rust-lang/rust-clippy/pull/12440 )
29
+ * Added [ ` zero_repeat_side_effects ` ] to ` suspicious `
30
+ [ #12449 ] ( https://github.com/rust-lang/rust-clippy/pull/12449 )
31
+ * Added [ ` const_is_empty ` ] to ` suspicious `
32
+ [ #12310 ] ( https://github.com/rust-lang/rust-clippy/pull/12310 )
33
+
34
+ ### Moves and Deprecations
35
+
36
+ * Moved [ ` box_default ` ] to ` style ` (From ` perf ` )
37
+ [ #12601 ] ( https://github.com/rust-lang/rust-clippy/pull/12601 )
38
+ * Moved [ ` manual_clamp ` ] to ` complexity ` (From ` nursery ` now warn-by-default)
39
+ [ #12543 ] ( https://github.com/rust-lang/rust-clippy/pull/12543 )
40
+ * Moved [ ` readonly_write_lock ` ] to ` perf ` (From ` nursery ` now warn-by-default)
41
+ [ #12479 ] ( https://github.com/rust-lang/rust-clippy/pull/12479 )
42
+
43
+ ### Enhancements
44
+
45
+ * [ ` module_name_repetitions ` ] : Added the [ ` allowed-prefixes ` ] configuration to allow common prefixes.
46
+ [ #12573 ] ( https://github.com/rust-lang/rust-clippy/pull/12573 )
47
+ * [ ` cast_sign_loss ` ] , [ ` cast_possible_truncation ` ] , [ ` cast_lossless ` ] : Are now allowed in macros
48
+ [ #12631 ] ( https://github.com/rust-lang/rust-clippy/pull/12631 )
49
+ * [ ` manual_clamp ` ] : Now only lints on constant min and max values
50
+ [ #12543 ] ( https://github.com/rust-lang/rust-clippy/pull/12543 )
51
+ * [ ` assigning_clones ` ] : Now considers the [ ` msrv ` ] configuration
52
+ [ #12511 ] ( https://github.com/rust-lang/rust-clippy/pull/12511 )
53
+ * [ ` needless_return ` ] , [ ` useless_let_if_seq ` ] , [ ` mut_mut ` ] , [ ` read_zero_byte_vec ` ] , [ ` unused_io_amount ` ] ,
54
+ [ ` unused_peekable ` ] : Now respects ` #[allow] ` attributes on the affected statement instead
55
+ [ #12446 ] ( https://github.com/rust-lang/rust-clippy/pull/12446 )
56
+
57
+ ### False Positive Fixes
58
+
59
+ * [ ` cast_lossless ` ] : No longer lints when casting to ` u128 `
60
+ [ #12496 ] ( https://github.com/rust-lang/rust-clippy/pull/12496 )
61
+ * [ ` std_instead_of_core ` ] No longer lints on modules that are only in ` std `
62
+ [ #12447 ] ( https://github.com/rust-lang/rust-clippy/pull/12447 )
63
+
64
+ ### ICE Fixes
65
+
66
+ * [ ` needless_return ` ] : No longer crashes on non-ascii characters
67
+ [ #12493 ] ( https://github.com/rust-lang/rust-clippy/pull/12493 )
10
68
11
69
## Rust 1.78
12
70
13
- Current stable, released 2024-05-02
71
+ Released 2024-05-02
14
72
15
73
[ View all 112 merged pull requests] ( https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2024-01-26T05%3A46%3A23Z..2024-03-07T16%3A25%3A52Z+base%3Amaster )
16
74
@@ -1885,7 +1943,7 @@ Released 2022-05-19
1885
1943
[ #8218 ] ( https://github.com/rust-lang/rust-clippy/pull/8218 )
1886
1944
* [ ` needless_match ` ]
1887
1945
[ #8471 ] ( https://github.com/rust-lang/rust-clippy/pull/8471 )
1888
- * [ ` allow_attributes_without_reason ` ] (Requires ` #![feature(lint_reasons)] ` )
1946
+ * [ ` allow_attributes_without_reason ` ]
1889
1947
[ #8504 ] ( https://github.com/rust-lang/rust-clippy/pull/8504 )
1890
1948
* [ ` print_in_format_impl ` ]
1891
1949
[ #8253 ] ( https://github.com/rust-lang/rust-clippy/pull/8253 )
@@ -5178,6 +5236,7 @@ Released 2018-09-13
5178
5236
[ `boxed_local` ] : https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
5179
5237
[ `branches_sharing_code` ] : https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
5180
5238
[ `builtin_type_shadow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
5239
+ [ `byte_char_slices` ] : https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
5181
5240
[ `bytes_count_to_len` ] : https://rust-lang.github.io/rust-clippy/master/index.html#bytes_count_to_len
5182
5241
[ `bytes_nth` ] : https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
5183
5242
[ `cargo_common_metadata` ] : https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
@@ -5195,6 +5254,7 @@ Released 2018-09-13
5195
5254
[ `cast_sign_loss` ] : https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
5196
5255
[ `cast_slice_different_sizes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_different_sizes
5197
5256
[ `cast_slice_from_raw_parts` ] : https://rust-lang.github.io/rust-clippy/master/index.html#cast_slice_from_raw_parts
5257
+ [ `cfg_not_test` ] : https://rust-lang.github.io/rust-clippy/master/index.html#cfg_not_test
5198
5258
[ `char_lit_as_u8` ] : https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8
5199
5259
[ `chars_last_cmp` ] : https://rust-lang.github.io/rust-clippy/master/index.html#chars_last_cmp
5200
5260
[ `chars_next_cmp` ] : https://rust-lang.github.io/rust-clippy/master/index.html#chars_next_cmp
@@ -5305,6 +5365,7 @@ Released 2018-09-13
5305
5365
[ `extra_unused_type_parameters` ] : https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
5306
5366
[ `fallible_impl_from` ] : https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
5307
5367
[ `field_reassign_with_default` ] : https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
5368
+ [ `field_scoped_visibility_modifiers` ] : https://rust-lang.github.io/rust-clippy/master/index.html#field_scoped_visibility_modifiers
5308
5369
[ `filetype_is_file` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
5309
5370
[ `filter_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
5310
5371
[ `filter_map_bool_then` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_bool_then
@@ -5464,6 +5525,7 @@ Released 2018-09-13
5464
5525
[ `manual_find_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
5465
5526
[ `manual_flatten` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
5466
5527
[ `manual_hash_one` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_hash_one
5528
+ [ `manual_inspect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
5467
5529
[ `manual_instant_elapsed` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
5468
5530
[ `manual_is_ascii_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
5469
5531
[ `manual_is_finite` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_finite
@@ -5476,10 +5538,12 @@ Released 2018-09-13
5476
5538
[ `manual_next_back` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
5477
5539
[ `manual_non_exhaustive` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
5478
5540
[ `manual_ok_or` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
5541
+ [ `manual_pattern_char_comparison` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
5479
5542
[ `manual_range_contains` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
5480
5543
[ `manual_range_patterns` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
5481
5544
[ `manual_rem_euclid` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
5482
5545
[ `manual_retain` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_retain
5546
+ [ `manual_rotate` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rotate
5483
5547
[ `manual_saturating_arithmetic` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
5484
5548
[ `manual_slice_size_calculation` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
5485
5549
[ `manual_split_once` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
@@ -5528,6 +5592,7 @@ Released 2018-09-13
5528
5592
[ `missing_assert_message` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_message
5529
5593
[ `missing_asserts_for_indexing` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_asserts_for_indexing
5530
5594
[ `missing_const_for_fn` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
5595
+ [ `missing_const_for_thread_local` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_thread_local
5531
5596
[ `missing_docs_in_private_items` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
5532
5597
[ `missing_enforced_import_renames` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames
5533
5598
[ `missing_errors_doc` ] : https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
@@ -5569,6 +5634,7 @@ Released 2018-09-13
5569
5634
[ `needless_borrow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
5570
5635
[ `needless_borrowed_reference` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
5571
5636
[ `needless_borrows_for_generic_args` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
5637
+ [ `needless_character_iteration` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_character_iteration
5572
5638
[ `needless_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
5573
5639
[ `needless_continue` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
5574
5640
[ `needless_doctest_main` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
@@ -5578,6 +5644,7 @@ Released 2018-09-13
5578
5644
[ `needless_late_init` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
5579
5645
[ `needless_lifetimes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
5580
5646
[ `needless_match` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
5647
+ [ `needless_maybe_sized` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
5581
5648
[ `needless_option_as_deref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
5582
5649
[ `needless_option_take` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
5583
5650
[ `needless_parens_on_range_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
@@ -5736,6 +5803,7 @@ Released 2018-09-13
5736
5803
[ `semicolon_outside_block` ] : https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block
5737
5804
[ `separated_literal_suffix` ] : https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
5738
5805
[ `serde_api_misuse` ] : https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
5806
+ [ `set_contains_or_insert` ] : https://rust-lang.github.io/rust-clippy/master/index.html#set_contains_or_insert
5739
5807
[ `shadow_reuse` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
5740
5808
[ `shadow_same` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
5741
5809
[ `shadow_unrelated` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
@@ -5856,6 +5924,7 @@ Released 2018-09-13
5856
5924
[ `unnecessary_lazy_evaluations` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
5857
5925
[ `unnecessary_literal_unwrap` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
5858
5926
[ `unnecessary_map_on_constructor` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_on_constructor
5927
+ [ `unnecessary_min_or_max` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_min_or_max
5859
5928
[ `unnecessary_mut_passed` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
5860
5929
[ `unnecessary_operation` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
5861
5930
[ `unnecessary_owned_empty_strings` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
@@ -5913,6 +5982,7 @@ Released 2018-09-13
5913
5982
[ `verbose_file_reads` ] : https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
5914
5983
[ `vtable_address_comparisons` ] : https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
5915
5984
[ `waker_clone_wake` ] : https://rust-lang.github.io/rust-clippy/master/index.html#waker_clone_wake
5985
+ [ `while_float` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_float
5916
5986
[ `while_immutable_condition` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
5917
5987
[ `while_let_loop` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
5918
5988
[ `while_let_on_iterator` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
0 commit comments