feat: Implement UnwindSafe on core (#49)

This commit is contained in:
MrEconomical 2023-08-25 05:15:31 -07:00 committed by GitHub
parent cbdf9e88e1
commit 04f3a1eecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -59,12 +59,11 @@ extern crate std;
use alloc::boxed::Box;
use core::fmt;
use core::panic::{RefUnwindSafe, UnwindSafe};
use sync::atomic::{self, Ordering};
#[cfg(feature = "std")]
use std::error;
#[cfg(feature = "std")]
use std::panic::{RefUnwindSafe, UnwindSafe};
use crate::bounded::Bounded;
use crate::single::Single;
@ -99,9 +98,7 @@ pub struct ConcurrentQueue<T>(Inner<T>);
unsafe impl<T: Send> Send for ConcurrentQueue<T> {}
unsafe impl<T: Send> Sync for ConcurrentQueue<T> {}
#[cfg(feature = "std")]
impl<T> UnwindSafe for ConcurrentQueue<T> {}
#[cfg(feature = "std")]
impl<T> RefUnwindSafe for ConcurrentQueue<T> {}
enum Inner<T> {