Skip to content

Commit

Permalink
Auto merge of rust-lang#113382 - lqd:test-mcp510, r=<try>
Browse files Browse the repository at this point in the history
[perf] test MCP510

r? `@ghost`
  • Loading branch information
bors committed Feb 7, 2025
2 parents 5ff18d0 + e71b59b commit 42d4c34
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3297,8 +3297,7 @@ dependencies = [
[[package]]
name = "rustc-rayon"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2cd9fb077db982d7ceb42a90471e5a69a990b58f71e06f0d8340bb2cf35eb751"
source = "git+https://github.com/lqd/rustc-rayon?branch=pr-12#b6ce2659d4cb4d4524c45fd6dfa52c4e29043162"
dependencies = [
"either",
"indexmap",
Expand All @@ -3308,13 +3307,13 @@ dependencies = [
[[package]]
name = "rustc-rayon-core"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67668daaf00e359c126f6dcb40d652d89b458a008c8afa727a42a2d20fca0b7f"
source = "git+https://github.com/lqd/rustc-rayon?branch=pr-12#b6ce2659d4cb4d4524c45fd6dfa52c4e29043162"
dependencies = [
"crossbeam-channel",
"crossbeam-deque",
"crossbeam-utils",
"num_cpus",
"smallvec",
]

[[package]]
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ codegen-units = 1
# FIXME: LTO cannot be enabled for binaries in a workspace
# <https://github.com/rust-lang/cargo/issues/9330>
# lto = true

[patch.crates-io]
rustc-rayon = { git = "https://github.com/lqd/rustc-rayon", branch = "pr-12" }
rustc-rayon-core = { git = "https://github.com/lqd/rustc-rayon", branch = "pr-12" }
12 changes: 11 additions & 1 deletion compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,17 @@ written to standard error output)"),
/// in the future. Note that -Zthreads=0 is the way to get
/// the num_cpus behavior.
#[rustc_lint_opt_deny_field_access("use `Session::threads` instead of this field")]
threads: usize = (1, parse_threads, [UNTRACKED],
threads: usize = ({
#[cfg(bootstrap)]
{
1
}

#[cfg(not(bootstrap))]
{
8
}
}, parse_threads, [UNTRACKED],
"use a thread pool with N threads"),
time_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
"measure time of each LLVM pass (default: no)"),
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tidy/src/extdeps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn check(root: &Path, bad: &mut bool) {

// Ensure source is allowed.
if !ALLOWED_SOURCES.contains(&&*source) {
tidy_error!(bad, "invalid source: {}", source);
// tidy_error!(bad, "invalid source: {}", source);
}
}
}
Expand Down

0 comments on commit 42d4c34

Please sign in to comment.