Skip to content

Commit 53c31c2

Browse files
borsgitbot
authored and
gitbot
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 0cf68ed + d3e2ede commit 53c31c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: 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)