diff options
| author | Rune Tynan <runetynan@gmail.com> | 2022-10-17 12:27:27 -0400 |
|---|---|---|
| committer | Rune Tynan <runetynan@gmail.com> | 2022-11-20 15:01:21 -0500 |
| commit | 414e84a2f742b25f10edcfbf78be6779b4ea842b (patch) | |
| tree | d69622235da2343fb0eae4f9ab40124cd2f4534e /library/core/src/ptr/alignment.rs | |
| parent | 9f4b4e46a3ba5602916e96f8a4186eaf63d91682 (diff) | |
| download | rust-414e84a2f742b25f10edcfbf78be6779b4ea842b.tar.gz rust-414e84a2f742b25f10edcfbf78be6779b4ea842b.zip | |
Add stability for alignment
Diffstat (limited to 'library/core/src/ptr/alignment.rs')
| -rw-r--r-- | library/core/src/ptr/alignment.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/ptr/alignment.rs b/library/core/src/ptr/alignment.rs index 61eb23c7bca..fd3e4326ac3 100644 --- a/library/core/src/ptr/alignment.rs +++ b/library/core/src/ptr/alignment.rs @@ -168,6 +168,7 @@ impl From<Alignment> for usize { } #[rustc_const_unstable(feature = "const_alloc_layout", issue = "67521")] +#[unstable(feature = "ptr_alignment_type", issue = "102070")] impl const cmp::PartialEq for Alignment { #[inline] fn eq(&self, other: &Self) -> bool { @@ -176,6 +177,7 @@ impl const cmp::PartialEq for Alignment { } #[rustc_const_unstable(feature = "const_alloc_layout", issue = "67521")] +#[unstable(feature = "ptr_alignment_type", issue = "102070")] impl const cmp::Ord for Alignment { #[inline] fn cmp(&self, other: &Self) -> cmp::Ordering { |
