Skip to content

Commit 68ad253

Browse files
committed
Auto merge of #147405 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update r? Manishearth `Cargo.lock` update due to `toml` version bump. This caused `serde_core` being added as a transitive dependency, so `tidy --bless` had to be run. (Sorry for the late sync)
2 parents 3d8c1c1 + e652436 commit 68ad253

File tree

299 files changed

+7030
-4055
lines changed

Some content is hidden

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

299 files changed

+7030
-4055
lines changed

Cargo.lock

Lines changed: 79 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ dependencies = [
216216
"memchr",
217217
"serde",
218218
"serde_derive",
219-
"winnow 0.7.12",
219+
"winnow 0.7.13",
220220
]
221221

222222
[[package]]
@@ -590,7 +590,7 @@ dependencies = [
590590
"serde_json",
591591
"tempfile",
592592
"termize",
593-
"toml 0.7.8",
593+
"toml 0.9.7",
594594
"ui_test",
595595
"walkdir",
596596
]
@@ -632,7 +632,7 @@ dependencies = [
632632
"regex-syntax 0.8.5",
633633
"semver",
634634
"serde",
635-
"toml 0.7.8",
635+
"toml 0.9.7",
636636
"unicode-normalization",
637637
"unicode-script",
638638
"url",
@@ -1866,13 +1866,14 @@ checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5"
18661866

18671867
[[package]]
18681868
name = "indexmap"
1869-
version = "2.10.0"
1869+
version = "2.11.4"
18701870
source = "registry+https://github.com/rust-lang/crates.io-index"
1871-
checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
1871+
checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
18721872
dependencies = [
18731873
"equivalent",
18741874
"hashbrown",
18751875
"serde",
1876+
"serde_core",
18761877
]
18771878

18781879
[[package]]
@@ -5003,10 +5004,11 @@ dependencies = [
50035004

50045005
[[package]]
50055006
name = "serde"
5006-
version = "1.0.219"
5007+
version = "1.0.228"
50075008
source = "registry+https://github.com/rust-lang/crates.io-index"
5008-
checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
5009+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
50095010
dependencies = [
5011+
"serde_core",
50105012
"serde_derive",
50115013
]
50125014

@@ -5031,11 +5033,20 @@ dependencies = [
50315033
"serde",
50325034
]
50335035

5036+
[[package]]
5037+
name = "serde_core"
5038+
version = "1.0.228"
5039+
source = "registry+https://github.com/rust-lang/crates.io-index"
5040+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
5041+
dependencies = [
5042+
"serde_derive",
5043+
]
5044+
50345045
[[package]]
50355046
name = "serde_derive"
5036-
version = "1.0.219"
5047+
version = "1.0.228"
50375048
source = "registry+https://github.com/rust-lang/crates.io-index"
5038-
checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
5049+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
50395050
dependencies = [
50405051
"proc-macro2",
50415052
"quote",
@@ -5084,6 +5095,15 @@ dependencies = [
50845095
"serde",
50855096
]
50865097

5098+
[[package]]
5099+
name = "serde_spanned"
5100+
version = "1.0.2"
5101+
source = "registry+https://github.com/rust-lang/crates.io-index"
5102+
checksum = "5417783452c2be558477e104686f7de5dae53dba813c28435e0e70f82d9b04ee"
5103+
dependencies = [
5104+
"serde_core",
5105+
]
5106+
50875107
[[package]]
50885108
name = "sha1"
50895109
version = "0.10.6"
@@ -5545,8 +5565,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
55455565
checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257"
55465566
dependencies = [
55475567
"serde",
5548-
"serde_spanned",
5549-
"toml_datetime",
5568+
"serde_spanned 0.6.9",
5569+
"toml_datetime 0.6.11",
55505570
"toml_edit 0.19.15",
55515571
]
55525572

@@ -5558,11 +5578,26 @@ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
55585578
dependencies = [
55595579
"indexmap",
55605580
"serde",
5561-
"serde_spanned",
5562-
"toml_datetime",
5581+
"serde_spanned 0.6.9",
5582+
"toml_datetime 0.6.11",
55635583
"toml_edit 0.22.27",
55645584
]
55655585

5586+
[[package]]
5587+
name = "toml"
5588+
version = "0.9.7"
5589+
source = "registry+https://github.com/rust-lang/crates.io-index"
5590+
checksum = "00e5e5d9bf2475ac9d4f0d9edab68cc573dc2fd644b0dba36b0c30a92dd9eaa0"
5591+
dependencies = [
5592+
"indexmap",
5593+
"serde_core",
5594+
"serde_spanned 1.0.2",
5595+
"toml_datetime 0.7.2",
5596+
"toml_parser",
5597+
"toml_writer",
5598+
"winnow 0.7.13",
5599+
]
5600+
55665601
[[package]]
55675602
name = "toml_datetime"
55685603
version = "0.6.11"
@@ -5572,6 +5607,15 @@ dependencies = [
55725607
"serde",
55735608
]
55745609

5610+
[[package]]
5611+
name = "toml_datetime"
5612+
version = "0.7.2"
5613+
source = "registry+https://github.com/rust-lang/crates.io-index"
5614+
checksum = "32f1085dec27c2b6632b04c80b3bb1b4300d6495d1e129693bdda7d91e72eec1"
5615+
dependencies = [
5616+
"serde_core",
5617+
]
5618+
55755619
[[package]]
55765620
name = "toml_edit"
55775621
version = "0.19.15"
@@ -5580,8 +5624,8 @@ checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
55805624
dependencies = [
55815625
"indexmap",
55825626
"serde",
5583-
"serde_spanned",
5584-
"toml_datetime",
5627+
"serde_spanned 0.6.9",
5628+
"toml_datetime 0.6.11",
55855629
"winnow 0.5.40",
55865630
]
55875631

@@ -5593,10 +5637,19 @@ checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
55935637
dependencies = [
55945638
"indexmap",
55955639
"serde",
5596-
"serde_spanned",
5597-
"toml_datetime",
5640+
"serde_spanned 0.6.9",
5641+
"toml_datetime 0.6.11",
55985642
"toml_write",
5599-
"winnow 0.7.12",
5643+
"winnow 0.7.13",
5644+
]
5645+
5646+
[[package]]
5647+
name = "toml_parser"
5648+
version = "1.0.3"
5649+
source = "registry+https://github.com/rust-lang/crates.io-index"
5650+
checksum = "4cf893c33be71572e0e9aa6dd15e6677937abd686b066eac3f8cd3531688a627"
5651+
dependencies = [
5652+
"winnow 0.7.13",
56005653
]
56015654

56025655
[[package]]
@@ -5605,6 +5658,12 @@ version = "0.1.2"
56055658
source = "registry+https://github.com/rust-lang/crates.io-index"
56065659
checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
56075660

5661+
[[package]]
5662+
name = "toml_writer"
5663+
version = "1.0.3"
5664+
source = "registry+https://github.com/rust-lang/crates.io-index"
5665+
checksum = "d163a63c116ce562a22cda521fcc4d79152e7aba014456fb5eb442f6d6a10109"
5666+
56085667
[[package]]
56095668
name = "tracing"
56105669
version = "0.1.41"
@@ -6569,9 +6628,9 @@ dependencies = [
65696628

65706629
[[package]]
65716630
name = "winnow"
6572-
version = "0.7.12"
6631+
version = "0.7.13"
65736632
source = "registry+https://github.com/rust-lang/crates.io-index"
6574-
checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
6633+
checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
65756634
dependencies = [
65766635
"memchr",
65776636
]

src/bootstrap/src/utils/proc_macro_deps.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub static CRATES: &[&str] = &[
4343
"rustc-hash",
4444
"self_cell",
4545
"serde",
46+
"serde_core",
4647
"serde_derive_internals",
4748
"sha2",
4849
"smallvec",

src/tools/clippy/.github/workflows/clippy_mq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
182182
# Download
183183
- name: Download target dir
184-
uses: actions/download-artifact@v4
184+
uses: actions/download-artifact@v5
185185
with:
186186
name: binaries
187187
path: target/debug

src/tools/clippy/.github/workflows/lintcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
fail-on-cache-miss: true
127127

128128
- name: Download JSON
129-
uses: actions/download-artifact@v4
129+
uses: actions/download-artifact@v5
130130

131131
- name: Store PR number
132132
run: echo ${{ github.event.pull_request.number }} > pr.txt

src/tools/clippy/.github/workflows/lintcheck_summary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2828
steps:
2929
- name: Download artifact
30-
uses: actions/download-artifact@v4
30+
uses: actions/download-artifact@v5
3131
with:
3232
name: summary
3333
path: untrusted
3434
run-id: ${{ github.event.workflow_run.id }}
3535
github-token: ${{ github.token }}
3636

3737
- name: Format comment
38-
uses: actions/github-script@v7
38+
uses: actions/github-script@v8
3939
with:
4040
script: |
4141
const fs = require("fs");

src/tools/clippy/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Current stable, released 2025-09-18
1717
Note: This Clippy release does not introduce many new lints and is focused entirely on bug fixes — see
1818
[#15086](https://github.com/rust-lang/rust-clippy/issues/15086) for more details.
1919

20-
## New Lints
20+
### New Lints
2121

2222
* Added [`manual_is_multiple_of`] to `complexity` [#14292](https://github.com/rust-lang/rust-clippy/pull/14292)
2323
* Added [`doc_broken_link`] to `pedantic` [#13696](https://github.com/rust-lang/rust-clippy/pull/13696)
@@ -6598,6 +6598,7 @@ Released 2018-09-13
65986598
[`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
65996599
[`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
66006600
[`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
6601+
[`self_only_used_in_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_only_used_in_recursion
66016602
[`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
66026603
[`semicolon_inside_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_inside_block
66036604
[`semicolon_outside_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_outside_block
@@ -6703,6 +6704,7 @@ Released 2018-09-13
67036704
[`type_repetition_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
67046705
[`unbuffered_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#unbuffered_bytes
67056706
[`unchecked_duration_subtraction`]: https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction
6707+
[`unchecked_time_subtraction`]: https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_time_subtraction
67066708
[`unconditional_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion
67076709
[`undocumented_unsafe_blocks`]: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
67086710
[`undropped_manually_drops`]: https://rust-lang.github.io/rust-clippy/master/index.html#undropped_manually_drops

src/tools/clippy/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,18 @@ ui_test = "0.30.2"
3838
regex = "1.5.5"
3939
serde = { version = "1.0.145", features = ["derive"] }
4040
serde_json = "1.0.122"
41-
toml = "0.7.3"
4241
walkdir = "2.3"
4342
filetime = "0.2.9"
4443
itertools = "0.12"
4544
pulldown-cmark = { version = "0.11", default-features = false, features = ["html"] }
4645
askama = { version = "0.14", default-features = false, features = ["alloc", "config", "derive"] }
4746

47+
[dev-dependencies.toml]
48+
version = "0.9.7"
49+
default-features = false
50+
# preserve_order keeps diagnostic output in file order
51+
features = ["parse", "preserve_order"]
52+
4853
[build-dependencies]
4954
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
5055

src/tools/clippy/book/src/development/trait_checking.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ use rustc_span::symbol::sym;
2424

2525
impl LateLintPass<'_> for CheckIteratorTraitLint {
2626
fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
27-
let implements_iterator = cx.tcx.get_diagnostic_item(sym::Iterator).map_or(false, |id| {
28-
implements_trait(cx, cx.typeck_results().expr_ty(expr), id, &[])
29-
});
30-
if implements_iterator {
31-
// [...]
32-
}
27+
let implements_iterator = (cx.tcx.get_diagnostic_item(sym::Iterator))
28+
.is_some_and(|id| implements_trait(cx, cx.typeck_results().expr_ty(expr), id, &[]));
29+
if implements_iterator {
30+
// [...]
31+
}
3332

3433
}
3534
}

src/tools/clippy/book/src/lint_configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
845845
* [`from_over_into`](https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into)
846846
* [`if_then_some_else_none`](https://rust-lang.github.io/rust-clippy/master/index.html#if_then_some_else_none)
847847
* [`index_refutable_slice`](https://rust-lang.github.io/rust-clippy/master/index.html#index_refutable_slice)
848+
* [`inefficient_to_string`](https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string)
848849
* [`io_other_error`](https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error)
849850
* [`iter_kv_map`](https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map)
850851
* [`legacy_numeric_constants`](https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants)
@@ -883,6 +884,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
883884
* [`needless_borrow`](https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow)
884885
* [`non_std_lazy_statics`](https://rust-lang.github.io/rust-clippy/master/index.html#non_std_lazy_statics)
885886
* [`option_as_ref_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref)
887+
* [`or_fun_call`](https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call)
886888
* [`ptr_as_ptr`](https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr)
887889
* [`question_mark`](https://rust-lang.github.io/rust-clippy/master/index.html#question_mark)
888890
* [`redundant_field_names`](https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names)
@@ -894,9 +896,10 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
894896
* [`transmute_ptr_to_ref`](https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ref)
895897
* [`tuple_array_conversions`](https://rust-lang.github.io/rust-clippy/master/index.html#tuple_array_conversions)
896898
* [`type_repetition_in_bounds`](https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds)
897-
* [`unchecked_duration_subtraction`](https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction)
899+
* [`unchecked_time_subtraction`](https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_time_subtraction)
898900
* [`uninlined_format_args`](https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args)
899901
* [`unnecessary_lazy_evaluations`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations)
902+
* [`unnecessary_unwrap`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap)
900903
* [`unnested_or_patterns`](https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns)
901904
* [`unused_trait_names`](https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names)
902905
* [`use_self`](https://rust-lang.github.io/rust-clippy/master/index.html#use_self)

src/tools/clippy/clippy_config/src/conf.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ define_Conf! {
741741
from_over_into,
742742
if_then_some_else_none,
743743
index_refutable_slice,
744+
inefficient_to_string,
744745
io_other_error,
745746
iter_kv_map,
746747
legacy_numeric_constants,
@@ -779,6 +780,7 @@ define_Conf! {
779780
needless_borrow,
780781
non_std_lazy_statics,
781782
option_as_ref_deref,
783+
or_fun_call,
782784
ptr_as_ptr,
783785
question_mark,
784786
redundant_field_names,
@@ -790,9 +792,10 @@ define_Conf! {
790792
transmute_ptr_to_ref,
791793
tuple_array_conversions,
792794
type_repetition_in_bounds,
793-
unchecked_duration_subtraction,
795+
unchecked_time_subtraction,
794796
uninlined_format_args,
795797
unnecessary_lazy_evaluations,
798+
unnecessary_unwrap,
796799
unnested_or_patterns,
797800
unused_trait_names,
798801
use_self,

0 commit comments

Comments
 (0)