mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Make raw_vec perma-unstable and hidden
This commit is contained in:
parent
6e5e63a48c
commit
1acbb0a935
@ -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 @@ impl<T, A: Alloc> RawVec<T, A> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(alloc)]
|
||||
/// # #![feature(alloc, raw_vec_internals)]
|
||||
/// # extern crate alloc;
|
||||
/// # use std::ptr;
|
||||
/// # use alloc::raw_vec::RawVec;
|
||||
@ -468,7 +471,7 @@ impl<T, A: Alloc> RawVec<T, A> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(alloc)]
|
||||
/// # #![feature(alloc, raw_vec_internals)]
|
||||
/// # extern crate alloc;
|
||||
/// # use std::ptr;
|
||||
/// # use alloc::raw_vec::RawVec;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#![feature(alloc)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(dropck_eyepatch)]
|
||||
#![feature(raw_vec_internals)]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
|
||||
#![allow(deprecated)]
|
||||
|
@ -14,6 +14,5 @@ const EXPECTED = {
|
||||
'others': [
|
||||
{ 'path': 'std::vec', 'name': 'Vec' },
|
||||
{ 'path': 'std::collections', 'name': 'VecDeque' },
|
||||
{ 'path': 'alloc::raw_vec', 'name': 'RawVec' },
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user