diff --git a/library/core/src/cell/once.rs b/library/core/src/cell/once.rs index 5ee5a0ce4d26f..a7c3dfc982d12 100644 --- a/library/core/src/cell/once.rs +++ b/library/core/src/cell/once.rs @@ -248,9 +248,6 @@ impl OnceCell { /// If `f` panics, the panic is propagated to the caller, and the cell /// remains uninitialized. /// - /// It is an error to reentrantly initialize the cell from `f`. Doing - /// so results in a panic. - /// /// # Examples /// /// ``` diff --git a/library/std/src/sync/once_lock.rs b/library/std/src/sync/once_lock.rs index 63b09719d5eef..fc830baccedd2 100644 --- a/library/std/src/sync/once_lock.rs +++ b/library/std/src/sync/once_lock.rs @@ -264,10 +264,6 @@ impl OnceLock { /// If `f` panics, the panic is propagated to the caller, and the cell /// remains uninitialized. /// - /// It is an error to reentrantly initialize the cell from `f`. The - /// exact outcome is unspecified. Current implementation deadlocks, but - /// this may be changed to a panic in the future. - /// /// # Examples /// /// ``` @@ -356,10 +352,6 @@ impl OnceLock { /// If `f` panics, the panic is propagated to the caller, and /// the cell remains uninitialized. /// - /// It is an error to reentrantly initialize the cell from `f`. - /// The exact outcome is unspecified. Current implementation - /// deadlocks, but this may be changed to a panic in the future. - /// /// # Examples /// /// ```