diff options
| author | bors <bors@rust-lang.org> | 2025-02-23 11:12:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-23 11:12:56 +0000 |
| commit | b88076097751f7677b850b94b20faf5679fca321 (patch) | |
| tree | 52960868de1eb6bca8666013db21a90d6161ae1f /library/std/src/sync | |
| parent | 1805b3348341e0918912ab61cb1dffad41648d23 (diff) | |
| parent | e61cac20c88f545891fdd2c0a2482b4ca4e0ecaf (diff) | |
| download | rust-b88076097751f7677b850b94b20faf5679fca321.tar.gz rust-b88076097751f7677b850b94b20faf5679fca321.zip | |
Auto merge of #137237 - cuviper:stage0, r=Mark-Simulacrum
Master bootstrap update https://forge.rust-lang.org/release/process.html#master-bootstrap-update-tuesday r? `@Mark-Simulacrum`
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); |
