Skip to content

Commit fd29d3a

Browse files
committed
for the rest functions
Signed-off-by: tison <wander4096@gmail.com>
1 parent 4dc3dae commit fd29d3a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

library/core/src/cell/once.rs

-3
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ impl<T> OnceCell<T> {
248248
/// If `f` panics, the panic is propagated to the caller, and the cell
249249
/// remains uninitialized.
250250
///
251-
/// It is an error to reentrantly initialize the cell from `f`. Doing
252-
/// so results in a panic.
253-
///
254251
/// # Examples
255252
///
256253
/// ```

library/std/src/sync/once_lock.rs

-8
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ impl<T> OnceLock<T> {
264264
/// If `f` panics, the panic is propagated to the caller, and the cell
265265
/// remains uninitialized.
266266
///
267-
/// It is an error to reentrantly initialize the cell from `f`. The
268-
/// exact outcome is unspecified. Current implementation deadlocks, but
269-
/// this may be changed to a panic in the future.
270-
///
271267
/// # Examples
272268
///
273269
/// ```
@@ -356,10 +352,6 @@ impl<T> OnceLock<T> {
356352
/// If `f` panics, the panic is propagated to the caller, and
357353
/// the cell remains uninitialized.
358354
///
359-
/// It is an error to reentrantly initialize the cell from `f`.
360-
/// The exact outcome is unspecified. Current implementation
361-
/// deadlocks, but this may be changed to a panic in the future.
362-
///
363355
/// # Examples
364356
///
365357
/// ```

0 commit comments

Comments
 (0)