Skip to content

Commit b637a86

Browse files
committed
Add missing stability attributes to VecDeque.
1 parent 09dd65c commit b637a86

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libcollections/vec_deque.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl<T> VecDeque<T> {
377377
/// # Examples
378378
///
379379
/// ```
380-
/// #![feature(collections)]
380+
/// #![feature(deque_extras)]
381381
///
382382
/// use std::collections::VecDeque;
383383
///
@@ -387,6 +387,9 @@ impl<T> VecDeque<T> {
387387
/// buf.shrink_to_fit();
388388
/// assert!(buf.capacity() >= 4);
389389
/// ```
390+
#[unstable(feature = "deque_extras",
391+
reason = "needs to be audited",
392+
issue = "27788")]
390393
pub fn shrink_to_fit(&mut self) {
391394
// +1 since the ringbuffer always leaves one space empty
392395
// len + 1 can't overflow for an existing, well-formed ringbuffer.
@@ -928,7 +931,7 @@ impl<T> VecDeque<T> {
928931
///
929932
/// # Examples
930933
/// ```
931-
/// #![feature(collections)]
934+
/// #![feature(deque_extras)]
932935
///
933936
/// use std::collections::VecDeque;
934937
///
@@ -938,6 +941,9 @@ impl<T> VecDeque<T> {
938941
/// buf.insert(1, 11);
939942
/// assert_eq!(Some(&11), buf.get(1));
940943
/// ```
944+
#[unstable(feature = "deque_extras",
945+
reason = "needs to be audited",
946+
issue = "27788")]
941947
pub fn insert(&mut self, index: usize, value: T) {
942948
assert!(index <= self.len(), "index out of bounds");
943949
if self.is_full() {

0 commit comments

Comments
 (0)