Add unstable attribute for A in Drain and IntoIter

This commit is contained in:
Benoît du Garreau 2021-06-28 00:22:52 +02:00
parent 0570f09a33
commit 6fcc62b3ac
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,11 @@ use super::{count, Iter, VecDeque};
///
/// [`drain`]: VecDeque::drain
#[stable(feature = "drain", since = "1.6.0")]
pub struct Drain<'a, T: 'a, A: Allocator = Global> {
pub struct Drain<
'a,
T: 'a,
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
> {
pub(crate) after_tail: usize,
pub(crate) after_head: usize,
pub(crate) iter: Iter<'a, T>,

View File

@ -13,7 +13,10 @@ use super::VecDeque;
/// [`into_iter`]: VecDeque::into_iter
#[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")]
pub struct IntoIter<T, A: Allocator = Global> {
pub struct IntoIter<
T,
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
> {
pub(crate) inner: VecDeque<T, A>,
}