auto trait future compatibility lint
This commit is contained in:
parent
0d1b79a01a
commit
8b586e68b5
31 changed files with 90 additions and 1 deletions
|
@ -188,6 +188,8 @@ pub struct AssertUnwindSafe<T>(
|
|||
// * Types like Mutex/RwLock which are explicilty poisoned are unwind safe
|
||||
// * Our custom AssertUnwindSafe wrapper is indeed unwind safe
|
||||
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
||||
#[allow(unknown_lints)]
|
||||
#[allow(auto_impl)]
|
||||
impl UnwindSafe for .. {}
|
||||
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
||||
impl<'a, T: ?Sized> !UnwindSafe for &'a mut T {}
|
||||
|
@ -221,6 +223,8 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Arc<T> {}
|
|||
// only thing which doesn't implement it (which then transitively applies to
|
||||
// everything else).
|
||||
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
||||
#[allow(unknown_lints)]
|
||||
#[allow(auto_impl)]
|
||||
impl RefUnwindSafe for .. {}
|
||||
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
||||
impl<T: ?Sized> !RefUnwindSafe for UnsafeCell<T> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue