@@ -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
@@ -5249,6 +5307,7 @@ Released 2018-09-13
5249
5307
[ `disallowed_type` ] : https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_type
5250
5308
[ `disallowed_types` ] : https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
5251
5309
[ `diverging_sub_expression` ] : https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
5310
+ [ `doc_lazy_continuation` ] : https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
5252
5311
[ `doc_link_with_quotes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#doc_link_with_quotes
5253
5312
[ `doc_markdown` ] : https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
5254
5313
[ `double_comparisons` ] : https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons
@@ -5447,6 +5506,7 @@ Released 2018-09-13
5447
5506
[ `little_endian_bytes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#little_endian_bytes
5448
5507
[ `logic_bug` ] : https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
5449
5508
[ `lossy_float_literal` ] : https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
5509
+ [ `macro_metavars_in_unsafe` ] : https://rust-lang.github.io/rust-clippy/master/index.html#macro_metavars_in_unsafe
5450
5510
[ `macro_use_imports` ] : https://rust-lang.github.io/rust-clippy/master/index.html#macro_use_imports
5451
5511
[ `main_recursion` ] : https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
5452
5512
[ `manual_assert` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
@@ -5472,6 +5532,7 @@ Released 2018-09-13
5472
5532
[ `manual_next_back` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
5473
5533
[ `manual_non_exhaustive` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
5474
5534
[ `manual_ok_or` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
5535
+ [ `manual_pattern_char_comparison` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
5475
5536
[ `manual_range_contains` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
5476
5537
[ `manual_range_patterns` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
5477
5538
[ `manual_rem_euclid` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
@@ -5565,6 +5626,7 @@ Released 2018-09-13
5565
5626
[ `needless_borrow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
5566
5627
[ `needless_borrowed_reference` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
5567
5628
[ `needless_borrows_for_generic_args` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
5629
+ [ `needless_character_iteration` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_character_iteration
5568
5630
[ `needless_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
5569
5631
[ `needless_continue` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
5570
5632
[ `needless_doctest_main` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
@@ -5574,6 +5636,7 @@ Released 2018-09-13
5574
5636
[ `needless_late_init` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
5575
5637
[ `needless_lifetimes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
5576
5638
[ `needless_match` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
5639
+ [ `needless_maybe_sized` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
5577
5640
[ `needless_option_as_deref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
5578
5641
[ `needless_option_take` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
5579
5642
[ `needless_parens_on_range_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
@@ -5702,6 +5765,7 @@ Released 2018-09-13
5702
5765
[ `ref_option_ref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
5703
5766
[ `ref_patterns` ] : https://rust-lang.github.io/rust-clippy/master/index.html#ref_patterns
5704
5767
[ `regex_macro` ] : https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
5768
+ [ `renamed_function_params` ] : https://rust-lang.github.io/rust-clippy/master/index.html#renamed_function_params
5705
5769
[ `repeat_once` ] : https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
5706
5770
[ `repeat_vec_with_capacity` ] : https://rust-lang.github.io/rust-clippy/master/index.html#repeat_vec_with_capacity
5707
5771
[ `replace_consts` ] : https://rust-lang.github.io/rust-clippy/master/index.html#replace_consts
@@ -5908,6 +5972,7 @@ Released 2018-09-13
5908
5972
[ `verbose_file_reads` ] : https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
5909
5973
[ `vtable_address_comparisons` ] : https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
5910
5974
[ `waker_clone_wake` ] : https://rust-lang.github.io/rust-clippy/master/index.html#waker_clone_wake
5975
+ [ `while_float` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_float
5911
5976
[ `while_immutable_condition` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
5912
5977
[ `while_let_loop` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
5913
5978
[ `while_let_on_iterator` ] : https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
@@ -5939,8 +6004,10 @@ Released 2018-09-13
5939
6004
[ `allow-expect-in-tests` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-expect-in-tests
5940
6005
[ `allow-mixed-uninlined-format-args` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-mixed-uninlined-format-args
5941
6006
[ `allow-one-hash-in-raw-strings` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-one-hash-in-raw-strings
6007
+ [ `allow-panic-in-tests` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-panic-in-tests
5942
6008
[ `allow-print-in-tests` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-print-in-tests
5943
6009
[ `allow-private-module-inception` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-private-module-inception
6010
+ [ `allow-renamed-params-for` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-renamed-params-for
5944
6011
[ `allow-unwrap-in-tests` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-unwrap-in-tests
5945
6012
[ `allow-useless-vec-in-tests` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-useless-vec-in-tests
5946
6013
[ `allowed-dotfiles` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-dotfiles
@@ -6002,4 +6069,5 @@ Released 2018-09-13
6002
6069
[ `vec-box-size-threshold` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#vec-box-size-threshold
6003
6070
[ `verbose-bit-mask-threshold` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#verbose-bit-mask-threshold
6004
6071
[ `warn-on-all-wildcard-imports` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#warn-on-all-wildcard-imports
6072
+ [ `warn-unsafe-macro-metavars-in-private-macros` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#warn-unsafe-macro-metavars-in-private-macros
6005
6073
<!-- end autogenerated links to configuration documentation -->
0 commit comments