diff options
| author | bors <bors@rust-lang.org> | 2023-07-15 22:23:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-15 22:23:05 +0000 |
| commit | 4124617c6ebe6b5b4df2c8c8400e87389c377dcc (patch) | |
| tree | 0dd8fe49e1324e4962832062315bafb48ecb0482 /src | |
| parent | 4c8bb79d9f565115637cc6da739f8389e79f3a29 (diff) | |
| parent | d52eb4f99aebfb1077063c9e65c365e550eb1fb2 (diff) | |
| download | rust-4124617c6ebe6b5b4df2c8c8400e87389c377dcc.tar.gz rust-4124617c6ebe6b5b4df2c8c8400e87389c377dcc.zip | |
Auto merge of #113606 - jyn514:parallel-compiler-cleanup, r=cjgillot
Don't require each rustc_interface tool to opt-in to parallel_compiler 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. r? `@SparrowLii` cc https://github.com/rust-lang/rust/issues/75760
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/lib.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index f28deae791a..36d087a7d5b 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -744,9 +744,6 @@ fn main_args(handler: &mut EarlyErrorHandler, at_args: &[String]) -> MainResult } }; - // Set parallel mode before error handler creation, which will create `Lock`s. - interface::set_thread_safe_mode(&options.unstable_opts); - let diag = core::new_handler( options.error_format, None, |
