Skip to content

Commit

Permalink
stabilize (version: 1.26.0) Box::leak, cc rust-lang#46179
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 10, 2018
1 parent 3bcda48 commit 467b5cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@ impl<T: ?Sized> Box<T> {
/// assert_eq!(*static_ref, [4, 2, 3]);
/// }
/// ```
#[unstable(feature = "box_leak", reason = "needs an FCP to stabilize",
issue = "46179")]
#[stable(feature = "box_leak", since = "1.26.0")]
#[inline]
pub fn leak<'a>(b: Box<T>) -> &'a mut T
where
Expand Down

0 comments on commit 467b5cf

Please sign in to comment.