diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
commit | 5363f350887b1e5b5dd21a86f88c8af9d7fea6da (patch) | |
tree | 35ca005eb6e0e9a1ba3bb5dbc033209ad445dc17 /vendor/rayon-core/src/test.rs | |
parent | Adding debian version 1.66.0+dfsg1-1. (diff) | |
download | rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.tar.xz rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rayon-core/src/test.rs')
-rw-r--r-- | vendor/rayon-core/src/test.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vendor/rayon-core/src/test.rs b/vendor/rayon-core/src/test.rs index 600e58b11..46d63a7df 100644 --- a/vendor/rayon-core/src/test.rs +++ b/vendor/rayon-core/src/test.rs @@ -1,7 +1,5 @@ #![cfg(test)] -#[allow(deprecated)] -use crate::Configuration; use crate::{ThreadPoolBuildError, ThreadPoolBuilder}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::{Arc, Barrier}; @@ -121,7 +119,6 @@ fn handler_panics_handled_correctly() { } #[test] -#[allow(deprecated)] fn check_config_build() { let pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap(); assert_eq!(pool.current_num_threads(), 22); @@ -144,7 +141,7 @@ fn configuration() { let thread_name = move |i| format!("thread_name_{}", i); // Ensure we can call all public methods on Configuration - Configuration::new() + crate::Configuration::new() .thread_name(thread_name) .num_threads(5) .panic_handler(panic_handler) |