]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/common/poison.rs
std: Split the `std_misc` feature
[rust.git] / src / libstd / sys / common / poison.rs
index 48c8198272588f8f1401252ac21b4731bb6d41fb..75f85879fd1f4db71029cb6a84d456b4bd8403c8 100644 (file)
@@ -120,24 +120,24 @@ fn description(&self) -> &str {
 
 impl<T> PoisonError<T> {
     /// Creates a `PoisonError`.
-    #[unstable(feature = "std_misc")]
+    #[unstable(feature = "sync_poison")]
     pub fn new(guard: T) -> PoisonError<T> {
         PoisonError { guard: guard }
     }
 
     /// Consumes this error indicating that a lock is poisoned, returning the
     /// underlying guard to allow access regardless.
-    #[unstable(feature = "std_misc")]
+    #[unstable(feature = "sync_poison")]
     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 = "std_misc")]
+    #[unstable(feature = "sync_poison")]
     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 = "std_misc")]
+    #[unstable(feature = "sync_poi")]
     pub fn get_mut(&mut self) -> &mut T { &mut self.guard }
 }