Skip to content

Commit c95c767

Browse files
committed
Auto merge of rust-lang#13323 - xFrednet:chnagelog-1-81, r=flip1995
Changelog for Clippy 1.81 🔰 Roses are red, Violets are blue, Expectations are stable, And reasons are set --- ### The cat of this release is *Keepy* submitted by `@blyxyas:` <img height=500 src="https://github.com/rust-lang/rust-clippy/assets/73757586/902dd802-5ac8-471e-bb93-e195526ba580" alt="The cats of this Clippy release" /> Cats for the next release can be nominated in the comments :D --- changelog: none
2 parents aec61c4 + cbc6910 commit c95c767

8 files changed

+63
-9
lines changed

CHANGELOG.md

+55-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,61 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

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)
1064

1165
## Rust 1.80
1266

clippy_lints/src/byte_char_slices.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// ```ignore
2323
/// b"Hello"
2424
/// ```
25-
#[clippy::version = "1.68.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub BYTE_CHAR_SLICES,
2727
style,
2828
"hard to read byte char slice"

clippy_lints/src/cfg_not_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// # fn important_check() {}
2323
/// important_check();
2424
/// ```
25-
#[clippy::version = "1.73.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub CFG_NOT_TEST,
2727
restriction,
2828
"enforce against excluding code from test builds"

clippy_lints/src/field_scoped_visibility_modifiers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare_clippy_lint! {
4141
/// }
4242
/// }
4343
/// ```
44-
#[clippy::version = "1.78.0"]
44+
#[clippy::version = "1.81.0"]
4545
pub FIELD_SCOPED_VISIBILITY_MODIFIERS,
4646
restriction,
4747
"checks for usage of a scoped visibility modifier, like `pub(crate)`, on fields"

clippy_lints/src/methods/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3975,7 +3975,7 @@ declare_clippy_lint! {
39753975
/// ```no_run
39763976
/// let _ = 0;
39773977
/// ```
3978-
#[clippy::version = "1.78.0"]
3978+
#[clippy::version = "1.81.0"]
39793979
pub UNNECESSARY_MIN_OR_MAX,
39803980
complexity,
39813981
"using 'min()/max()' when there is no need for it"
@@ -4110,7 +4110,7 @@ declare_clippy_lint! {
41104110
/// ```no_run
41114111
/// "foo".is_ascii();
41124112
/// ```
4113-
#[clippy::version = "1.80.0"]
4113+
#[clippy::version = "1.81.0"]
41144114
pub NEEDLESS_CHARACTER_ITERATION,
41154115
suspicious,
41164116
"is_ascii() called on a char iterator"

clippy_lints/src/needless_maybe_sized.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
///
2727
/// // or choose alternative bounds for `T` so that it can be unsized
2828
/// ```
29-
#[clippy::version = "1.79.0"]
29+
#[clippy::version = "1.81.0"]
3030
pub NEEDLESS_MAYBE_SIZED,
3131
suspicious,
3232
"a `?Sized` bound that is unusable due to a `Sized` requirement"

clippy_lints/src/set_contains_or_insert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_clippy_lint! {
4242
/// println!("inserted {value:?}");
4343
/// }
4444
/// ```
45-
#[clippy::version = "1.80.0"]
45+
#[clippy::version = "1.81.0"]
4646
pub SET_CONTAINS_OR_INSERT,
4747
nursery,
4848
"call to `<set>::contains` followed by `<set>::insert`"

clippy_lints/src/string_patterns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_clippy_lint! {
3333
/// ```no_run
3434
/// "Hello World!".trim_end_matches(['.', ',', '!', '?']);
3535
/// ```
36-
#[clippy::version = "1.80.0"]
36+
#[clippy::version = "1.81.0"]
3737
pub MANUAL_PATTERN_CHAR_COMPARISON,
3838
style,
3939
"manual char comparison in string patterns"

0 commit comments

Comments
 (0)