diff options
| author | varkor <github@varkor.com> | 2018-01-04 15:03:50 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-01-04 15:03:50 +0000 |
| commit | 439beab41fb5162b26c075a7d7cb28662ba0ab7b (patch) | |
| tree | 8085b2b814d9db02ba242063b89897f6786bf7ad | |
| parent | f3baa8572917b6c326605853685a195f99c3b874 (diff) | |
| download | rust-439beab41fb5162b26c075a7d7cb28662ba0ab7b.tar.gz rust-439beab41fb5162b26c075a7d7cb28662ba0ab7b.zip | |
Remove min from RangeFrom
| -rw-r--r-- | src/libcore/iter/range.rs | 5 | ||||
| -rw-r--r-- | src/libcore/tests/iter.rs | 7 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 4aec70a86e0..03cc5a03cff 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -312,11 +312,6 @@ impl<A: Step> Iterator for ops::RangeFrom<A> { self.start = plus_n.add_one(); Some(plus_n) } - - #[inline] - fn min(self) -> Option<A> { - Some(self.start) - } } #[unstable(feature = "fused", issue = "35602")] diff --git a/src/libcore/tests/iter.rs b/src/libcore/tests/iter.rs index 71a75115d86..c75417f8de9 100644 --- a/src/libcore/tests/iter.rs +++ b/src/libcore/tests/iter.rs @@ -1360,13 +1360,6 @@ fn test_range_max() { } #[test] -fn test_range_from_min() { - assert_eq!((0..).min(), Some(0)); - assert_eq!((-20..).min(), Some(-20)); - assert_eq!((20..).min(), Some(20)); -} - -#[test] fn test_range_inc_last_max() { assert_eq!((0..=20).last(), Some(20)); assert_eq!((-20..=0).last(), Some(0)); |
