-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't require each rustc_interface tool to opt-in to parallel_compiler #113606
Conversation
…upport Previously, forgetting to call `interface::set_thread_safe_mode` would cause the following ICE: ``` thread 'rustc' panicked at 'uninitialized dyn_thread_safe mode!', /rustc/dfe0683138de0959b6ab6a039b54d9347f6a6355/compiler/rustc_data_structures/src/sync.rs:74:18 ``` This calls `set_thread_safe_mode` in `interface::run_compiler` to avoid requiring it in the caller. Fixes `tests/run-make-fulldeps/issue-19371` when parallel-compiler is enabled.
Failed to set assignee to
|
I expect this also fixes clippy/miri/rustfmt to support parallel_compiler, or at least makes it more likely they'll work. |
Thanks! It looks good to me. In the previous discussion in #107586, we think This PR transfers r? @cjgillot |
@bors r+ |
⌛ Testing commit d52eb4f with merge 38aa0038ae0bb9d227a990a0e211069a6176d084... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
☀️ Test successful - checks-actions |
Finished benchmarking commit (4124617): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 659.302s -> 656.574s (-0.41%) |
this is also noise - see a very similar percentage going the other way on #113514 (comment) |
Previously, forgetting to call
interface::set_thread_safe_mode
would cause the following ICE:This calls
set_thread_safe_mode
ininterface::run_compiler
to avoid requiring it in the caller.Fixes
tests/run-make-fulldeps/issue-19371
when parallel-compiler is enabled.r? @SparrowLii cc #75760