about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-02-10 01:39:22 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2018-02-10 01:39:22 +0100
commit486160335c70c4a4b39ce8262314bc1bd63012ca (patch)
tree270a44091952d5dbac3fbb1330f72c5647515a62 /src/liballoc
parent467b5cfcb70c6a0f4b681f90219ce7d490980a47 (diff)
downloadrust-486160335c70c4a4b39ce8262314bc1bd63012ca.tar.gz
rust-486160335c70c4a4b39ce8262314bc1bd63012ca.zip
stabilize Box::leak: remove #![feature(box_leak)] in docs
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index a831391d168..75a59de337c 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -359,8 +359,6 @@ impl<T: ?Sized> Box<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 @@ impl<T: ?Sized> Box<T> {
     /// Unsized data:
     ///
     /// ```
-    /// #![feature(box_leak)]
-    ///
     /// fn main() {
     ///     let x = vec![1, 2, 3].into_boxed_slice();
     ///     let static_ref = Box::leak(x);