@@ -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
@@ -5304,6 +5364,7 @@ Released 2018-09-13
5304
5364
[ `extra_unused_type_parameters` ] : https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
5305
5365
[ `fallible_impl_from` ] : https://rust-lang.github.io/rust-clippy/master/index.html#fallible_impl_from
5306
5366
[ `field_reassign_with_default` ] : https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
5367
+ [ `field_scoped_visibility_modifiers` ] : https://rust-lang.github.io/rust-clippy/master/index.html#field_scoped_visibility_modifiers
5307
5368
[ `filetype_is_file` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filetype_is_file
5308
5369
[ `filter_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filter_map
5309
5370
[ `filter_map_bool_then` ] : https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_bool_then
@@ -5462,6 +5523,7 @@ Released 2018-09-13
5462
5523
[ `manual_find_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
5463
5524
[ `manual_flatten` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
5464
5525
[ `manual_hash_one` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_hash_one
5526
+ [ `manual_inspect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
5465
5527
[ `manual_instant_elapsed` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_instant_elapsed
5466
5528
[ `manual_is_ascii_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
5467
5529
[ `manual_is_finite` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_finite
@@ -5474,10 +5536,12 @@ Released 2018-09-13
5474
5536
[ `manual_next_back` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
5475
5537
[ `manual_non_exhaustive` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
5476
5538
[ `manual_ok_or` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
5539
+ [ `manual_pattern_char_comparison` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
5477
5540
[ `manual_range_contains` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
5478
5541
[ `manual_range_patterns` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
5479
5542
[ `manual_rem_euclid` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
5480
5543
[ `manual_retain` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_retain
5544
+ [ `manual_rotate` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rotate
5481
5545
[ `manual_saturating_arithmetic` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
5482
5546
[ `manual_slice_size_calculation` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
5483
5547
[ `manual_split_once` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
@@ -5577,6 +5641,7 @@ Released 2018-09-13
5577
5641
[ `needless_late_init` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
5578
5642
[ `needless_lifetimes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
5579
5643
[ `needless_match` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
5644
+ [ `needless_maybe_sized` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
5580
5645
[ `needless_option_as_deref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
5581
5646
[ `needless_option_take` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
5582
5647
[ `needless_parens_on_range_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
@@ -5735,6 +5800,7 @@ Released 2018-09-13
5735
5800
[ `semicolon_outside_block` ] : https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block
5736
5801
[ `separated_literal_suffix` ] : https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix
5737
5802
[ `serde_api_misuse` ] : https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
5803
+ [ `set_contains_or_insert` ] : https://rust-lang.github.io/rust-clippy/master/index.html#set_contains_or_insert
5738
5804
[ `shadow_reuse` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
5739
5805
[ `shadow_same` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_same
5740
5806
[ `shadow_unrelated` ] : https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
@@ -5855,6 +5921,7 @@ Released 2018-09-13
5855
5921
[ `unnecessary_lazy_evaluations` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
5856
5922
[ `unnecessary_literal_unwrap` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
5857
5923
[ `unnecessary_map_on_constructor` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_on_constructor
5924
+ [ `unnecessary_min_or_max` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_min_or_max
5858
5925
[ `unnecessary_mut_passed` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
5859
5926
[ `unnecessary_operation` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
5860
5927
[ `unnecessary_owned_empty_strings` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
0 commit comments