about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-15 15:40:15 +0100
committerGitHub <noreply@github.com>2020-03-15 15:40:15 +0100
commitbde77af0944e7b6f666b64f92bc30f8fd55296d2 (patch)
tree0498323e53746dbe667aee93c850a96781c8ec40 /src/libstd
parentb46ef3dd0308bd75e4aa0cc0eca5203842bf5561 (diff)
parent401a3f376263886f997013e7bfe266ef6b7568dd (diff)
downloadrust-bde77af0944e7b6f666b64f92bc30f8fd55296d2.tar.gz
rust-bde77af0944e7b6f666b64f92bc30f8fd55296d2.zip
Rollup merge of #70018 - LukasKalbertodt:fix-once-is-complete-since, r=Centril
Fix "since" field for `Once::is_complete`'s `#[stable]` attribute

It was accidentally merged with the wrong version in #68945.  Thanks @jplatte for noticing.

This also needs to be beta backported.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sync/once.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index b99b4d8d9fd..1e6b6c430be 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -363,7 +363,7 @@ impl Once {
     /// assert!(handle.join().is_err());
     /// assert_eq!(INIT.is_completed(), false);
     /// ```
-    #[stable(feature = "once_is_completed", since = "1.44.0")]
+    #[stable(feature = "once_is_completed", since = "1.43.0")]
     #[inline]
     pub fn is_completed(&self) -> bool {
         // An `Acquire` load is enough because that makes all the initialization