diff options
| author | Josh Stone <jistone@redhat.com> | 2025-02-17 09:35:47 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-02-18 08:50:21 -0800 |
| commit | fdba8a7c47398e8bd99cb22ede199bf9a0167eaf (patch) | |
| tree | 624e76dcdce4d56521089c6f5bece1bbfb9c15d2 /library/std/src/sync | |
| parent | 3b022d8ceea570db9730be34d964f0cc663a567f (diff) | |
| download | rust-fdba8a7c47398e8bd99cb22ede199bf9a0167eaf.tar.gz rust-fdba8a7c47398e8bd99cb22ede199bf9a0167eaf.zip | |
update version placeholders
(cherry picked from commit e4840ce59bdddb19394df008c5c26d9c493725f8)
Diffstat (limited to 'library/std/src/sync')
| -rw-r--r-- | library/std/src/sync/once_lock.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sync/poison/once.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sync/once_lock.rs b/library/std/src/sync/once_lock.rs index 21e6b65a744..ffb90b14695 100644 --- a/library/std/src/sync/once_lock.rs +++ b/library/std/src/sync/once_lock.rs @@ -191,7 +191,7 @@ impl<T> OnceLock<T> { /// }) /// ``` #[inline] - #[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "once_wait", since = "1.86.0")] pub fn wait(&self) -> &T { self.once.wait_force(); diff --git a/library/std/src/sync/poison/once.rs b/library/std/src/sync/poison/once.rs index d2938b7a0c1..103e5195407 100644 --- a/library/std/src/sync/poison/once.rs +++ b/library/std/src/sync/poison/once.rs @@ -284,7 +284,7 @@ impl Once { /// If this [`Once`] has been poisoned because an initialization closure has /// panicked, this method will also panic. Use [`wait_force`](Self::wait_force) /// if this behavior is not desired. - #[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "once_wait", since = "1.86.0")] pub fn wait(&self) { if !self.inner.is_completed() { self.inner.wait(false); @@ -293,7 +293,7 @@ impl Once { /// Blocks the current thread until initialization has completed, ignoring /// poisoning. - #[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "once_wait", since = "1.86.0")] pub fn wait_force(&self) { if !self.inner.is_completed() { self.inner.wait(true); |
