We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fada07b commit 3fefcedCopy full SHA for 3fefced
tests/sort-panic-safe.rs
@@ -11,12 +11,9 @@ use std::cmp::{self, Ordering};
11
use std::panic;
12
use std::sync::atomic::AtomicUsize;
13
use std::sync::atomic::Ordering::Relaxed;
14
-#[allow(deprecated)]
15
-use std::sync::atomic::ATOMIC_USIZE_INIT;
16
use std::thread;
17
18
19
-static VERSIONS: AtomicUsize = ATOMIC_USIZE_INIT;
+static VERSIONS: AtomicUsize = AtomicUsize::new(0);
20
21
lazy_static! {
22
static ref DROP_COUNTS: Vec<AtomicUsize> = (0..20_000).map(|_| AtomicUsize::new(0)).collect();
0 commit comments