File tree 2 files changed +0
-11
lines changed
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -248,9 +248,6 @@ impl<T> OnceCell<T> {
248
248
/// If `f` panics, the panic is propagated to the caller, and the cell
249
249
/// remains uninitialized.
250
250
///
251
- /// It is an error to reentrantly initialize the cell from `f`. Doing
252
- /// so results in a panic.
253
- ///
254
251
/// # Examples
255
252
///
256
253
/// ```
Original file line number Diff line number Diff line change @@ -264,10 +264,6 @@ impl<T> OnceLock<T> {
264
264
/// If `f` panics, the panic is propagated to the caller, and the cell
265
265
/// remains uninitialized.
266
266
///
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
- ///
271
267
/// # Examples
272
268
///
273
269
/// ```
@@ -356,10 +352,6 @@ impl<T> OnceLock<T> {
356
352
/// If `f` panics, the panic is propagated to the caller, and
357
353
/// the cell remains uninitialized.
358
354
///
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
- ///
363
355
/// # Examples
364
356
///
365
357
/// ```
You can’t perform that action at this time.
0 commit comments