Skip to content

Commit a548d83

Browse files
committed
impl TrustedLen for 128-bit ranges too
1 parent 3d389f2 commit a548d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/iter/range.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ range_incl_exact_iter_impl!(u8 u16 i8 i16);
232232
//
233233
// They need to guarantee that .size_hint() is either exact, or that
234234
// the upper bound is None when it does not fit the type limits.
235-
range_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 i64 u64);
236-
range_incl_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 i64 u64);
235+
range_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 u64 i64 u128 i128);
236+
range_incl_trusted_len_impl!(usize isize u8 i8 u16 i16 u32 i32 u64 i64 u128 i128);
237237

238238
#[stable(feature = "rust1", since = "1.0.0")]
239239
impl<A: Step> DoubleEndedIterator for ops::Range<A> {

0 commit comments

Comments
 (0)