Auto merge of #84560 - cjgillot:inline-iter, r=m-ou-se

Inline Iterator as IntoIterator.

For some reason, it appears on rustc's own perf stats.
This commit is contained in:
bors 2021-07-05 13:12:07 +00:00
commit 6e9b3696d4

View File

@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
type Item = I::Item;
type IntoIter = I;
#[inline]
fn into_iter(self) -> I {
self
}