Update library/proc_macro/src/lib.rs
Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
parent
f0fd9cdffd
commit
ff7081e6e2
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ macro_rules! extend_items {
|
|||
#[stable(feature = "token_stream_extend_tt_items", since = "CURRENT_RUSTC_VERSION")]
|
||||
impl Extend<$item> for TokenStream {
|
||||
fn extend<T: IntoIterator<Item = $item>>(&mut self, iter: T) {
|
||||
self.extend(iter.into_iter().map(|i| TokenTree::$item(i)));
|
||||
self.extend(iter.into_iter().map(TokenTree::$item));
|
||||
}
|
||||
}
|
||||
)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue