diff options
| author | Markus Reiter <me@reitermark.us> | 2024-02-08 23:03:25 +0100 |
|---|---|---|
| committer | Markus Reiter <me@reitermark.us> | 2024-02-15 08:09:42 +0100 |
| commit | a90cc05233858fcd16c3ca0e0b4320fc5ae09af2 (patch) | |
| tree | 003c31cd913ce7f1acb1bd12aeca0fcde1ccfee6 /compiler/rustc_interface/src/util.rs | |
| parent | 746a58d4359786e4aebb372a30829706fa5a968f (diff) | |
| download | rust-a90cc05233858fcd16c3ca0e0b4320fc5ae09af2.tar.gz rust-a90cc05233858fcd16c3ca0e0b4320fc5ae09af2.zip | |
Replace `NonZero::<_>::new` with `NonZero::new`.
Diffstat (limited to 'compiler/rustc_interface/src/util.rs')
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 00cf84138ba..087c43075f1 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -107,7 +107,7 @@ pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce() -> R + Send, R: Send>( use rustc_query_impl::QueryCtxt; use rustc_query_system::query::{deadlock, QueryContext}; - let registry = sync::Registry::new(std::num::NonZero::<usize>::new(threads).unwrap()); + let registry = sync::Registry::new(std::num::NonZero::new(threads).unwrap()); if !sync::is_dyn_thread_safe() { return run_in_thread_with_globals(edition, || { |
