Skip to content

Commit 6fcc62b

Browse files
committed
Add unstable attribute for A in Drain and IntoIter
1 parent 0570f09 commit 6fcc62b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ use super::{count, Iter, VecDeque};
1313
///
1414
/// [`drain`]: VecDeque::drain
1515
#[stable(feature = "drain", since = "1.6.0")]
16-
pub struct Drain<'a, T: 'a, A: Allocator = Global> {
16+
pub struct Drain<
17+
'a,
18+
T: 'a,
19+
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
20+
> {
1721
pub(crate) after_tail: usize,
1822
pub(crate) after_head: usize,
1923
pub(crate) iter: Iter<'a, T>,

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ use super::VecDeque;
1313
/// [`into_iter`]: VecDeque::into_iter
1414
#[derive(Clone)]
1515
#[stable(feature = "rust1", since = "1.0.0")]
16-
pub struct IntoIter<T, A: Allocator = Global> {
16+
pub struct IntoIter<
17+
T,
18+
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
19+
> {
1720
pub(crate) inner: VecDeque<T, A>,
1821
}
1922

0 commit comments

Comments
 (0)