about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2017-10-14 18:23:50 -0300
committerleonardo.yvens <leoyvens@gmail.com>2017-11-03 16:13:21 -0200
commit8b586e68b5b41cbc44f6e7936487061dc833ebed (patch)
treec4f726160cfa01352d9efcca5a1d6d3745a644bf /src/libstd
parent0d1b79a01a95241d174ad4e5fe03c0b3d3517746 (diff)
downloadrust-8b586e68b5b41cbc44f6e7936487061dc833ebed.tar.gz
rust-8b586e68b5b41cbc44f6e7936487061dc833ebed.zip
auto trait future compatibility lint
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/panic.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs
index 97b09b7e2ad..385076e50dd 100644
--- a/src/libstd/panic.rs
+++ b/src/libstd/panic.rs
@@ -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> {}