Skip to content

Commit 546408b

Browse files
committed
Auto merge of #12735 - xFrednet:changelog-1-78, r=dswij
Changelog for Clippy 1.78 🪄 Roses and Violets have colors, Red and Blue are the two, I'm getting to the end of my masters, what a cool goal to pursue --- ### The cat of this release is: *Shadow* submitted by `@benwh1:` <img height=500 src="https://github.com/rust-lang/rust-clippy/assets/32911992/c56af314-4644-482a-a08e-f32f4c7d7b22" alt="The cats of this Clippy release" /> Cats for the next release can be nominated in the comments :D --- changelog: none
2 parents 852a64f + 5c23f13 commit 546408b

File tree

7 files changed

+60
-9
lines changed

7 files changed

+60
-9
lines changed

CHANGELOG.md

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

77
## Unreleased / Beta / In Rust Nightly
88

9-
[66c29b97...master](https://github.com/rust-lang/rust-clippy/compare/66c29b97...master)
9+
[93f0a9a9...master](https://github.com/rust-lang/rust-clippy/compare/93f0a9a9...master)
10+
11+
## Rust 1.78
12+
13+
Current stable, released 2024-05-02
14+
15+
[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+
17+
### New Lints
18+
19+
* [`assigning_clones`]
20+
[#12077](https://github.com/rust-lang/rust-clippy/pull/12077)
21+
* [`mixed_attributes_style`]
22+
[#12354](https://github.com/rust-lang/rust-clippy/pull/12354)
23+
* [`empty_docs`]
24+
[#12342](https://github.com/rust-lang/rust-clippy/pull/12342)
25+
* [`unnecessary_get_then_check`]
26+
[#12339](https://github.com/rust-lang/rust-clippy/pull/12339)
27+
* [`multiple_bound_locations`]
28+
[#12259](https://github.com/rust-lang/rust-clippy/pull/12259)
29+
* [`unnecessary_clippy_cfg`]
30+
[#12303](https://github.com/rust-lang/rust-clippy/pull/12303)
31+
* [`deprecated_clippy_cfg_attr`]
32+
[#12292](https://github.com/rust-lang/rust-clippy/pull/12292)
33+
* [`manual_c_str_literals`]
34+
[#11919](https://github.com/rust-lang/rust-clippy/pull/11919)
35+
* [`ref_as_ptr`]
36+
[#12087](https://github.com/rust-lang/rust-clippy/pull/12087)
37+
* [`lint_groups_priority`]
38+
[#11832](https://github.com/rust-lang/rust-clippy/pull/11832)
39+
* [`unnecessary_result_map_or_else`]
40+
[#12169](https://github.com/rust-lang/rust-clippy/pull/12169)
41+
* [`to_string_trait_impl`]
42+
[#12122](https://github.com/rust-lang/rust-clippy/pull/12122)
43+
* [`incompatible_msrv`]
44+
[#12160](https://github.com/rust-lang/rust-clippy/pull/12160)
45+
46+
### Enhancements
47+
48+
* [`thread_local_initializer_can_be_made_const`]: Now checks the [`msrv`] configuration
49+
[#12405](https://github.com/rust-lang/rust-clippy/pull/12405)
50+
* [`disallowed_macros`]: Code generated by derive macros can no longer allow this lint
51+
[#12267](https://github.com/rust-lang/rust-clippy/pull/12267)
52+
* [`wildcard_imports`]: Add configuration [`allowed-wildcard-imports`] to allow preconfigured wildcards
53+
[#11979](https://github.com/rust-lang/rust-clippy/pull/11979)
54+
55+
### ICE Fixes
56+
57+
* [`ptr_as_ptr`]: No longer ICEs when the cast source is a function call to a local variable
58+
[#12617](https://github.com/rust-lang/rust-clippy/pull/12617)
59+
* [`cast_sign_loss`]: Avoids an infinite loop when casting two chained `.unwrap()` calls
60+
[#12508](https://github.com/rust-lang/rust-clippy/pull/12508)
1061

1162
## Rust 1.77
1263

13-
Current stable, released 2024-03-18
64+
Released 2024-03-18
1465

1566
[View all 93 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-12-16T18%3A20%3A00Z..2024-01-25T18%3A15%3A56Z+base%3Amaster)
1667

clippy_lints/src/assigning_clones.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// a.clone_from(&b);
4646
/// }
4747
/// ```
48-
#[clippy::version = "1.77.0"]
48+
#[clippy::version = "1.78.0"]
4949
pub ASSIGNING_CLONES,
5050
perf,
5151
"assigning the result of cloning may be inefficient"

clippy_lints/src/cargo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ declare_clippy_lint! {
197197
/// pedantic = { level = "warn", priority = -1 }
198198
/// similar_names = "allow"
199199
/// ```
200-
#[clippy::version = "1.76.0"]
200+
#[clippy::version = "1.78.0"]
201201
pub LINT_GROUPS_PRIORITY,
202202
correctness,
203203
"a lint group in `Cargo.toml` at the same priority as a lint"

clippy_lints/src/casts/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ declare_clippy_lint! {
708708
/// let a_ref = &1;
709709
/// let a_ptr = std::ptr::from_ref(a_ref);
710710
/// ```
711-
#[clippy::version = "1.77.0"]
711+
#[clippy::version = "1.78.0"]
712712
pub REF_AS_PTR,
713713
pedantic,
714714
"using `as` to cast a reference to pointer"

clippy_lints/src/methods/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3993,7 +3993,7 @@ declare_clippy_lint! {
39933993
/// let x: Result<u32, ()> = Ok(0);
39943994
/// let y = x.unwrap_or_else(|err| handle_error(err));
39953995
/// ```
3996-
#[clippy::version = "1.77.0"]
3996+
#[clippy::version = "1.78.0"]
39973997
pub UNNECESSARY_RESULT_MAP_OR_ELSE,
39983998
suspicious,
39993999
"making no use of the \"map closure\" when calling `.map_or_else(|err| handle_error(err), |n| n)`"
@@ -4027,7 +4027,7 @@ declare_clippy_lint! {
40274027
/// needs_cstr(c"Hello");
40284028
/// unsafe { libc::puts(c"World".as_ptr()) }
40294029
/// ```
4030-
#[clippy::version = "1.76.0"]
4030+
#[clippy::version = "1.78.0"]
40314031
pub MANUAL_C_STR_LITERALS,
40324032
pedantic,
40334033
r#"creating a `CStr` through functions when `c""` literals can be used"#

clippy_lints/src/multiple_bound_locations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_clippy_lint! {
2929
/// F: Sized + std::fmt::Debug,
3030
/// {}
3131
/// ```
32-
#[clippy::version = "1.77.0"]
32+
#[clippy::version = "1.78.0"]
3333
pub MULTIPLE_BOUND_LOCATIONS,
3434
suspicious,
3535
"defining generic bounds in multiple locations"

clippy_lints/src/to_string_trait_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare_clippy_lint! {
3838
/// }
3939
/// }
4040
/// ```
41-
#[clippy::version = "1.77.0"]
41+
#[clippy::version = "1.78.0"]
4242
pub TO_STRING_TRAIT_IMPL,
4343
style,
4444
"check for direct implementations of `ToString`"

0 commit comments

Comments
 (0)