Skip to content

Commit

Permalink
Auto merge of #84560 - cjgillot:inline-iter, r=m-ou-se
Browse files Browse the repository at this point in the history
Inline Iterator as IntoIterator.

For some reason, it appears on rustc's own perf stats.
  • Loading branch information
bors committed Jul 5, 2021
2 parents 5249414 + 15c8a0e commit 6e9b369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/iter/traits/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
type Item = I::Item;
type IntoIter = I;

#[inline]
fn into_iter(self) -> I {
self
}
Expand Down

0 comments on commit 6e9b369

Please sign in to comment.