@@ -6,11 +6,69 @@ document.
66
77## Unreleased / Beta / In Rust Nightly
88
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 )
1068
1169## Rust 1.78
1270
13- Current stable, released 2024-05-02
71+ Released 2024-05-02
1472
1573[ 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 )
1674
@@ -5474,6 +5532,7 @@ Released 2018-09-13
54745532[ `manual_next_back` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back
54755533[ `manual_non_exhaustive` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
54765534[ `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
54775536[ `manual_range_contains` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
54785537[ `manual_range_patterns` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_patterns
54795538[ `manual_rem_euclid` ] : https://rust-lang.github.io/rust-clippy/master/index.html#manual_rem_euclid
@@ -5567,6 +5626,7 @@ Released 2018-09-13
55675626[ `needless_borrow` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
55685627[ `needless_borrowed_reference` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
55695628[ `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
55705630[ `needless_collect` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
55715631[ `needless_continue` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue
55725632[ `needless_doctest_main` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
@@ -5576,6 +5636,7 @@ Released 2018-09-13
55765636[ `needless_late_init` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
55775637[ `needless_lifetimes` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
55785638[ `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
55795640[ `needless_option_as_deref` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
55805641[ `needless_option_take` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
55815642[ `needless_parens_on_range_literals` ] : https://rust-lang.github.io/rust-clippy/master/index.html#needless_parens_on_range_literals
0 commit comments