]> git.lizzy.rs Git - rust.git/commitdiff
Make raw_vec perma-unstable and hidden
authorSimon Sapin <simon.sapin@exyr.org>
Fri, 15 Jun 2018 01:36:34 +0000 (03:36 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Fri, 29 Jun 2018 12:01:33 +0000 (14:01 +0200)
src/liballoc/raw_vec.rs
src/libarena/lib.rs
src/test/rustdoc-js/struct-vec.js

index 2369ce648fda56ee64d5b92a097d9d7be7c25748..5095bbe96cc670562ab39f35ee398bd44b74ba6e 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![unstable(feature = "raw_vec_internals", reason = "implemention detail", issue = "0")]
+#![doc(hidden)]
+
 use core::cmp;
 use core::mem;
 use core::ops::Drop;
@@ -264,7 +267,7 @@ fn current_layout(&self) -> Option<Layout> {
     /// # Examples
     ///
     /// ```
-    /// # #![feature(alloc)]
+    /// # #![feature(alloc, raw_vec_internals)]
     /// # extern crate alloc;
     /// # use std::ptr;
     /// # use alloc::raw_vec::RawVec;
@@ -468,7 +471,7 @@ pub fn try_reserve(&mut self, used_cap: usize, needed_extra_cap: usize)
     /// # Examples
     ///
     /// ```
-    /// # #![feature(alloc)]
+    /// # #![feature(alloc, raw_vec_internals)]
     /// # extern crate alloc;
     /// # use std::ptr;
     /// # use alloc::raw_vec::RawVec;
index b6a81596d06cc7ea1997757b83f669e023ab9236..0f4a5d16e1759aa1a4a0f957930fc5b02235c757 100644 (file)
@@ -26,6 +26,7 @@
 #![feature(alloc)]
 #![feature(core_intrinsics)]
 #![feature(dropck_eyepatch)]
+#![feature(raw_vec_internals)]
 #![cfg_attr(test, feature(test))]
 
 #![allow(deprecated)]
index a91bc2d0da288e949fded9fdce7bcd34c68a3a2e..3874e23a2a3c9969eee6670e7d7c1d04812d82c1 100644 (file)
@@ -14,6 +14,5 @@ const EXPECTED = {
     'others': [
         { 'path': 'std::vec', 'name': 'Vec' },
         { 'path': 'std::collections', 'name': 'VecDeque' },
-        { 'path': 'alloc::raw_vec', 'name': 'RawVec' },
     ],
 };