Add stability for alignment
This commit is contained in:
parent
9f4b4e46a3
commit
414e84a2f7
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue