Skip to content

Commit

Permalink
Rollup merge of #70018 - LukasKalbertodt:fix-once-is-complete-since, …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
Centril committed Mar 15, 2020
2 parents b46ef3d + 401a3f3 commit bde77af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde77af

Please sign in to comment.