Skip to content

Commit d9e6aac

Browse files
committed
Auto merge of #11351 - xFrednet:changelog-1-72, r=Centri3
Update version attribute for 1.72 lints Roses are red, Violets are blue, Marker is alive, and so are you! --- ![cat gif](https://cataas.com/cat/SbbeZwoC81vSTzBX) cc: #10847 (comment) --- I've also checked the `beta-nominated` label, the changelog should include everything :) changelog: none
2 parents 1698ce0 + 8f06b19 commit d9e6aac

File tree

8 files changed

+105
-17
lines changed

8 files changed

+105
-17
lines changed

CHANGELOG.md

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,105 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[435a8ad8...master](https://github.com/rust-lang/rust-clippy/compare/435a8ad8...master)
9+
[37f4c172...master](https://github.com/rust-lang/rust-clippy/compare/37f4c172...master)
10+
11+
## Rust 1.72
12+
13+
Current beta, released 2023-08-24
14+
15+
[View all 131 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-05-22T14%3A53%3A59Z..2023-07-01T22%3A57%3A20Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* [`manual_try_fold`]
20+
[#11012](https://github.com/rust-lang/rust-clippy/pull/11012)
21+
* [`tuple_array_conversions`]
22+
[#11020](https://github.com/rust-lang/rust-clippy/pull/11020)
23+
* [`redundant_at_rest_pattern`]
24+
[#11013](https://github.com/rust-lang/rust-clippy/pull/11013)
25+
* [`needless_pub_self`]
26+
[#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
27+
* [`pub_with_shorthand`]
28+
[#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
29+
* [`pub_without_shorthand`]
30+
[#10967](https://github.com/rust-lang/rust-clippy/pull/10967)
31+
* [`manual_range_patterns`]
32+
[#10968](https://github.com/rust-lang/rust-clippy/pull/10968)
33+
* [`needless_raw_string_hashes`]
34+
[#10884](https://github.com/rust-lang/rust-clippy/pull/10884)
35+
* [`needless_raw_strings`]
36+
[#10884](https://github.com/rust-lang/rust-clippy/pull/10884)
37+
* [`incorrect_clone_impl_on_copy_type`]
38+
[#10925](https://github.com/rust-lang/rust-clippy/pull/10925)
39+
* [`drain_collect`]
40+
[#10835](https://github.com/rust-lang/rust-clippy/pull/10835)
41+
* [`single_range_in_vec_init`]
42+
[#10934](https://github.com/rust-lang/rust-clippy/pull/10934)
43+
* [`unnecessary_literal_unwrap`]
44+
[#10358](https://github.com/rust-lang/rust-clippy/pull/10358)
45+
* [`large_stack_frames`]
46+
[#10827](https://github.com/rust-lang/rust-clippy/pull/10827)
47+
* [`min_ident_chars`]
48+
[#10916](https://github.com/rust-lang/rust-clippy/pull/10916)
49+
* [`needless_if`]
50+
[#10921](https://github.com/rust-lang/rust-clippy/pull/10921)
51+
* [`excessive_nesting`]
52+
[#10672](https://github.com/rust-lang/rust-clippy/pull/10672)
53+
* [`arc_with_non_send_sync`]
54+
[#10898](https://github.com/rust-lang/rust-clippy/pull/10898)
55+
* [`redundant_type_annotations`]
56+
[#10570](https://github.com/rust-lang/rust-clippy/pull/10570)
57+
* [`host_endian_bytes`]
58+
[#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
59+
* [`little_endian_bytes`]
60+
[#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
61+
* [`big_endian_bytes`]
62+
[#10826](https://github.com/rust-lang/rust-clippy/pull/10826)
63+
* [`ptr_cast_constness`]
64+
[#10779](https://github.com/rust-lang/rust-clippy/pull/10779)
65+
* [`needless_else`]
66+
[#10810](https://github.com/rust-lang/rust-clippy/pull/10810)
67+
68+
### Moves and Deprecations
69+
70+
* Moved [`redundant_clone`] to `nursery` (Now allow-by-default)
71+
[#10873](https://github.com/rust-lang/rust-clippy/pull/10873)
72+
73+
### Enhancements
74+
75+
* [`undocumented_unsafe_blocks`]: Added [`accept-comment-above-attributes`] configuration
76+
[#10986](https://github.com/rust-lang/rust-clippy/pull/10986)
77+
* [`undocumented_unsafe_blocks`]: Added [`accept-comment-above-statement`] configuration.
78+
[#10886](https://github.com/rust-lang/rust-clippy/pull/10886)
79+
* [`missing_panics_doc`]: No longer lints on `todo!()`
80+
[#10976](https://github.com/rust-lang/rust-clippy/pull/10976)
81+
* [`module_inception`]: Added `allow-private-module-inception` configuration.
82+
[#10917](https://github.com/rust-lang/rust-clippy/pull/10917)
83+
* Errors and warnings generated while parsing `clippy.toml` now point to the location in the TOML
84+
file the error/warning occurred in.
85+
[#10607](https://github.com/rust-lang/rust-clippy/pull/10607)
86+
87+
### False Positive Fixes
88+
89+
* [`excessive_precision`]: No longer lints overflowing literals
90+
[#10952](https://github.com/rust-lang/rust-clippy/pull/10952)
91+
92+
### Suggestion Fixes/Improvements
93+
94+
* [`option_map_unwrap_or`]: The suggestion now considers the set [`msrv`] config value
95+
[#11030](https://github.com/rust-lang/rust-clippy/pull/11030)
96+
97+
### Documentation Improvements
98+
99+
* [Clippy's lint list] now stores filter parameters in the URL, to allow easy sharing
100+
[#10834](https://github.com/rust-lang/rust-clippy/pull/10834)
10101

11102
## Rust 1.71
12103

13104
Current stable, released 2023-07-13
14105

15-
<!-- FIXME: Remove the request for feedback, with the next changelog -->
16-
17-
We're trying out a new shorter changelog format, that only contains significant changes.
18-
You can check out the list of merged pull requests for a list of all changes.
19-
If you have any feedback related to the new format, please share it in
20-
[#10847](https://github.com/rust-lang/rust-clippy/issues/10847)
106+
Note: Clippy will use a shorter changelog format from now on, if you want a detailed list of
107+
all changes, please check out the list of merged pull requests.
21108

22109
[View all 78 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-04-11T20%3A05%3A26Z..2023-05-20T13%3A48%3A17Z+base%3Amaster)
23110

@@ -4677,6 +4764,7 @@ Released 2018-09-13
46774764
[pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
46784765
[adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/adding_lints.md
46794766
[`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
4767+
[Clippy's lint list]: https://rust-lang.github.io/rust-clippy/master/index.html
46804768

46814769
<!-- lint disable no-unused-definitions -->
46824770
<!-- begin autogenerated links to lint list -->

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ declare_clippy_lint! {
418418
/// let mut_ptr = ptr.cast_mut();
419419
/// let ptr = mut_ptr.cast_const();
420420
/// ```
421-
#[clippy::version = "1.71.0"]
421+
#[clippy::version = "1.72.0"]
422422
pub PTR_CAST_CONSTNESS,
423423
pedantic,
424424
"casting using `as` from and to raw pointers to change constness when specialized methods apply"

clippy_lints/src/endian_bytes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare_clippy_lint! {
2121
/// let _x = 2i32.to_ne_bytes();
2222
/// let _y = 2i64.to_ne_bytes();
2323
/// ```
24-
#[clippy::version = "1.71.0"]
24+
#[clippy::version = "1.72.0"]
2525
pub HOST_ENDIAN_BYTES,
2626
restriction,
2727
"disallows usage of the `to_ne_bytes` method"
@@ -40,7 +40,7 @@ declare_clippy_lint! {
4040
/// let _x = 2i32.to_le_bytes();
4141
/// let _y = 2i64.to_le_bytes();
4242
/// ```
43-
#[clippy::version = "1.71.0"]
43+
#[clippy::version = "1.72.0"]
4444
pub LITTLE_ENDIAN_BYTES,
4545
restriction,
4646
"disallows usage of the `to_le_bytes` method"
@@ -59,7 +59,7 @@ declare_clippy_lint! {
5959
/// let _x = 2i32.to_be_bytes();
6060
/// let _y = 2i64.to_be_bytes();
6161
/// ```
62-
#[clippy::version = "1.71.0"]
62+
#[clippy::version = "1.72.0"]
6363
pub BIG_ENDIAN_BYTES,
6464
restriction,
6565
"disallows usage of the `to_be_bytes` method"

clippy_lints/src/excessive_nesting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656
/// // lib.rs
5757
/// pub mod a;
5858
/// ```
59-
#[clippy::version = "1.70.0"]
59+
#[clippy::version = "1.72.0"]
6060
pub EXCESSIVE_NESTING,
6161
complexity,
6262
"checks for blocks nested beyond a certain threshold"

clippy_lints/src/large_stack_frames.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ declare_clippy_lint! {
7272
/// // ...
7373
/// }
7474
/// ```
75-
#[clippy::version = "1.71.0"]
75+
#[clippy::version = "1.72.0"]
7676
pub LARGE_STACK_FRAMES,
7777
nursery,
7878
"checks for functions that allocate a lot of stack space"

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ declare_clippy_lint! {
301301
/// let val2 = 1;
302302
/// let val3 = 1;
303303
/// ```
304-
#[clippy::version = "1.69.0"]
304+
#[clippy::version = "1.72.0"]
305305
pub UNNECESSARY_LITERAL_UNWRAP,
306306
complexity,
307307
"using `unwrap()` related calls on `Result` and `Option` constructors"
@@ -3328,7 +3328,7 @@ declare_clippy_lint! {
33283328
/// mem::take(v)
33293329
/// }
33303330
/// ```
3331-
#[clippy::version = "1.71.0"]
3331+
#[clippy::version = "1.72.0"]
33323332
pub DRAIN_COLLECT,
33333333
perf,
33343334
"calling `.drain(..).collect()` to move all elements into a new collection"

clippy_lints/src/needless_else.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare_clippy_lint! {
2727
/// println!("Check successful!");
2828
/// }
2929
/// ```
30-
#[clippy::version = "1.71.0"]
30+
#[clippy::version = "1.72.0"]
3131
pub NEEDLESS_ELSE,
3232
style,
3333
"empty else branch"

clippy_lints/src/redundant_type_annotations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare_clippy_lint! {
3131
/// ```rust
3232
/// let foo = String::new();
3333
/// ```
34-
#[clippy::version = "1.70.0"]
34+
#[clippy::version = "1.72.0"]
3535
pub REDUNDANT_TYPE_ANNOTATIONS,
3636
restriction,
3737
"warns about needless / redundant type annotations."

0 commit comments

Comments
 (0)