From c032d6fd397d95ccfa7c9bbefc8cc508906b8d34 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:43:08 -0700 Subject: std: Stabilize the sync_poison feature These accessor/constructor methods for a `PoisonError` are quite standard for a wrapper type and enable manipulation of the underlying type. --- src/libstd/sys/common/poison.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/common/poison.rs b/src/libstd/sys/common/poison.rs index 75f85879fd1..065b1d6c9ac 100644 --- a/src/libstd/sys/common/poison.rs +++ b/src/libstd/sys/common/poison.rs @@ -120,24 +120,24 @@ impl Error for PoisonError { impl PoisonError { /// Creates a `PoisonError`. - #[unstable(feature = "sync_poison")] + #[stable(feature = "sync_poison", since = "1.2.0")] pub fn new(guard: T) -> PoisonError { PoisonError { guard: guard } } /// Consumes this error indicating that a lock is poisoned, returning the /// underlying guard to allow access regardless. - #[unstable(feature = "sync_poison")] + #[stable(feature = "sync_poison", since = "1.2.0")] pub fn into_inner(self) -> T { self.guard } /// Reaches into this error indicating that a lock is poisoned, returning a /// reference to the underlying guard to allow access regardless. - #[unstable(feature = "sync_poison")] + #[stable(feature = "sync_poison", since = "1.2.0")] pub fn get_ref(&self) -> &T { &self.guard } /// Reaches into this error indicating that a lock is poisoned, returning a /// mutable reference to the underlying guard to allow access regardless. - #[unstable(feature = "sync_poi")] + #[stable(feature = "sync_poison", since = "1.2.0")] pub fn get_mut(&mut self) -> &mut T { &mut self.guard } } -- cgit 1.4.1-3-g733a5