Skip to content

Commit c207dc9

Browse files
committed
Add stability for alignment
1 parent 1c56a53 commit c207dc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/ptr/alignment.rs

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ impl From<Alignment> for usize {
168168
}
169169

170170
#[rustc_const_unstable(feature = "const_alloc_layout", issue = "67521")]
171+
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
171172
impl const cmp::PartialEq for Alignment {
172173
#[inline]
173174
fn eq(&self, other: &Self) -> bool {
@@ -176,6 +177,7 @@ impl const cmp::PartialEq for Alignment {
176177
}
177178

178179
#[rustc_const_unstable(feature = "const_alloc_layout", issue = "67521")]
180+
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
179181
impl const cmp::Ord for Alignment {
180182
#[inline]
181183
fn cmp(&self, other: &Self) -> cmp::Ordering {

0 commit comments

Comments
 (0)