@@ -6,7 +6,61 @@ document.
6
6
7
7
## Unreleased / Beta / In Rust Nightly
8
8
9
- [ c9139bd5...master] ( https://github.com/rust-lang/rust-clippy/compare/c9139bd5...master )
9
+ [ b794b8e0...master] ( https://github.com/rust-lang/rust-clippy/compare/b794b8e0...master )
10
+
11
+ ## Rust 1.81
12
+
13
+ Current stable, released 2024-09-05
14
+
15
+ ### New Lints
16
+
17
+ * Added [ ` cfg_not_test ` ] to ` restriction `
18
+ [ #11293 ] ( https://github.com/rust-lang/rust-clippy/pull/11293 )
19
+ * Added [ ` byte_char_slices ` ] to ` style `
20
+ [ #10155 ] ( https://github.com/rust-lang/rust-clippy/pull/10155 )
21
+ * Added [ ` set_contains_or_insert ` ] to ` nursery `
22
+ [ #12873 ] ( https://github.com/rust-lang/rust-clippy/pull/12873 )
23
+ * Added [ ` manual_rotate ` ] to ` style `
24
+ [ #12983 ] ( https://github.com/rust-lang/rust-clippy/pull/12983 )
25
+ * Added [ ` unnecessary_min_or_max ` ] to ` complexity `
26
+ [ #12368 ] ( https://github.com/rust-lang/rust-clippy/pull/12368 )
27
+ * Added [ ` manual_inspect ` ] to ` complexity `
28
+ [ #12287 ] ( https://github.com/rust-lang/rust-clippy/pull/12287 )
29
+ * Added [ ` field_scoped_visibility_modifiers ` ] to ` restriction `
30
+ [ #12893 ] ( https://github.com/rust-lang/rust-clippy/pull/12893 )
31
+ * Added [ ` manual_pattern_char_comparison ` ] to ` style `
32
+ [ #12849 ] ( https://github.com/rust-lang/rust-clippy/pull/12849 )
33
+ * Added [ ` needless_maybe_sized ` ] to ` suspicious `
34
+ [ #10632 ] ( https://github.com/rust-lang/rust-clippy/pull/10632 )
35
+ * Added [ ` needless_character_iteration ` ] to ` suspicious `
36
+ [ #12815 ] ( https://github.com/rust-lang/rust-clippy/pull/12815 )
37
+
38
+ ### Moves and Deprecations
39
+
40
+ * [ ` allow_attributes ` ] , [ ` allow_attributes_without_reason ` ] : Now work on stable
41
+ [ rust #120924 ] ( https://github.com/rust-lang/rust/pull/120924 )
42
+ * Renamed ` overflow_check_conditional ` to [ ` panicking_overflow_checks ` ]
43
+ [ #12944 ] ( https://github.com/rust-lang/rust-clippy/pull/12944 )
44
+ * Moved [ ` panicking_overflow_checks ` ] to ` correctness ` (From ` complexity ` now deny-by-default)
45
+ [ #12944 ] ( https://github.com/rust-lang/rust-clippy/pull/12944 )
46
+ * Renamed ` thread_local_initializer_can_be_made_const ` to [ ` missing_const_for_thread_local ` ]
47
+ [ #12974 ] ( https://github.com/rust-lang/rust-clippy/pull/12974 )
48
+ * Deprecated [ ` maybe_misused_cfg ` ] and [ ` mismatched_target_os ` ] as they are now caught by cargo
49
+ and rustc
50
+ [ #12875 ] ( https://github.com/rust-lang/rust-clippy/pull/12875 )
51
+
52
+ ### Enhancements
53
+
54
+ * [ ` significant_drop_in_scrutinee ` ] : Now also checks scrutinies of ` while let ` and ` for let `
55
+ expressions
56
+ [ #12870 ] ( https://github.com/rust-lang/rust-clippy/pull/12870 )
57
+ * [ ` std_instead_of_core ` ] : Now respects the ` msrv ` configuration
58
+ [ #13168 ] ( https://github.com/rust-lang/rust-clippy/pull/13168 )
59
+
60
+ ### ICE Fixes
61
+
62
+ * [ ` suboptimal_flops ` ] : No longer crashes on custom ` .log() ` functions
63
+ [ #12884 ] ( https://github.com/rust-lang/rust-clippy/pull/12884 )
10
64
11
65
## Rust 1.80
12
66
@@ -5500,6 +5554,7 @@ Released 2018-09-13
5500
5554
[ `invalid_regex` ] : https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
5501
5555
[ `invalid_upcast_comparisons` ] : https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
5502
5556
[ `invalid_utf8_in_unchecked` ] : https://rust-lang.github.io/rust-clippy/master/index.html#invalid_utf8_in_unchecked
5557
+ [ `inverted_saturating_sub` ] : https://rust-lang.github.io/rust-clippy/master/index.html#inverted_saturating_sub
5503
5558
[ `invisible_characters` ] : https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
5504
5559
[ `is_digit_ascii_radix` ] : https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
5505
5560
[ `items_after_statements` ] : https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
@@ -5559,6 +5614,7 @@ Released 2018-09-13
5559
5614
[ `manual_bits` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
5560
5615
[ `manual_c_str_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
5561
5616
[ `manual_clamp` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
5617
+ [ `manual_div_ceil` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil
5562
5618
[ `manual_filter` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
5563
5619
[ `manual_filter_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
5564
5620
[ `manual_find` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
@@ -5570,6 +5626,7 @@ Released 2018-09-13
5570
5626
[ `manual_is_ascii_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
5571
5627
[ `manual_is_finite` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_finite
5572
5628
[ `manual_is_infinite` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_infinite
5629
+ [ `manual_is_power_of_two` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_power_of_two
5573
5630
[ `manual_is_variant_and` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_variant_and
5574
5631
[ `manual_let_else` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
5575
5632
[ `manual_main_separator_str` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_main_separator_str
@@ -5716,6 +5773,7 @@ Released 2018-09-13
5716
5773
[ `non_minimal_cfg` ] : https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
5717
5774
[ `non_octal_unix_permissions` ] : https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
5718
5775
[ `non_send_fields_in_send_ty` ] : https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
5776
+ [ `non_zero_suggestions` ] : https://rust-lang.github.io/rust-clippy/master/index.html#non_zero_suggestions
5719
5777
[ `nonminimal_bool` ] : https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
5720
5778
[ `nonsensical_open_options` ] : https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
5721
5779
[ `nonstandard_macro_braces` ] : https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
@@ -5757,6 +5815,7 @@ Released 2018-09-13
5757
5815
[ `pathbuf_init_then_push` ] : https://rust-lang.github.io/rust-clippy/master/index.html#pathbuf_init_then_push
5758
5816
[ `pattern_type_mismatch` ] : https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
5759
5817
[ `permissions_set_readonly_false` ] : https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false
5818
+ [ `pointers_in_nomem_asm_block` ] : https://rust-lang.github.io/rust-clippy/master/index.html#pointers_in_nomem_asm_block
5760
5819
[ `positional_named_format_parameters` ] : https://rust-lang.github.io/rust-clippy/master/index.html#positional_named_format_parameters
5761
5820
[ `possible_missing_comma` ] : https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
5762
5821
[ `precedence` ] : https://rust-lang.github.io/rust-clippy/master/index.html#precedence
@@ -5962,6 +6021,7 @@ Released 2018-09-13
5962
6021
[ `unnecessary_fallible_conversions` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
5963
6022
[ `unnecessary_filter_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
5964
6023
[ `unnecessary_find_map` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
6024
+ [ `unnecessary_first_then_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_first_then_check
5965
6025
[ `unnecessary_fold` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
5966
6026
[ `unnecessary_get_then_check` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
5967
6027
[ `unnecessary_join` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
@@ -6003,6 +6063,7 @@ Released 2018-09-13
6003
6063
[ `unused_result_ok` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_result_ok
6004
6064
[ `unused_rounding` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
6005
6065
[ `unused_self` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
6066
+ [ `unused_trait_names` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names
6006
6067
[ `unused_unit` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
6007
6068
[ `unusual_byte_groupings` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
6008
6069
[ `unwrap_in_result` ] : https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
@@ -6013,6 +6074,7 @@ Released 2018-09-13
6013
6074
[ `use_debug` ] : https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
6014
6075
[ `use_self` ] : https://rust-lang.github.io/rust-clippy/master/index.html#use_self
6015
6076
[ `used_underscore_binding` ] : https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
6077
+ [ `used_underscore_items` ] : https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
6016
6078
[ `useless_asref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
6017
6079
[ `useless_attribute` ] : https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
6018
6080
[ `useless_conversion` ] : https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
@@ -6047,6 +6109,7 @@ Released 2018-09-13
6047
6109
[ `zero_repeat_side_effects` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zero_repeat_side_effects
6048
6110
[ `zero_sized_map_values` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
6049
6111
[ `zero_width_space` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
6112
+ [ `zombie_processes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes
6050
6113
[ `zst_offset` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
6051
6114
<!-- end autogenerated links to lint list -->
6052
6115
<!-- begin autogenerated links to configuration documentation -->
0 commit comments