@@ -1249,8 +1249,9 @@ impl<'b, T: ?Sized> Ref<'b, T> {
1249
1249
/// Convert into a reference to the underlying data.
1250
1250
///
1251
1251
/// The underlying `RefCell` can never be mutably borrowed from again and will always appear
1252
- /// already immutably borrowed. It can still be immutably borrowed until more than `isize::MAX`
1253
- /// `Ref`s of this `RefCell` have been leaked, through this function or another leak, in total.
1252
+ /// already immutably borrowed. It is not a good idea to leak more than a constant number of
1253
+ /// references. The `RefCell` can be immutably borrowed again if only a smaller number of leaks
1254
+ /// have occurred in total.
1254
1255
///
1255
1256
/// This is an associated function that needs to be used as
1256
1257
/// `Ref::leak(...)`. A method would interfere with methods of the
@@ -1269,7 +1270,7 @@ impl<'b, T: ?Sized> Ref<'b, T> {
1269
1270
/// assert!(cell.try_borrow().is_ok());
1270
1271
/// assert!(cell.try_borrow_mut().is_err());
1271
1272
/// ```
1272
- #[ unstable( feature = "cell_leak" , issue = "none " ) ]
1273
+ #[ unstable( feature = "cell_leak" , issue = "69099 " ) ]
1273
1274
pub fn leak ( orig : Ref < ' b , T > ) -> & ' b T {
1274
1275
// By forgetting this BorrowRefMut we ensure that the borrow counter in the RefCell never
1275
1276
// goes back to UNUSED again. No further references can be created from the original cell,
@@ -1385,7 +1386,7 @@ impl<'b, T: ?Sized> RefMut<'b, T> {
1385
1386
///
1386
1387
/// assert!(cell.try_borrow_mut().is_err());
1387
1388
/// ```
1388
- #[ unstable( feature = "cell_leak" , issue = "none " ) ]
1389
+ #[ unstable( feature = "cell_leak" , issue = "69099 " ) ]
1389
1390
pub fn leak ( orig : RefMut < ' b , T > ) -> & ' b mut T {
1390
1391
// By forgetting this BorrowRefMut we ensure that the borrow counter in the RefCell never
1391
1392
// goes back to UNUSED again. No further references can be created from the original cell,
0 commit comments