diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-12-28 00:36:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-28 00:36:01 +0100 |
| commit | 4b919665019427a2f09a70de3023344fac67aae5 (patch) | |
| tree | 96350fb03cd43c4f33e695dbbd0463aa04dec2a4 /src/test/debuginfo/enum-thinlto.rs | |
| parent | a076464c4a7e7e41be221ff3e05dbf22798be2bc (diff) | |
| parent | 2c796ee77c17a1af59a4bd311f2f4d8dd7332140 (diff) | |
| download | rust-4b919665019427a2f09a70de3023344fac67aae5.tar.gz rust-4b919665019427a2f09a70de3023344fac67aae5.zip | |
Rollup merge of #67588 - Kixunil:nonnull-slice-iter, r=rkruppe
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>>`. Closes #67228
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
