]> git.lizzy.rs Git - rust.git/commitdiff
impl TrustedLen for 128-bit ranges too
authorJosh Stone <jistone@redhat.com>
Tue, 26 Mar 2019 21:45:54 +0000 (14:45 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 26 Mar 2019 21:45:54 +0000 (14:45 -0700)
src/libcore/iter/range.rs

index 145fde0350e682ad8ca08b78044c9d72d33e615b..aefed1890fef8bd8cd81242a05d1c765e3dee691 100644 (file)
@@ -232,8 +232,8 @@ fn max(mut self) -> Option<A> {
 //
 // 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<A: Step> DoubleEndedIterator for ops::Range<A> {