about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-06-02 19:55:06 -0600
committerGitHub <noreply@github.com>2018-06-02 19:55:06 -0600
commit4ce7ef5f5936a220c9df5c7efae669f010238e32 (patch)
tree1c064d0b99600eb77008eb3408750d7e3a9e9d64 /src/libstd/sys
parenta6ab2153f679d72ac63a5f200e721e8d4c27e2af (diff)
parent2d7cd70b1ac0dc1ce3a2602b51301dedae6a25a6 (diff)
downloadrust-4ce7ef5f5936a220c9df5c7efae669f010238e32.tar.gz
rust-4ce7ef5f5936a220c9df5c7efae669f010238e32.zip
Rollup merge of #51226 - gnzlbg:nonzero_align, r=SimonSapin
Make Layout's align a NonZeroUsize

This PR makes the `Layout`'s align field a `NonZeroUsize` since it cannot ever be zero, not even while building a `Layout`. It also contains some drive-by minor cleanups over the docs and the code, like updating the documented error types, or using the `size()` and `align()` methods instead of accessing the fields directly (the latter was required for the `NonZeroUsize` change anyways).

r? @SimonSapin

cc @Amanieu
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions