From a398b6b9d429cd0044c0b4cec95ec4fe2dbac295 Mon Sep 17 00:00:00 2001 From: The8472 Date: Mon, 11 Oct 2021 17:50:03 +0200 Subject: [PATCH] inline next() on &mut Iterator impl --- library/core/src/iter/traits/iterator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 8f9b32e77505..f53d6cac7ed9 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -3460,6 +3460,7 @@ pub trait Iterator { #[stable(feature = "rust1", since = "1.0.0")] impl Iterator for &mut I { type Item = I::Item; + #[inline] fn next(&mut self) -> Option { (**self).next() }