diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-25 13:03:39 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-12 11:47:53 +0100 |
| commit | 5730173763b32ada60d7653ca987562ba0dc66f6 (patch) | |
| tree | c1b14bcc40cbfd86ad646eed8de396ee4820ee4e /src | |
| parent | bb45f5db78f00cbacf90d880eabf2def0a625048 (diff) | |
| download | rust-5730173763b32ada60d7653ca987562ba0dc66f6.tar.gz rust-5730173763b32ada60d7653ca987562ba0dc66f6.zip | |
Move setup_callbacks call to create_compiler_and_run
This ensures that it is called even when run_in_thread_pool_with_globals is avoided and reduces code duplication between the parallel and non-parallel version of run_in_thread_pool_with_globals
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 68028604fa4..c3205165040 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -688,7 +688,7 @@ fn main_args(at_args: &[String]) -> MainResult { Ok(opts) => opts, Err(code) => return if code == 0 { Ok(()) } else { Err(ErrorReported) }, }; - rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals( + rustc_interface::util::run_in_thread_pool_with_globals( options.edition, 1, // this runs single-threaded, even in a parallel compiler &None, |
