Skip to content

Commit

Permalink
Add extend_one tracking issue 72631
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 30, 2020
1 parent 10efaa3 commit a51b22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/iter/traits/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@ 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));
}

/// 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;
}
Expand Down

0 comments on commit a51b22a

Please sign in to comment.