未验证 提交 ef7f77d5 编写于 作者: K kennytm 提交者: GitHub

Rollup merge of #54891 - rust-lang:SimonSapin-patch-1, r=nagisa

Fix tracking issue for Once::is_completed

https://github.com/rust-lang/rust/pull/53027 was merged without a tracking issue. I just filed https://github.com/rust-lang/rust/issues/54890. CC @matklad
......@@ -329,7 +329,7 @@ pub fn call_once_force<F>(&self, f: F) where F: FnOnce(&OnceState) {
/// assert!(handle.join().is_err());
/// assert_eq!(INIT.is_completed(), false);
/// ```
#[unstable(feature = "once_is_completed", issue = "42")]
#[unstable(feature = "once_is_completed", issue = "54890")]
#[inline]
pub fn is_completed(&self) -> bool {
// An `Acquire` load is enough because that makes all the initialization
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册