Skip to content

Commit 336046c

Browse files
committed
Auto merge of #12889 - xFrednet:changelog-1-79, r=flip1995,dswij
Changelog for Clippy 1.79 🎓 Two cat ears from waffle, A tail and a dress, That's our Jyn, The magnificent cat ~ =^.^= --- ### The cat of this release is: *Jyn* submitted by `@jyn514:` <img height=600 src="https://github.com/rust-lang/rust-clippy/assets/17087237/2f902dea-9ad5-4ad2-b281-1f152b7ad7c7" alt="The cat(s) of this Clippy release" /> Cats for the next release can be nominated in the comments :D --- changelog: none
2 parents f990ea1 + a0e407c commit 336046c

8 files changed

+67
-9
lines changed

CHANGELOG.md

+60-2
Original file line numberDiff line numberDiff line change
@@ -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

clippy_lints/src/attrs/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ declare_clippy_lint! {
463463
/// #[allow(dead_code)]
464464
/// fn foo() {}
465465
/// ```
466-
#[clippy::version = "1.78.0"]
466+
#[clippy::version = "1.79.0"]
467467
pub DUPLICATED_ATTRIBUTES,
468468
suspicious,
469469
"duplicated attribute"

clippy_lints/src/integer_division_remainder_used.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// ```no_run
2323
/// let my_div = 10 >> 1;
2424
/// ```
25-
#[clippy::version = "1.78.0"]
25+
#[clippy::version = "1.79.0"]
2626
pub INTEGER_DIVISION_REMAINDER_USED,
2727
restriction,
2828
"use of disallowed default division and remainder operations"

clippy_lints/src/legacy_numeric_constants.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// ```rust
2929
/// let eps = f32::EPSILON;
3030
/// ```
31-
#[clippy::version = "1.72.0"]
31+
#[clippy::version = "1.79.0"]
3232
pub LEGACY_NUMERIC_CONSTANTS,
3333
style,
3434
"checks for usage of legacy std numeric constants and methods"

clippy_lints/src/manual_unwrap_or_default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// let x: Option<Vec<String>> = Some(Vec::new());
4444
/// let y: Vec<String> = x.unwrap_or_default();
4545
/// ```
46-
#[clippy::version = "1.78.0"]
46+
#[clippy::version = "1.79.0"]
4747
pub MANUAL_UNWRAP_OR_DEFAULT,
4848
suspicious,
4949
"check if a `match` or `if let` can be simplified with `unwrap_or_default`"

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4085,7 +4085,7 @@ declare_clippy_lint! {
40854085
/// ```no_run
40864086
/// println!("the string is empty");
40874087
/// ```
4088-
#[clippy::version = "1.78.0"]
4088+
#[clippy::version = "1.79.0"]
40894089
pub CONST_IS_EMPTY,
40904090
suspicious,
40914091
"is_empty() called on strings known at compile time"

clippy_lints/src/transmute/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ declare_clippy_lint! {
546546
/// let x = std::mem::transmute::<[u16; 2], i32>([1u16, 2u16]);
547547
/// # }
548548
/// ```
549-
#[clippy::version = "1.77.0"]
549+
#[clippy::version = "1.79.0"]
550550
pub MISSING_TRANSMUTE_ANNOTATIONS,
551551
suspicious,
552552
"warns if a transmute call doesn't have all generics specified"

clippy_lints/src/zero_repeat_side_effects.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
/// side_effect();
3737
/// let a: [i32; 0] = [];
3838
/// ```
39-
#[clippy::version = "1.75.0"]
39+
#[clippy::version = "1.79.0"]
4040
pub ZERO_REPEAT_SIDE_EFFECTS,
4141
suspicious,
4242
"usage of zero-sized initializations of arrays or vecs causing side effects"

0 commit comments

Comments
 (0)