diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 19a76302f178..280f0eafcf02 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -305,6 +305,11 @@ impl Iterator for ops::RangeFrom { self.start = plus_n.add_one(); Some(plus_n) } + + #[inline] + fn min(self) -> Option { + Some(self.start) + } } #[unstable(feature = "fused", issue = "35602")] @@ -368,6 +373,11 @@ impl Iterator for ops::RangeInclusive { None } + #[inline] + fn last(self) -> Option { + Some(self.end) + } + #[inline] fn min(self) -> Option { Some(self.start)