File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,6 @@ impl<T: ?Sized> Box<T> {
359
359
/// Simple usage:
360
360
///
361
361
/// ```
362
- /// #![feature(box_leak)]
363
- ///
364
362
/// fn main() {
365
363
/// let x = Box::new(41);
366
364
/// let static_ref: &'static mut usize = Box::leak(x);
@@ -372,17 +370,14 @@ impl<T: ?Sized> Box<T> {
372
370
/// Unsized data:
373
371
///
374
372
/// ```
375
- /// #![feature(box_leak)]
376
- ///
377
373
/// fn main() {
378
374
/// let x = vec![1, 2, 3].into_boxed_slice();
379
375
/// let static_ref = Box::leak(x);
380
376
/// static_ref[0] = 4;
381
377
/// assert_eq!(*static_ref, [4, 2, 3]);
382
378
/// }
383
379
/// ```
384
- #[ unstable( feature = "box_leak" , reason = "needs an FCP to stabilize" ,
385
- issue = "46179" ) ]
380
+ #[ stable( feature = "box_leak" , since = "1.26.0" ) ]
386
381
#[ inline]
387
382
pub fn leak < ' a > ( b : Box < T > ) -> & ' a mut T
388
383
where
You can’t perform that action at this time.
0 commit comments