Skip to content

Commit 14d9aa9

Browse files
committedNov 16, 2023
Auto merge of #117979 - flip1995:clippyup, r=matthiaskrgr
Clippy subtree sync r? `@Manishearth`
2 parents 0ea7ddc + 2ac2b26 commit 14d9aa9

File tree

327 files changed

+10343
-10376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+10343
-10376
lines changed
 

‎Cargo.lock

+5-7
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
553553

554554
[[package]]
555555
name = "clippy"
556-
version = "0.1.75"
556+
version = "0.1.76"
557557
dependencies = [
558558
"anstream",
559559
"clippy_config",
@@ -581,7 +581,7 @@ dependencies = [
581581

582582
[[package]]
583583
name = "clippy_config"
584-
version = "0.1.75"
584+
version = "0.1.76"
585585
dependencies = [
586586
"rustc-semver",
587587
"serde",
@@ -604,14 +604,13 @@ dependencies = [
604604

605605
[[package]]
606606
name = "clippy_lints"
607-
version = "0.1.75"
607+
version = "0.1.76"
608608
dependencies = [
609609
"arrayvec",
610610
"cargo_metadata 0.15.4",
611611
"clippy_config",
612612
"clippy_utils",
613613
"declare_clippy_lint",
614-
"if_chain",
615614
"itertools",
616615
"quine-mc_cluskey",
617616
"regex",
@@ -630,11 +629,10 @@ dependencies = [
630629

631630
[[package]]
632631
name = "clippy_utils"
633-
version = "0.1.75"
632+
version = "0.1.76"
634633
dependencies = [
635634
"arrayvec",
636635
"clippy_config",
637-
"if_chain",
638636
"itertools",
639637
"rustc-semver",
640638
]
@@ -1016,7 +1014,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
10161014

10171015
[[package]]
10181016
name = "declare_clippy_lint"
1019-
version = "0.1.75"
1017+
version = "0.1.76"
10201018
dependencies = [
10211019
"itertools",
10221020
"quote",

‎src/tools/clippy/CHANGELOG.md

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

77
## Unreleased / Beta / In Rust Nightly
88

9-
[1e8fdf49...master](https://github.com/rust-lang/rust-clippy/compare/1e8fdf49...master)
9+
[7671c283...master](https://github.com/rust-lang/rust-clippy/compare/7671c283...master)
10+
11+
## Rust 1.74
12+
13+
Current stable, released 2023-11-16
14+
15+
[View all 94 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-08-11T15%3A29%3A18Z..2023-09-25T08%3A48%3A22Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* [`redundant_as_str`]
20+
[#11526](https://github.com/rust-lang/rust-clippy/pull/11526)
21+
* [`needless_borrows_for_generic_args`]
22+
[#11511](https://github.com/rust-lang/rust-clippy/pull/11511)
23+
* [`path_ends_with_ext`]
24+
[#11483](https://github.com/rust-lang/rust-clippy/pull/11483)
25+
* [`unnecessary_map_on_constructor`]
26+
[#11413](https://github.com/rust-lang/rust-clippy/pull/11413)
27+
* [`missing_asserts_for_indexing`]
28+
[#10692](https://github.com/rust-lang/rust-clippy/pull/10692)
29+
* [`iter_out_of_bounds`]
30+
[#11396](https://github.com/rust-lang/rust-clippy/pull/11396)
31+
* [`implied_bounds_in_impls`]
32+
[#11362](https://github.com/rust-lang/rust-clippy/pull/11362)
33+
* [`reserve_after_initialization`]
34+
[#11373](https://github.com/rust-lang/rust-clippy/pull/11373)
35+
* [`should_panic_without_expect`]
36+
[#11204](https://github.com/rust-lang/rust-clippy/pull/11204)
37+
38+
### Moves and Deprecations
39+
40+
* Renamed `incorrect_clone_impl_on_copy_type` to [`non_canonical_clone_impl`]
41+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
42+
* Renamed `incorrect_partial_ord_impl_on_ord_type` to [`non_canonical_partial_ord_impl`]
43+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
44+
* Moved [`non_canonical_clone_impl`] to `suspicious` (Now warn-by-default)
45+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
46+
* Moved [`non_canonical_partial_ord_impl`] to `suspicious` (Now warn-by-default)
47+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
48+
* Moved [`needless_pass_by_ref_mut`] to `nursery` (Now allow-by-default)
49+
[#11596](https://github.com/rust-lang/rust-clippy/pull/11596)
50+
51+
### Enhancements
52+
53+
* [`undocumented_unsafe_blocks`]: The config values [`accept-comment-above-statement`] and
54+
[`accept-comment-above-attributes`] to `true` by default
55+
[#11170](https://github.com/rust-lang/rust-clippy/pull/11170)
56+
* [`explicit_iter_loop`]: Added [`enforce-iter-loop-reborrow`] to disable reborrow linting by default
57+
[#11418](https://github.com/rust-lang/rust-clippy/pull/11418)
58+
59+
### ICE Fixes
60+
61+
* [`enum_variant_names`]: No longer crashes if the threshold is 0 and the enum has no variants
62+
[#11552](https://github.com/rust-lang/rust-clippy/pull/11552)
63+
* [`cast_possible_truncation`]: No longer crashes on values larger than `u64::MAX`
64+
[#11517](https://github.com/rust-lang/rust-clippy/pull/11517)
65+
* [`tuple_array_conversions`]: No longer crashes if the array length is not usize
66+
[#11379](https://github.com/rust-lang/rust-clippy/pull/11379)
67+
* [`useless_conversion`]: No longer crashes, when the receiver is a non-fn item
68+
[#11070](https://github.com/rust-lang/rust-clippy/pull/11070)
1069

1170
## Rust 1.73
1271

13-
Current stable, released 2023-10-05
72+
Released 2023-10-05
1473

1574
[View all 103 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-07-02T12%3A24%3A40Z..2023-08-11T11%3A09%3A56Z+base%3Amaster)
1675

@@ -5123,6 +5182,7 @@ Released 2018-09-13
51235182
[`iter_on_empty_collections`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_empty_collections
51245183
[`iter_on_single_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_on_single_items
51255184
[`iter_out_of_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_out_of_bounds
5185+
[`iter_over_hash_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_over_hash_type
51265186
[`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
51275187
[`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
51285188
[`iter_skip_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_zero

0 commit comments

Comments
 (0)