From 93c409d6e2924cdc936f3f834fc257f913b5911c Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 20 Dec 2021 13:49:10 +0100 Subject: [PATCH] Add tracking issue number for local_key_cell_methods. --- library/std/src/thread/local.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index b73c9270929..3e94c3d277d 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -482,7 +482,7 @@ impl LocalKey> { /// /// assert_eq!(X.get(), 123); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn set(&'static self, value: T) { self.initialize_with(Cell::new(value), |init, cell| { if let Some(init) = init { @@ -513,7 +513,7 @@ impl LocalKey> { /// /// assert_eq!(X.get(), 1); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn get(&'static self) -> T where T: Copy, @@ -544,7 +544,7 @@ impl LocalKey> { /// assert_eq!(X.take(), Some(1)); /// assert_eq!(X.take(), None); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn take(&'static self) -> T where T: Default, @@ -575,7 +575,7 @@ impl LocalKey> { /// assert_eq!(X.replace(2), 1); /// assert_eq!(X.replace(3), 2); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn replace(&'static self, value: T) -> T { self.with(|cell| cell.replace(value)) } @@ -606,7 +606,7 @@ impl LocalKey> { /// /// X.with_borrow(|v| assert!(v.is_empty())); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn with_borrow(&'static self, f: F) -> R where F: FnOnce(&T) -> R, @@ -640,7 +640,7 @@ impl LocalKey> { /// /// X.with_borrow(|v| assert_eq!(*v, vec![1])); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn with_borrow_mut(&'static self, f: F) -> R where F: FnOnce(&mut T) -> R, @@ -675,7 +675,7 @@ impl LocalKey> { /// /// X.with_borrow(|v| assert_eq!(*v, vec![1, 2, 3])); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn set(&'static self, value: T) { self.initialize_with(RefCell::new(value), |init, cell| { if let Some(init) = init { @@ -714,7 +714,7 @@ impl LocalKey> { /// /// X.with_borrow(|v| assert!(v.is_empty())); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn take(&'static self) -> T where T: Default, @@ -746,7 +746,7 @@ impl LocalKey> { /// /// X.with_borrow(|v| assert_eq!(*v, vec![1, 2, 3])); /// ``` - #[unstable(feature = "local_key_cell_methods", issue = "none")] + #[unstable(feature = "local_key_cell_methods", issue = "92122")] pub fn replace(&'static self, value: T) -> T { self.with(|cell| cell.replace(value)) }