]> git.lizzy.rs Git - rust.git/commitdiff
stabilize Box::leak: remove #![feature(box_leak)] in docs
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 10 Feb 2018 00:39:22 +0000 (01:39 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sat, 10 Feb 2018 00:39:22 +0000 (01:39 +0100)
src/liballoc/boxed.rs

index a831391d168272800a33512dda6add7147d9ac77..75a59de337cef3e01e49eb5a7cb92c0645fe136a 100644 (file)
@@ -359,8 +359,6 @@ pub fn into_unique(b: Box<T>) -> Unique<T> {
     /// Simple usage:
     ///
     /// ```
-    /// #![feature(box_leak)]
-    ///
     /// fn main() {
     ///     let x = Box::new(41);
     ///     let static_ref: &'static mut usize = Box::leak(x);
@@ -372,8 +370,6 @@ pub fn into_unique(b: Box<T>) -> Unique<T> {
     /// Unsized data:
     ///
     /// ```
-    /// #![feature(box_leak)]
-    ///
     /// fn main() {
     ///     let x = vec![1, 2, 3].into_boxed_slice();
     ///     let static_ref = Box::leak(x);