diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-12-20 13:49:10 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-03-05 11:39:03 +0100 |
| commit | 93c409d6e2924cdc936f3f834fc257f913b5911c (patch) | |
| tree | 2caaa9ff9d705ea2d6b4170ebef04079c9583c7e /library/std/src/thread/local.rs | |
| parent | 88a693c4f44b3e267fec108a5572f1e534d4e795 (diff) | |
| download | rust-93c409d6e2924cdc936f3f834fc257f913b5911c.tar.gz rust-93c409d6e2924cdc936f3f834fc257f913b5911c.zip | |
Add tracking issue number for local_key_cell_methods.
Diffstat (limited to 'library/std/src/thread/local.rs')
| -rw-r--r-- | library/std/src/thread/local.rs | 18 |
1 files 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<T: 'static> LocalKey<Cell<T>> { /// /// 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<T: 'static> LocalKey<Cell<T>> { /// /// 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<T: 'static> LocalKey<Cell<T>> { /// 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<T: 'static> LocalKey<Cell<T>> { /// 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<T: 'static> LocalKey<RefCell<T>> { /// /// 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<F, R>(&'static self, f: F) -> R where F: FnOnce(&T) -> R, @@ -640,7 +640,7 @@ impl<T: 'static> LocalKey<RefCell<T>> { /// /// 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<F, R>(&'static self, f: F) -> R where F: FnOnce(&mut T) -> R, @@ -675,7 +675,7 @@ impl<T: 'static> LocalKey<RefCell<T>> { /// /// 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<T: 'static> LocalKey<RefCell<T>> { /// /// 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<T: 'static> LocalKey<RefCell<T>> { /// /// 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)) } |
