Skip to content

Commit 924a931

Browse files
authored
Unrolled build for rust-lang#138179
Rollup merge of rust-lang#138179 - cuviper:x, r=jieyouxu Add `src/tools/x` to the main workspace The original reason to exclude it was so it could run before submodules were initialized. However, those have all been converted to subtrees now, so the entire workspace is always ready to go. I've also alphabetized the workspace members, as it was an untidy mess. 🧹
2 parents 523c507 + 496788a commit 924a931

10 files changed

+40
-44
lines changed

Cargo.lock

+4
Original file line numberDiff line numberDiff line change
@@ -6438,6 +6438,10 @@ version = "0.5.5"
64386438
source = "registry+https://github.com/rust-lang/crates.io-index"
64396439
checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
64406440

6441+
[[package]]
6442+
name = "x"
6443+
version = "0.1.1"
6444+
64416445
[[package]]
64426446
name = "xattr"
64436447
version = "1.4.0"

Cargo.toml

+27-29
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,53 @@
11
[workspace]
22
resolver = "2"
33
members = [
4+
# tidy-alphabetical-start
45
"compiler/rustc",
56
"src/build_helper",
67
"src/etc/test-float-parse",
7-
"src/rustc-std-workspace/rustc-std-workspace-core",
88
"src/rustc-std-workspace/rustc-std-workspace-alloc",
9+
"src/rustc-std-workspace/rustc-std-workspace-core",
910
"src/rustc-std-workspace/rustc-std-workspace-std",
1011
"src/rustdoc-json-types",
12+
"src/tools/build-manifest",
13+
"src/tools/bump-stage0",
1114
"src/tools/cargotest",
1215
"src/tools/clippy",
1316
"src/tools/clippy/clippy_dev",
17+
"src/tools/collect-license-metadata",
1418
"src/tools/compiletest",
15-
"src/tools/run-make-support",
19+
"src/tools/coverage-dump",
20+
"src/tools/features-status-dump",
21+
"src/tools/generate-copyright",
22+
"src/tools/generate-windows-sys",
23+
"src/tools/html-checker",
24+
"src/tools/jsondocck",
25+
"src/tools/jsondoclint",
1626
"src/tools/linkchecker",
1727
"src/tools/lint-docs",
28+
"src/tools/lld-wrapper",
29+
"src/tools/llvm-bitcode-linker",
30+
"src/tools/miri",
31+
"src/tools/miri/cargo-miri",
1832
"src/tools/miropt-test-tools",
19-
"src/tools/unstable-book-gen",
20-
"src/tools/tidy",
21-
"src/tools/tier-check",
22-
"src/tools/build-manifest",
33+
"src/tools/opt-dist",
2334
"src/tools/remote-test-client",
2435
"src/tools/remote-test-server",
36+
"src/tools/replace-version-placeholder",
37+
"src/tools/run-make-support",
2538
"src/tools/rust-installer",
2639
"src/tools/rustdoc",
27-
"src/tools/rustfmt",
28-
"src/tools/miri",
29-
"src/tools/miri/cargo-miri",
40+
"src/tools/rustdoc-gui-test",
3041
"src/tools/rustdoc-themes",
31-
"src/tools/unicode-table-generator",
32-
"src/tools/jsondocck",
33-
"src/tools/jsondoclint",
34-
"src/tools/llvm-bitcode-linker",
35-
"src/tools/html-checker",
36-
"src/tools/bump-stage0",
37-
"src/tools/replace-version-placeholder",
38-
"src/tools/lld-wrapper",
39-
"src/tools/collect-license-metadata",
40-
"src/tools/generate-copyright",
42+
"src/tools/rustfmt",
4143
"src/tools/suggest-tests",
42-
"src/tools/generate-windows-sys",
43-
"src/tools/rustdoc-gui-test",
44-
"src/tools/opt-dist",
45-
"src/tools/coverage-dump",
44+
"src/tools/tidy",
45+
"src/tools/tier-check",
46+
"src/tools/unicode-table-generator",
47+
"src/tools/unstable-book-gen",
4648
"src/tools/wasm-component-ld",
47-
"src/tools/features-status-dump",
49+
"src/tools/x",
50+
# tidy-alphabetical-end
4851
]
4952

5053
exclude = [
@@ -55,11 +58,6 @@ exclude = [
5558
"tests/rustdoc-gui",
5659
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
5760
"obj",
58-
# The `x` binary is a thin wrapper that calls `x.py`, which initializes
59-
# submodules, before which workspace members cannot be invoked because
60-
# not all `Cargo.toml` files are available, so we exclude the `x` binary,
61-
# so it can be invoked before the current checkout is set up.
62-
"src/tools/x",
6361
]
6462

6563
[profile.release.package.rustc-rayon-core]

src/bootstrap/src/core/build_steps/setup.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,12 @@ Select which editor you would like to set up [default: None]: ";
582582
EditorKind::Emacs => &[
583583
"51068d4747a13732440d1a8b8f432603badb1864fa431d83d0fd4f8fa57039e0",
584584
"d29af4d949bbe2371eac928a3c31cf9496b1701aa1c45f11cd6c759865ad5c45",
585+
"b5dd299b93dca3ceeb9b335f929293cb3d4bf4977866fbe7ceeac2a8a9f99088",
585586
],
586587
EditorKind::Helix => &[
587588
"2d3069b8cf1b977e5d4023965eb6199597755e6c96c185ed5f2854f98b83d233",
588589
"6736d61409fbebba0933afd2e4c44ff2f97c1cb36cf0299a7f4a7819b8775040",
590+
"f252dcc30ca85a193a699581e5e929d5bd6c19d40d7a7ade5e257a9517a124a5",
589591
],
590592
EditorKind::Vim | EditorKind::VsCode => &[
591593
"ea67e259dedf60d4429b6c349a564ffcd1563cf41c920a856d1f5b16b4701ac8",
@@ -598,10 +600,12 @@ Select which editor you would like to set up [default: None]: ";
598600
"811fb3b063c739d261fd8590dd30242e117908f5a095d594fa04585daa18ec4d",
599601
"4eecb58a2168b252077369da446c30ed0e658301efe69691979d1ef0443928f4",
600602
"c394386e6133bbf29ffd32c8af0bb3d4aac354cba9ee051f29612aa9350f8f8d",
603+
"e53e9129ca5ee5dcbd6ec8b68c2d87376474eb154992deba3c6d9ab1703e0717",
604+
],
605+
EditorKind::Zed => &[
606+
"bbce727c269d1bd0c98afef4d612eb4ce27aea3c3a8968c5f10b31affbc40b6c",
607+
"a5380cf5dd9328731aecc5dfb240d16dac46ed272126b9728006151ef42f5909",
601608
],
602-
EditorKind::Zed => {
603-
&["bbce727c269d1bd0c98afef4d612eb4ce27aea3c3a8968c5f10b31affbc40b6c"]
604-
}
605609
}
606610
}
607611

src/etc/rust_analyzer_eglot.el

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"check"
99
"--json-output"])
1010
:linkedProjects ["Cargo.toml"
11-
"src/tools/x/Cargo.toml"
1211
"src/bootstrap/Cargo.toml"
1312
"src/tools/rust-analyzer/Cargo.toml"
1413
"compiler/rustc_codegen_cranelift/Cargo.toml"

src/etc/rust_analyzer_helix.toml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ linkedProjects = [
1515
"library/Cargo.toml",
1616
"src/bootstrap/Cargo.toml",
1717
"src/tools/rust-analyzer/Cargo.toml",
18-
"src/tools/x/Cargo.toml",
1918
]
2019

2120
[language-server.rust-analyzer.config.check]

src/etc/rust_analyzer_settings.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"rust-analyzer.linkedProjects": [
1111
"Cargo.toml",
1212
"library/Cargo.toml",
13-
"src/tools/x/Cargo.toml",
1413
"src/bootstrap/Cargo.toml",
1514
"src/tools/rust-analyzer/Cargo.toml",
1615
"compiler/rustc_codegen_cranelift/Cargo.toml",

src/etc/rust_analyzer_zed.json

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"linkedProjects": [
2323
"Cargo.toml",
2424
"library/Cargo.toml",
25-
"src/tools/x/Cargo.toml",
2625
"src/bootstrap/Cargo.toml",
2726
"src/tools/rust-analyzer/Cargo.toml",
2827
"compiler/rustc_codegen_cranelift/Cargo.toml",

src/tools/tidy/src/deps.rs

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ pub(crate) const WORKSPACES: &[(&str, ExceptionList, Option<(&[&str], &[&str])>,
8181
("src/tools/rust-analyzer", EXCEPTIONS_RUST_ANALYZER, None, &[]),
8282
("src/tools/rustbook", EXCEPTIONS_RUSTBOOK, None, &["src/doc/book", "src/doc/reference"]),
8383
("src/tools/rustc-perf", EXCEPTIONS_RUSTC_PERF, None, &["src/tools/rustc-perf"]),
84-
("src/tools/x", &[], None, &[]),
8584
// tidy-alphabetical-end
8685
];
8786

src/tools/tidy/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fn main() {
2929
FromStr::from_str(&env::args().nth(4).expect("need concurrency"))
3030
.expect("concurrency must be a number");
3131

32+
let root_manifest = root_path.join("Cargo.toml");
3233
let src_path = root_path.join("src");
3334
let tests_path = root_path.join("tests");
3435
let library_path = root_path.join("library");
@@ -137,6 +138,7 @@ fn main() {
137138
check!(edition, &compiler_path);
138139
check!(edition, &library_path);
139140

141+
check!(alphabetical, &root_manifest);
140142
check!(alphabetical, &src_path);
141143
check!(alphabetical, &tests_path);
142144
check!(alphabetical, &compiler_path);

src/tools/x/Cargo.lock

-7
This file was deleted.

0 commit comments

Comments
 (0)