about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-03-26 14:45:54 -0700
committerJosh Stone <jistone@redhat.com>2019-03-26 14:45:54 -0700
commita548d835ce29da1e3df044309c962f45a061f260 (patch)
tree781c8dc9a3cfa2e10d14c345f81e5f35e4b76b64
parent3d389f244a2192dd97542657b8a5733dbc8319f9 (diff)
downloadrust-a548d835ce29da1e3df044309c962f45a061f260.tar.gz
rust-a548d835ce29da1e3df044309c962f45a061f260.zip
impl TrustedLen for 128-bit ranges too
-rw-r--r--src/libcore/iter/range.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs
index 145fde0350e..aefed1890fe 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<A: Step> DoubleEndedIterator for ops::Range<A> {