File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 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> {
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 /// ```
Original file line number Diff line number Diff 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 /// ```
You can’t perform that action at this time.
0 commit comments