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 84c305e commit 6820ba2Copy full SHA for 6820ba2
src/backtrace/internal.rs
@@ -2,6 +2,7 @@ use std::cell::UnsafeCell;
2
use std::env;
3
use std::ffi::OsString;
4
use std::fmt;
5
+#[allow(deprecated)] // to allow for older Rust versions (<1.24)
6
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
7
use std::sync::Mutex;
8
@@ -24,6 +25,7 @@ unsafe impl Sync for MaybeResolved {}
24
25
26
impl InternalBacktrace {
27
pub(super) fn new() -> InternalBacktrace {
28
+ #[allow(deprecated)] // to allow for older Rust versions (<1.24)
29
static ENABLED: AtomicUsize = ATOMIC_USIZE_INIT;
30
31
match ENABLED.load(Ordering::SeqCst) {
0 commit comments