mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 12:07:31 +00:00
Update library/core/src/alloc/layout.rs
Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
parent
25b81024a5
commit
a9b0966aa5
@ -131,7 +131,7 @@ impl Layout {
|
|||||||
|
|
||||||
/// The minimum byte alignment for a memory block of this layout.
|
/// The minimum byte alignment for a memory block of this layout.
|
||||||
///
|
///
|
||||||
/// The returned alignment is guaranteed to be a non-zero power of two.
|
/// The returned alignment is guaranteed to be a power of two.
|
||||||
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
#[stable(feature = "alloc_layout", since = "1.28.0")]
|
||||||
#[rustc_const_stable(feature = "const_alloc_layout_size_align", since = "1.50.0")]
|
#[rustc_const_stable(feature = "const_alloc_layout_size_align", since = "1.50.0")]
|
||||||
#[must_use = "this returns the minimum alignment, \
|
#[must_use = "this returns the minimum alignment, \
|
||||||
|
Loading…
Reference in New Issue
Block a user