mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
Add unstable attribute for A
in Drain
and IntoIter
This commit is contained in:
parent
0570f09a33
commit
6fcc62b3ac
@ -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>,
|
||||
|
@ -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>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user