Skip to content

Commit f41d68f

Browse files
committed
Auto merge of #6961 - xFrednet:changelog-1-52, r=flip1995
Update changelog for 1.52 I've underestimated the work that goes into this a bit, but it just shows that a lot has happened again in Clippy in 1.52 🙃. [Rendered](https://github.com/xFrednet/rust-clippy/blob/changelog-1-52/CHANGELOG.md) --- changelog: none
2 parents 0e87918 + 3a4c0a7 commit f41d68f

File tree

1 file changed

+139
-3
lines changed

1 file changed

+139
-3
lines changed

CHANGELOG.md

Lines changed: 139 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,146 @@ document.
66

77
## Unreleased / In Rust Nightly
88

9-
[3e41797...master](https://github.com/rust-lang/rust-clippy/compare/3e41797...master)
9+
[6ed6f1e...master](https://github.com/rust-lang/rust-clippy/compare/6ed6f1e...master)
10+
11+
## Rust 1.52
12+
13+
Current beta, release 2021-05-06
14+
15+
[3e41797...6ed6f1e](https://github.com/rust-lang/rust-clippy/compare/3e41797...6ed6f1e)
16+
17+
### New Lints
18+
19+
* [`from_str_radix_10`]
20+
[#6717](https://github.com/rust-lang/rust-clippy/pull/6717)
21+
* [`implicit_clone`]
22+
[#6730](https://github.com/rust-lang/rust-clippy/pull/6730)
23+
* [`semicolon_if_nothing_returned`]
24+
[#6681](https://github.com/rust-lang/rust-clippy/pull/6681)
25+
* [`manual_flatten`]
26+
[#6646](https://github.com/rust-lang/rust-clippy/pull/6646)
27+
* [`inconsistent_struct_constructor`]
28+
[#6769](https://github.com/rust-lang/rust-clippy/pull/6769)
29+
* [`iter_count`]
30+
[#6791](https://github.com/rust-lang/rust-clippy/pull/6791)
31+
* [`default_numeric_fallback`]
32+
[#6662](https://github.com/rust-lang/rust-clippy/pull/6662)
33+
* [`bytes_nth`]
34+
[#6695](https://github.com/rust-lang/rust-clippy/pull/6695)
35+
* [`filter_map_identity`]
36+
[#6685](https://github.com/rust-lang/rust-clippy/pull/6685)
37+
* [`manual_map`]
38+
[#6573](https://github.com/rust-lang/rust-clippy/pull/6573)
39+
40+
### Moves and Deprecations
41+
42+
* Moved [`upper_case_acronyms`] to `pedantic`
43+
[#6775](https://github.com/rust-lang/rust-clippy/pull/6775)
44+
* Moved [`manual_map`] to `nursery`
45+
[#6796](https://github.com/rust-lang/rust-clippy/pull/6796)
46+
* Moved [`unnecessary_wraps`] to `pedantic`
47+
[#6765](https://github.com/rust-lang/rust-clippy/pull/6765)
48+
* Moved [`trivial_regex`] to `nursery`
49+
[#6696](https://github.com/rust-lang/rust-clippy/pull/6696)
50+
* Moved [`naive_bytecount`] to `pedantic`
51+
[#6825](https://github.com/rust-lang/rust-clippy/pull/6825)
52+
* Moved [`upper_case_acronyms`] to `style`
53+
[#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
54+
* Moved [`manual_map`] to `style`
55+
[#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
56+
57+
### Enhancements
58+
59+
* [`disallowed_method`]: Now supports functions in addition to methods
60+
[#6674](https://github.com/rust-lang/rust-clippy/pull/6674)
61+
* [`upper_case_acronyms`]: Added a new configuration `upper-case-acronyms-aggressive` to
62+
trigger the lint if there is more than one uppercase character next to each other
63+
[#6788](https://github.com/rust-lang/rust-clippy/pull/6788)
64+
* [`collapsible_match`]: Now supports block comparison with different value names
65+
[#6754](https://github.com/rust-lang/rust-clippy/pull/6754)
66+
* [`unnecessary_wraps`]: Will now suggest removing unnecessary wrapped return unit type, like `Option<()>`
67+
[#6665](https://github.com/rust-lang/rust-clippy/pull/6665)
68+
* Improved value usage detection in closures
69+
[#6698](https://github.com/rust-lang/rust-clippy/pull/6698)
70+
71+
### False Positive Fixes
72+
73+
* [`use_self`]: No longer lints in macros
74+
[#6833](https://github.com/rust-lang/rust-clippy/pull/6833)
75+
* [`use_self`]: Fixed multiple false positives for: generics, associated types and derive implementations
76+
[#6179](https://github.com/rust-lang/rust-clippy/pull/6179)
77+
* [`missing_inline_in_public_items`]: No longer lints for procedural macros
78+
[#6814](https://github.com/rust-lang/rust-clippy/pull/6814)
79+
* [`inherent_to_string`]: No longer lints on functions with function generics
80+
[#6771](https://github.com/rust-lang/rust-clippy/pull/6771)
81+
* [`doc_markdown`]: Add `OpenDNS` to the default configuration as an allowed identifier
82+
[#6783](https://github.com/rust-lang/rust-clippy/pull/6783)
83+
* [`missing_panics_doc`]: No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
84+
[#6700](https://github.com/rust-lang/rust-clippy/pull/6700)
85+
* [`collapsible_if`]: No longer lints on if statements with attributes
86+
[#6701](https://github.com/rust-lang/rust-clippy/pull/6701)
87+
* [`match_same_arms`]: Only considers empty blocks as equal if the tokens contained are the same
88+
[#6843](https://github.com/rust-lang/rust-clippy/pull/6843)
89+
* [`redundant_closure`]: Now ignores macros
90+
[#6871](https://github.com/rust-lang/rust-clippy/pull/6871)
91+
* [`manual_map`]: Fixed false positives when control flow statements like `return`, `break` etc. are used
92+
[#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
93+
* [`vec_init_then_push`]: Fixed false positives for loops and if statements
94+
[#6697](https://github.com/rust-lang/rust-clippy/pull/6697)
95+
* [`len_without_is_empty`]: Will now consider multiple impl blocks and `#[allow]` on
96+
the `len` method as well as the type definition.
97+
[#6853](https://github.com/rust-lang/rust-clippy/pull/6853)
98+
* [`let_underscore_drop`]: Only lints on types which implement `Drop`
99+
[#6682](https://github.com/rust-lang/rust-clippy/pull/6682)
100+
* [`unit_arg`]: No longer lints on unit arguments when they come from a path expression.
101+
[#6601](https://github.com/rust-lang/rust-clippy/pull/6601)
102+
* [`cargo_common_metadata`]: No longer lints if
103+
[`publish = false`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field)
104+
is defined in the manifest
105+
[#6650](https://github.com/rust-lang/rust-clippy/pull/6650)
106+
107+
### Suggestion Fixes/Improvements
108+
109+
* [`collapsible_match`]: Fixed lint message capitalization
110+
[#6766](https://github.com/rust-lang/rust-clippy/pull/6766)
111+
* [`or_fun_call`]: Improved suggestions for `or_insert(vec![])`
112+
[#6790](https://github.com/rust-lang/rust-clippy/pull/6790)
113+
* [`manual_map`]: No longer expands macros in the suggestions
114+
[#6801](https://github.com/rust-lang/rust-clippy/pull/6801)
115+
* Aligned Clippy's lint messages with the rustc dev guide
116+
[#6787](https://github.com/rust-lang/rust-clippy/pull/6787)
117+
118+
### ICE Fixes
119+
120+
* [`zero_sized_map_values`]
121+
[#6866](https://github.com/rust-lang/rust-clippy/pull/6866)
122+
123+
### Documentation Improvements
124+
125+
* [`useless_format`]: Improved the documentation example
126+
[#6854](https://github.com/rust-lang/rust-clippy/pull/6854)
127+
* Clippy's [`README.md`]: Includes a new subsection on running Clippy as a rustc wrapper
128+
[#6782](https://github.com/rust-lang/rust-clippy/pull/6782)
129+
130+
### Others
131+
* Running `cargo clippy` after `cargo check` now works as expected
132+
(`cargo clippy` and `cargo check` no longer shares the same build cache)
133+
[#6687](https://github.com/rust-lang/rust-clippy/pull/6687)
134+
* Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.
135+
[#6834](https://github.com/rust-lang/rust-clippy/pull/6834)
136+
* Extracted Clippy's `utils` module into the new `clippy_utils` crate
137+
[#6756](https://github.com/rust-lang/rust-clippy/pull/6756)
138+
* Clippy lintcheck tool improvements
139+
[#6800](https://github.com/rust-lang/rust-clippy/pull/6800)
140+
[#6735](https://github.com/rust-lang/rust-clippy/pull/6735)
141+
[#6764](https://github.com/rust-lang/rust-clippy/pull/6764)
142+
[#6708](https://github.com/rust-lang/rust-clippy/pull/6708)
143+
[#6780](https://github.com/rust-lang/rust-clippy/pull/6780)
144+
[#6686](https://github.com/rust-lang/rust-clippy/pull/6686)
10145

11146
## Rust 1.51
12147

13-
Current beta, release 2021-03-25
148+
Current stable, released 2021-03-25
14149

15150
[4911ab1...3e41797](https://github.com/rust-lang/rust-clippy/compare/4911ab1...3e41797)
16151

@@ -125,7 +260,7 @@ Current beta, release 2021-03-25
125260

126261
## Rust 1.50
127262

128-
Current stable, released 2021-02-11
263+
Released 2021-02-11
129264

130265
[b20d4c1...4bd77a1](https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4bd77a1)
131266

@@ -1970,6 +2105,7 @@ Released 2018-09-13
19702105
[configuration file]: ./rust-clippy#configuration
19712106
[pull3665]: https://github.com/rust-lang/rust-clippy/pull/3665
19722107
[adding_lints]: https://github.com/rust-lang/rust-clippy/blob/master/doc/adding_lints.md
2108+
[`README.md`]: https://github.com/rust-lang/rust-clippy/blob/master/README.md
19732109

19742110
<!-- lint disable no-unused-definitions -->
19752111
<!-- begin autogenerated links to lint list -->

0 commit comments

Comments
 (0)