Skip to content

Commit 3a6dd8c

Browse files
committed
Auto merge of #46564 - Zoxc:rayon-queries, r=<try>
WIP: Parallelize passes using rayon This builds on #46193 and #45912 and actually makes code run in parallel. This is not quite ready yet since `rustc` is not yet completely thread safe. It also uses a rough fork of rayon which uses fibers/stackful coroutines.
2 parents 02537fb + 3505f8a commit 3a6dd8c

File tree

206 files changed

+4370
-2660
lines changed

Some content is hidden

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

206 files changed

+4370
-2660
lines changed

src/Cargo.lock

+151-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bootstrap/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ impl<'a> Builder<'a> {
254254
tool::RustInstaller, tool::Cargo, tool::Rls, tool::Rustdoc, tool::Clippy,
255255
native::Llvm, tool::Rustfmt, tool::Miri),
256256
Kind::Check => describe!(check::Std, check::Test, check::Rustc),
257-
Kind::Test => describe!(test::Tidy, test::Bootstrap, test::DefaultCompiletest,
257+
Kind::Test => describe!(test::Tidy, test::Bootstrap/*, test::DefaultCompiletest,
258258
test::HostCompiletest, test::Crate, test::CrateLibrustc, test::Rustdoc,
259259
test::Linkcheck, test::Cargotest, test::Cargo, test::Rls, test::Docs,
260260
test::ErrorIndex, test::Distcheck, test::Rustfmt, test::Miri, test::Clippy,
261-
test::RustdocJS, test::RustdocTheme),
261+
test::RustdocJS, test::RustdocTheme*/),
262262
Kind::Bench => describe!(test::Crate, test::CrateLibrustc),
263263
Kind::Doc => describe!(doc::UnstableBook, doc::UnstableBookGen, doc::TheBook,
264264
doc::Standalone, doc::Std, doc::Test, doc::Rustc, doc::ErrorIndex, doc::Nomicon,

src/bootstrap/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl Config {
470470
set(&mut config.quiet_tests, rust.quiet_tests);
471471
set(&mut config.test_miri, rust.test_miri);
472472
set(&mut config.wasm_syscall, rust.wasm_syscall);
473-
config.rustc_parallel_queries = rust.experimental_parallel_queries.unwrap_or(false);
473+
config.rustc_parallel_queries = rust.experimental_parallel_queries.unwrap_or(true);
474474
config.rustc_default_linker = rust.default_linker.clone();
475475
config.musl_root = rust.musl_root.clone().map(PathBuf::from);
476476
config.save_toolstates = rust.save_toolstates.clone().map(PathBuf::from);

src/libarena/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ version = "0.0.0"
77
name = "arena"
88
path = "lib.rs"
99
crate-type = ["dylib"]
10+
11+
[dependencies]
12+
rustc_data_structures = { path = "../librustc_data_structures" }

0 commit comments

Comments
 (0)