rust/src/libcore/slice
Martin Habovstiak 2c796ee77c Use NonNull in slice::Iter and slice::IterMut.
`ptr` of `slice::Iter` and `slice::IterMut` can never be null, but this
fact wasn't exploited for layout optimizations. By changing `ptr` from
`*<mutability> T` to `NonNull<T>`, the compiler can now optimize layout
of `Option<Iter<'a, T>>`.
2019-12-26 20:18:31 +01:00
..
memchr.rs Have tidy ensure that we document all unsafe blocks in libcore 2019-11-06 11:04:42 +01:00
mod.rs Use NonNull in slice::Iter and slice::IterMut. 2019-12-26 20:18:31 +01:00
rotate.rs Improve ptr_rotate performance, tests, and benchmarks 2019-08-06 10:42:48 -05:00
sort.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00