Skip to content

Commit 32d81ec

Browse files
committed
Auto merge of rust-lang#113260 - flip1995:clippyup, r=Manishearth
Update Clippy r? `@Manishearth` cc `@oli-obk` (for the ui-test changes in de69d55 and the valtree fix in 0cbe963) Fixes rust-lang#102093 This must've been the most involved Clippy sync ever.
2 parents 131a036 + a6d3c82 commit 32d81ec

File tree

915 files changed

+21836
-5904
lines changed

Some content is hidden

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

915 files changed

+21836
-5904
lines changed

Cargo.lock

+38-59
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
343343

344344
[[package]]
345345
name = "bytes"
346-
version = "1.0.1"
346+
version = "1.4.0"
347347
source = "registry+https://github.com/rust-lang/crates.io-index"
348-
checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
348+
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"
349349

350350
[[package]]
351351
name = "camino"
@@ -536,27 +536,16 @@ checksum = "8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1"
536536
name = "clippy"
537537
version = "0.1.72"
538538
dependencies = [
539-
"clap",
540539
"clippy_lints",
541-
"clippy_utils",
542-
"compiletest_rs",
543-
"derive-new",
544540
"filetime",
545-
"futures",
546-
"if_chain",
547541
"itertools",
548-
"parking_lot 0.12.1",
549-
"quote",
550542
"regex",
551-
"rustc-semver",
552543
"rustc_tools_util",
553-
"serde",
554-
"syn 2.0.8",
555544
"tempfile",
556545
"termize",
557546
"tester",
558-
"tokio",
559547
"toml 0.7.4",
548+
"ui_test",
560549
"walkdir",
561550
]
562551

@@ -585,6 +574,7 @@ dependencies = [
585574
"itertools",
586575
"pulldown-cmark",
587576
"quine-mc_cluskey",
577+
"regex",
588578
"regex-syntax 0.7.1",
589579
"rustc-semver",
590580
"semver",
@@ -597,6 +587,24 @@ dependencies = [
597587
"url",
598588
]
599589

590+
[[package]]
591+
name = "clippy_test_deps"
592+
version = "0.1.0"
593+
dependencies = [
594+
"clippy_lints",
595+
"clippy_utils",
596+
"derive-new",
597+
"futures",
598+
"if_chain",
599+
"itertools",
600+
"parking_lot 0.12.1",
601+
"quote",
602+
"regex",
603+
"serde",
604+
"syn 2.0.8",
605+
"tokio",
606+
]
607+
600608
[[package]]
601609
name = "clippy_utils"
602610
version = "0.1.72"
@@ -677,7 +685,7 @@ dependencies = [
677685
"glob",
678686
"lazycell",
679687
"libc",
680-
"miow 0.5.0",
688+
"miow",
681689
"miropt-test-tools",
682690
"once_cell",
683691
"regex",
@@ -691,29 +699,6 @@ dependencies = [
691699
"windows",
692700
]
693701

694-
[[package]]
695-
name = "compiletest_rs"
696-
version = "0.10.0"
697-
source = "registry+https://github.com/rust-lang/crates.io-index"
698-
checksum = "e2731272cf25196735df1b52ab5bcba22cf9f99455626c4c8dc092bd5f7f66d0"
699-
dependencies = [
700-
"diff",
701-
"filetime",
702-
"getopts",
703-
"lazy_static",
704-
"libc",
705-
"log",
706-
"miow 0.3.7",
707-
"regex",
708-
"rustfix",
709-
"serde",
710-
"serde_derive",
711-
"serde_json",
712-
"tempfile",
713-
"tester",
714-
"winapi",
715-
]
716-
717702
[[package]]
718703
name = "concolor-override"
719704
version = "1.0.0"
@@ -881,9 +866,9 @@ dependencies = [
881866

882867
[[package]]
883868
name = "derive-new"
884-
version = "0.5.8"
869+
version = "0.5.9"
885870
source = "registry+https://github.com/rust-lang/crates.io-index"
886-
checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
871+
checksum = "3418329ca0ad70234b9735dc4ceed10af4df60eff9c8e7b06cb5e520d92c3535"
887872
dependencies = [
888873
"proc-macro2",
889874
"quote",
@@ -2156,15 +2141,6 @@ dependencies = [
21562141
"rustc-std-workspace-core",
21572142
]
21582143

2159-
[[package]]
2160-
name = "miow"
2161-
version = "0.3.7"
2162-
source = "registry+https://github.com/rust-lang/crates.io-index"
2163-
checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
2164-
dependencies = [
2165-
"winapi",
2166-
]
2167-
21682144
[[package]]
21692145
name = "miow"
21702146
version = "0.5.0"
@@ -2386,7 +2362,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
23862362
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
23872363
dependencies = [
23882364
"lock_api",
2389-
"parking_lot_core 0.9.4",
2365+
"parking_lot_core 0.9.8",
23902366
]
23912367

23922368
[[package]]
@@ -2405,15 +2381,15 @@ dependencies = [
24052381

24062382
[[package]]
24072383
name = "parking_lot_core"
2408-
version = "0.9.4"
2384+
version = "0.9.8"
24092385
source = "registry+https://github.com/rust-lang/crates.io-index"
2410-
checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0"
2386+
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
24112387
dependencies = [
24122388
"cfg-if",
24132389
"libc",
2414-
"redox_syscall 0.2.10",
2390+
"redox_syscall 0.3.5",
24152391
"smallvec",
2416-
"windows-sys 0.42.0",
2392+
"windows-targets 0.48.0",
24172393
]
24182394

24192395
[[package]]
@@ -4467,9 +4443,12 @@ checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7"
44674443

44684444
[[package]]
44694445
name = "slab"
4470-
version = "0.4.2"
4446+
version = "0.4.8"
44714447
source = "registry+https://github.com/rust-lang/crates.io-index"
4472-
checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
4448+
checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d"
4449+
dependencies = [
4450+
"autocfg",
4451+
]
44734452

44744453
[[package]]
44754454
name = "smallvec"
@@ -4901,14 +4880,14 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
49014880

49024881
[[package]]
49034882
name = "tokio"
4904-
version = "1.28.2"
4883+
version = "1.29.1"
49054884
source = "registry+https://github.com/rust-lang/crates.io-index"
4906-
checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2"
4885+
checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da"
49074886
dependencies = [
49084887
"autocfg",
4888+
"backtrace",
49094889
"bytes",
49104890
"pin-project-lite",
4911-
"windows-sys 0.48.0",
49124891
]
49134892

49144893
[[package]]

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ members = [
99
"src/tools/cargotest",
1010
"src/tools/clippy",
1111
"src/tools/clippy/clippy_dev",
12+
"src/tools/clippy/clippy_test_deps",
1213
"src/tools/compiletest",
1314
"src/tools/error_index_generator",
1415
"src/tools/linkchecker",

src/bootstrap/test.rs

+5-17
Original file line numberDiff line numberDiff line change
@@ -790,27 +790,15 @@ impl Step for Clippy {
790790
cargo.add_rustc_lib_path(builder, compiler);
791791
let mut cargo = prepare_cargo_test(cargo, &[], &[], "clippy", compiler, host, builder);
792792

793+
// propagate --bless
794+
if builder.config.cmd.bless() {
795+
cargo.env("BLESS", "Gesundheit");
796+
}
797+
793798
if builder.try_run(&mut cargo).is_ok() {
794799
// The tests succeeded; nothing to do.
795800
return;
796801
}
797-
798-
if !builder.config.cmd.bless() {
799-
crate::detail_exit_macro!(1);
800-
}
801-
802-
let mut cargo = builder.cargo(compiler, Mode::ToolRustc, SourceType::InTree, host, "run");
803-
cargo.arg("-p").arg("clippy_dev");
804-
// clippy_dev gets confused if it can't find `clippy/Cargo.toml`
805-
cargo.current_dir(&builder.src.join("src").join("tools").join("clippy"));
806-
if builder.config.rust_optimize.is_release() {
807-
cargo.env("PROFILE", "release");
808-
} else {
809-
cargo.env("PROFILE", "debug");
810-
}
811-
cargo.arg("--");
812-
cargo.arg("bless");
813-
builder.run(&mut cargo.into());
814802
}
815803
}
816804

src/tools/clippy/.cargo/config.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[alias]
22
uitest = "test --test compile-test"
3+
uibless = "test --test compile-test -- -- --bless"
4+
bless = "test -- -- --bless"
35
dev = "run --package clippy_dev --bin clippy_dev --manifest-path clippy_dev/Cargo.toml --"
46
lintcheck = "run --package lintcheck --bin lintcheck --manifest-path lintcheck/Cargo.toml -- "
57
collect-metadata = "test --test dogfood --features internal -- run_metadata_collection_lint --ignored"

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

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ env:
2525
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
2626
NO_FMT_TEST: 1
2727
CARGO_INCREMENTAL: 0
28-
CARGO_UNSTABLE_SPARSE_REGISTRY: true
2928

3029
jobs:
3130
base:

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

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
1212
NO_FMT_TEST: 1
1313
CARGO_INCREMENTAL: 0
14-
CARGO_UNSTABLE_SPARSE_REGISTRY: true
1514

1615
defaults:
1716
run:

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

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
env:
1717
RUST_BACKTRACE: 1
1818
CARGO_INCREMENTAL: 0
19-
CARGO_UNSTABLE_SPARSE_REGISTRY: true
2019

2120
jobs:
2221
clippy_dev:

0 commit comments

Comments
 (0)