diff options
| author | Martin Habovstiak <martin.habovstiak@gmail.com> | 2019-12-24 16:08:30 +0100 |
|---|---|---|
| committer | Martin Habovstiak <martin.habovstiak@gmail.com> | 2019-12-26 20:18:31 +0100 |
| commit | 2c796ee77c17a1af59a4bd311f2f4d8dd7332140 (patch) | |
| tree | d88bed8a1b9be30059c3d761da30efcdecb49d36 /src/test/debuginfo/enum-thinlto.rs | |
| parent | ed33453a37d602f34cc40c205f9b9b8a8aff88b5 (diff) | |
| download | rust-2c796ee77c17a1af59a4bd311f2f4d8dd7332140.tar.gz rust-2c796ee77c17a1af59a4bd311f2f4d8dd7332140.zip | |
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>>`.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
