Add extend_one tracking issue 72631

This commit is contained in:
Josh Stone 2020-05-26 14:15:29 -07:00
parent 10efaa37de
commit a51b22a9fd
1 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ pub trait Extend<A> {
fn extend<T: IntoIterator<Item = A>>(&mut self, iter: T);
/// Extends a collection with exactly one element.
#[unstable(feature = "extend_one", issue = "none")]
#[unstable(feature = "extend_one", issue = "72631")]
fn extend_one(&mut self, item: A) {
self.extend(Some(item));
}
@ -351,7 +351,7 @@ pub trait Extend<A> {
/// Reserves capacity in a collection for the given number of additional elements.
///
/// The default implementation does nothing.
#[unstable(feature = "extend_one", issue = "none")]
#[unstable(feature = "extend_one", issue = "72631")]
fn extend_reserve(&mut self, additional: usize) {
let _ = additional;
}