Skip to content

Commit df0cb6c

Browse files
committed
Auto merge of rust-lang#13125 - xFrednet:changelog-1-80, r=dswij
Changelog for Clippy 1.80 🌞 Roses are red, Violets are blue, Summer is fun, So much sun --- ### The cat of this release is *Maunzer* submitted by `@llogiq:` <img height=500 src="https://github.com/rust-lang/rust-clippy/assets/4200835/a1da6948-446d-4ccf-95a7-c816a8afdc3f" alt="The cats of this Clippy release" /> Cats for the next release can be nominated in the comments :D --- changelog: none I wish everyone reading this a beautiful and happy day =^.^=
2 parents be82340 + 642ab11 commit df0cb6c

File tree

4 files changed

+47
-4
lines changed

4 files changed

+47
-4
lines changed

CHANGELOG.md

+44-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,53 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[ca3b3937...master](https://github.com/rust-lang/rust-clippy/compare/ca3b3937...master)
9+
[c9139bd5...master](https://github.com/rust-lang/rust-clippy/compare/c9139bd5...master)
10+
11+
## Rust 1.80
12+
13+
Current stable, released 2024-07-25
14+
15+
[View all 68 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2024-04-18T22%3A50%3A22Z..2024-05-30T08%3A26%3A18Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* Added [`while_float`] to `nursery`
20+
[#12765](https://github.com/rust-lang/rust-clippy/pull/12765)
21+
* Added [`macro_metavars_in_unsafe`] to `suspicious`
22+
[#12107](https://github.com/rust-lang/rust-clippy/pull/12107)
23+
* Added [`renamed_function_params`] to `restriction`
24+
[#11540](https://github.com/rust-lang/rust-clippy/pull/11540)
25+
* Added [`doc_lazy_continuation`] to `style`
26+
[#12770](https://github.com/rust-lang/rust-clippy/pull/12770)
27+
28+
### Moves and Deprecations
29+
30+
* Moved [`assigning_clones`] to `pedantic` (From `perf` now allow-by-default)
31+
[#12779](https://github.com/rust-lang/rust-clippy/pull/12779)
32+
* Moved [`single_char_pattern`] to `pedantic` (From `perf` now allow-by-default)
33+
[#11852](https://github.com/rust-lang/rust-clippy/pull/11852)
34+
35+
### Enhancements
36+
37+
* [`panic`]: Added [`allow-panic-in-tests`] configuration to allow the lint in tests
38+
[#12803](https://github.com/rust-lang/rust-clippy/pull/12803)
39+
* [`missing_const_for_fn`]: Now respects the [`msrv`] configuration
40+
[#12713](https://github.com/rust-lang/rust-clippy/pull/12713)
41+
* [`missing_panics_doc`]: No longer lints on compile-time panics
42+
[#12790](https://github.com/rust-lang/rust-clippy/pull/12790)
43+
* [`collapsible_match`]: Now considers the [`msrv`] configuration for the suggestion
44+
[#12745](https://github.com/rust-lang/rust-clippy/pull/12745)
45+
* [`useless_vec`]: Added [`allow-useless-vec-in-tests`] configuration to allow the lint in tests
46+
[#12725](https://github.com/rust-lang/rust-clippy/pull/12725)
47+
48+
### Suggestion Fixes/Improvements
49+
50+
* [`single_match`], [`single_match_else`]: Suggestions are now machine-applicable
51+
[#12726](https://github.com/rust-lang/rust-clippy/pull/12726)
1052

1153
## Rust 1.79
1254

13-
Current stable, released 2024-06-13
55+
Released 2024-06-13
1456

1557
[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)
1658

book/src/lint_configuration.md

+1
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
679679
* [`cast_abs_to_unsigned`](https://rust-lang.github.io/rust-clippy/master/index.html#cast_abs_to_unsigned)
680680
* [`checked_conversions`](https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions)
681681
* [`cloned_instead_of_copied`](https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied)
682+
* [`collapsible_match`](https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match)
682683
* [`collapsible_str_replace`](https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace)
683684
* [`deprecated_cfg_attr`](https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr)
684685
* [`derivable_impls`](https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls)

clippy_config/src/conf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ define_Conf! {
270270
///
271271
/// Suppress lints whenever the suggested change would cause breakage for other crates.
272272
(avoid_breaking_exported_api: bool = true),
273-
/// Lint: MANUAL_SPLIT_ONCE, MANUAL_STR_REPEAT, CLONED_INSTEAD_OF_COPIED, REDUNDANT_FIELD_NAMES, OPTION_MAP_UNWRAP_OR, REDUNDANT_STATIC_LIFETIMES, FILTER_MAP_NEXT, CHECKED_CONVERSIONS, MANUAL_RANGE_CONTAINS, USE_SELF, MEM_REPLACE_WITH_DEFAULT, MANUAL_NON_EXHAUSTIVE, OPTION_AS_REF_DEREF, MAP_UNWRAP_OR, MATCH_LIKE_MATCHES_MACRO, MANUAL_STRIP, MISSING_CONST_FOR_FN, UNNESTED_OR_PATTERNS, FROM_OVER_INTO, PTR_AS_PTR, IF_THEN_SOME_ELSE_NONE, APPROX_CONSTANT, DEPRECATED_CFG_ATTR, INDEX_REFUTABLE_SLICE, MAP_CLONE, BORROW_AS_PTR, MANUAL_BITS, ERR_EXPECT, CAST_ABS_TO_UNSIGNED, UNINLINED_FORMAT_ARGS, MANUAL_CLAMP, MANUAL_LET_ELSE, UNCHECKED_DURATION_SUBTRACTION, COLLAPSIBLE_STR_REPLACE, SEEK_FROM_CURRENT, SEEK_REWIND, UNNECESSARY_LAZY_EVALUATIONS, TRANSMUTE_PTR_TO_REF, ALMOST_COMPLETE_RANGE, NEEDLESS_BORROW, DERIVABLE_IMPLS, MANUAL_IS_ASCII_CHECK, MANUAL_REM_EUCLID, MANUAL_RETAIN, TYPE_REPETITION_IN_BOUNDS, TUPLE_ARRAY_CONVERSIONS, MANUAL_TRY_FOLD, MANUAL_HASH_ONE, ITER_KV_MAP, MANUAL_C_STR_LITERALS, ASSIGNING_CLONES, LEGACY_NUMERIC_CONSTANTS, MANUAL_PATTERN_CHAR_COMPARISON, ALLOW_ATTRIBUTES, ALLOW_ATTRIBUTES_WITHOUT_REASON.
273+
/// Lint: MANUAL_SPLIT_ONCE, MANUAL_STR_REPEAT, CLONED_INSTEAD_OF_COPIED, REDUNDANT_FIELD_NAMES, OPTION_MAP_UNWRAP_OR, REDUNDANT_STATIC_LIFETIMES, FILTER_MAP_NEXT, CHECKED_CONVERSIONS, MANUAL_RANGE_CONTAINS, USE_SELF, MEM_REPLACE_WITH_DEFAULT, MANUAL_NON_EXHAUSTIVE, OPTION_AS_REF_DEREF, MAP_UNWRAP_OR, MATCH_LIKE_MATCHES_MACRO, MANUAL_STRIP, MISSING_CONST_FOR_FN, UNNESTED_OR_PATTERNS, FROM_OVER_INTO, PTR_AS_PTR, IF_THEN_SOME_ELSE_NONE, APPROX_CONSTANT, DEPRECATED_CFG_ATTR, INDEX_REFUTABLE_SLICE, MAP_CLONE, BORROW_AS_PTR, MANUAL_BITS, ERR_EXPECT, CAST_ABS_TO_UNSIGNED, UNINLINED_FORMAT_ARGS, MANUAL_CLAMP, MANUAL_LET_ELSE, UNCHECKED_DURATION_SUBTRACTION, COLLAPSIBLE_STR_REPLACE, SEEK_FROM_CURRENT, SEEK_REWIND, UNNECESSARY_LAZY_EVALUATIONS, TRANSMUTE_PTR_TO_REF, ALMOST_COMPLETE_RANGE, NEEDLESS_BORROW, DERIVABLE_IMPLS, MANUAL_IS_ASCII_CHECK, MANUAL_REM_EUCLID, MANUAL_RETAIN, TYPE_REPETITION_IN_BOUNDS, TUPLE_ARRAY_CONVERSIONS, MANUAL_TRY_FOLD, MANUAL_HASH_ONE, ITER_KV_MAP, MANUAL_C_STR_LITERALS, ASSIGNING_CLONES, LEGACY_NUMERIC_CONSTANTS, MANUAL_PATTERN_CHAR_COMPARISON, ALLOW_ATTRIBUTES, ALLOW_ATTRIBUTES_WITHOUT_REASON, COLLAPSIBLE_MATCH.
274274
///
275275
/// The minimum rust version that the project supports. Defaults to the `rust-version` field in `Cargo.toml`
276276
#[default_text = ""]

clippy_lints/src/functions/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ declare_clippy_lint! {
393393
/// }
394394
/// }
395395
/// ```
396-
#[clippy::version = "1.74.0"]
396+
#[clippy::version = "1.80.0"]
397397
pub RENAMED_FUNCTION_PARAMS,
398398
restriction,
399399
"renamed function parameters in trait implementation"

0 commit comments

Comments
 (0)