Skip to content

Commit 19318e6

Browse files
committed
Add #[unstable] on new functions
1 parent 6fcc62b commit 19318e6

File tree

1 file changed

+2
-2
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+2
-2
lines changed

library/alloc/src/collections/vec_deque/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
496496
/// let vector: VecDeque<u32> = VecDeque::new();
497497
/// ```
498498
#[inline]
499-
#[stable(feature = "rust1", since = "1.0.0")]
499+
#[unstable(feature = "allocator_api", issue = "32838")]
500500
pub fn new_in(alloc: A) -> VecDeque<T, A> {
501501
VecDeque::with_capacity_in(INITIAL_CAPACITY, alloc)
502502
}
@@ -510,7 +510,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
510510
///
511511
/// let vector: VecDeque<u32> = VecDeque::with_capacity(10);
512512
/// ```
513-
#[stable(feature = "rust1", since = "1.0.0")]
513+
#[unstable(feature = "allocator_api", issue = "32838")]
514514
pub fn with_capacity_in(capacity: usize, alloc: A) -> VecDeque<T, A> {
515515
// +1 since the ringbuffer always leaves one space empty
516516
let cap = cmp::max(capacity + 1, MINIMUM_CAPACITY + 1).next_power_of_two();

0 commit comments

Comments
 (0)