From a548d835ce29da1e3df044309c962f45a061f260 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 26 Mar 2019 14:45:54 -0700 Subject: [PATCH] impl TrustedLen for 128-bit ranges too --- src/libcore/iter/range.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 145fde0350e68..aefed1890fef8 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -232,8 +232,8 @@ range_incl_exact_iter_impl!(u8 u16 i8 i16); // // They need to guarantee that .size_hint() is either exact, or that // the upper bound is None when it does not fit the type limits. -range_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 i64 u64); -range_incl_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 i64 u64); +range_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 u64 i64 u128 i128); +range_incl_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 u64 i64 u128 i128); #[stable(feature = "rust1", since = "1.0.0")] impl DoubleEndedIterator for ops::Range {