Skip to content

Commit 1acbb0a

Browse files
committed
Make raw_vec perma-unstable and hidden
1 parent 6e5e63a commit 1acbb0a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: src/liballoc/raw_vec.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![unstable(feature = "raw_vec_internals", reason = "implemention detail", issue = "0")]
12+
#![doc(hidden)]
13+
1114
use core::cmp;
1215
use core::mem;
1316
use core::ops::Drop;
@@ -264,7 +267,7 @@ impl<T, A: Alloc> RawVec<T, A> {
264267
/// # Examples
265268
///
266269
/// ```
267-
/// # #![feature(alloc)]
270+
/// # #![feature(alloc, raw_vec_internals)]
268271
/// # extern crate alloc;
269272
/// # use std::ptr;
270273
/// # use alloc::raw_vec::RawVec;
@@ -468,7 +471,7 @@ impl<T, A: Alloc> RawVec<T, A> {
468471
/// # Examples
469472
///
470473
/// ```
471-
/// # #![feature(alloc)]
474+
/// # #![feature(alloc, raw_vec_internals)]
472475
/// # extern crate alloc;
473476
/// # use std::ptr;
474477
/// # use alloc::raw_vec::RawVec;

Diff for: src/libarena/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#![feature(alloc)]
2727
#![feature(core_intrinsics)]
2828
#![feature(dropck_eyepatch)]
29+
#![feature(raw_vec_internals)]
2930
#![cfg_attr(test, feature(test))]
3031

3132
#![allow(deprecated)]

Diff for: src/test/rustdoc-js/struct-vec.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ const EXPECTED = {
1414
'others': [
1515
{ 'path': 'std::vec', 'name': 'Vec' },
1616
{ 'path': 'std::collections', 'name': 'VecDeque' },
17-
{ 'path': 'alloc::raw_vec', 'name': 'RawVec' },
1817
],
1918
};

0 commit comments

Comments
 (0)