rust/src/libcore
Alex Crichton 24c92134ea rollup merge of #22065: bluss/range-size-hint
When self.start > self.end, these iterators simply return None,
so we adjust the size_hint to just return zero in this case.

Certain optimizations can be implemented in and outside libstd if we
know we can trust the size_hint for all inputs to for example
Range<usize>.

This corrects the ExactSizeIterator implementations, which IMO were
unsound and incorrect previously, since they allowed a range like (2..1)
to return a size_hint of -1us in when debug assertions are turned off.
2015-02-10 08:41:48 -08:00
..
fmt remove all kind annotations from closures 2015-02-04 20:06:08 -05:00
hash Rollup merge of #21925 - sfackler:allow-missing-copy, r=alexcrichton 2015-02-06 16:21:08 +05:30
num Test fixes and rebase conflicts 2015-01-30 14:53:34 -08:00
str Rollup merge of #21925 - sfackler:allow-missing-copy, r=alexcrichton 2015-02-06 16:21:08 +05:30
any.rs s/Show/Debug/g 2015-01-29 07:49:02 -05:00
array.rs register snapshots 2015-02-02 13:38:32 -05:00
atomic.rs std: Stabilize Atomic{Isize,Usize} methods 2015-01-30 18:02:57 -08:00
borrow.rs convert remaining range(a, b) to a..b 2015-01-29 07:49:01 -05:00
cell.rs Test fixes and rebase conflicts 2015-02-02 18:50:23 -08:00
char.rs Test fixes and rebase conflicts 2015-02-02 18:50:23 -08:00
clone.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
cmp.rs s/Show/Debug/g 2015-01-29 07:49:02 -05:00
default.rs Merge remote-tracking branch 'rust-lang/master' 2015-01-25 22:14:06 -08:00
error.rs Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
finally.rs remove all kind annotations from closures 2015-02-04 20:06:08 -05:00
intrinsics.rs register snaphots 2015-01-29 07:49:02 -05:00
iter.rs rollup merge of #22065: bluss/range-size-hint 2015-02-10 08:41:48 -08:00
lib.rs Feature-gate #![no_std] 2015-02-07 10:49:58 -08:00
macros.rs Merge remote-tracking branch 'rust-lang/master' 2015-01-25 22:14:06 -08:00
marker.rs Auto merge of #21995 - leejunseok:fix_invariant_ex, r=steveklabnik 2015-02-07 09:55:14 +00:00
mem.rs Make the lifetime anchor immutable on std::mem::copy_mut_lifetime 2015-02-05 22:19:11 +02:00
nonzero.rs rollup merge of #21706: reem/missing-zeroable-impl-for-unique 2015-01-30 12:03:19 -08:00
ops.rs make IndexMut a super trait over Index 2015-02-06 21:11:59 -05:00
option.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
panicking.rs
prelude.rs register snapshots 2015-02-02 13:38:32 -05:00
ptr.rs Improve ptr::read docs 2015-02-05 19:57:28 -05:00
raw.rs Set unstable feature names appropriately 2015-01-23 13:28:40 -08:00
result.rs remove unused mut qualifiers 2015-02-02 13:40:18 -05:00
simd.rs s/Show/Debug/g 2015-01-29 07:49:02 -05:00
slice.rs make IndexMut a super trait over Index 2015-02-06 21:11:59 -05:00
tuple.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
ty.rs