Skip to content

Commit 6e9b369

Browse files
committed
Auto merge of rust-lang#84560 - cjgillot:inline-iter, r=m-ou-se
Inline Iterator as IntoIterator. For some reason, it appears on rustc's own perf stats.
2 parents 5249414 + 15c8a0e commit 6e9b369

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/iter/traits/collect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
238238
type Item = I::Item;
239239
type IntoIter = I;
240240

241+
#[inline]
241242
fn into_iter(self) -> I {
242243
self
243244
}

0 commit comments

Comments
 (0)