1
Fork 0

correct literals for dyn thread safe

This commit is contained in:
SparrowLii 2023-04-07 21:20:26 +08:00
parent 9f8ab2a8d3
commit 089a38880b
11 changed files with 48 additions and 41 deletions

View file

@ -730,8 +730,8 @@ fn main_args(at_args: &[String]) -> MainResult {
}
};
// Set parallel mode early as the error handler will already create locks.
interface::set_parallel_mode(&options.unstable_opts);
// 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,