diff options
| author | Benoît du Garreau <bdgdlm@outlook.com> | 2021-07-08 16:14:13 +0200 |
|---|---|---|
| committer | Benoît du Garreau <bdgdlm@outlook.com> | 2021-07-23 20:37:12 +0200 |
| commit | 19318e625bad52a512d8dcf600c79fc2ee8437b2 (patch) | |
| tree | 72ab0a33101893dcdf0d659e83b65d5d50bcc4c3 | |
| parent | 6fcc62b3ac446e4fc36a360b7207c29bef40b26c (diff) | |
| download | rust-19318e625bad52a512d8dcf600c79fc2ee8437b2.tar.gz rust-19318e625bad52a512d8dcf600c79fc2ee8437b2.zip | |
Add `#[unstable]` on new functions
| -rw-r--r-- | library/alloc/src/collections/vec_deque/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index fbd61497337..677c27b8150 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -496,7 +496,7 @@ impl<T, A: Allocator> VecDeque<T, A> { /// let vector: VecDeque<u32> = VecDeque::new(); /// ``` #[inline] - #[stable(feature = "rust1", since = "1.0.0")] + #[unstable(feature = "allocator_api", issue = "32838")] pub fn new_in(alloc: A) -> VecDeque<T, A> { VecDeque::with_capacity_in(INITIAL_CAPACITY, alloc) } @@ -510,7 +510,7 @@ impl<T, A: Allocator> VecDeque<T, A> { /// /// let vector: VecDeque<u32> = VecDeque::with_capacity(10); /// ``` - #[stable(feature = "rust1", since = "1.0.0")] + #[unstable(feature = "allocator_api", issue = "32838")] pub fn with_capacity_in(capacity: usize, alloc: A) -> VecDeque<T, A> { // +1 since the ringbuffer always leaves one space empty let cap = cmp::max(capacity + 1, MINIMUM_CAPACITY + 1).next_power_of_two(); |
