Skip to content

Commit

Permalink
add missing FIXME(const-hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 26, 2024
1 parent b9ef35a commit f0660de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/ptr/alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Alignment {
!(unsafe { self.as_usize().unchecked_sub(1) })
}

// Remove me once `Ord::max` is usable in const
// FIXME(const-hack) Remove me once `Ord::max` is usable in const
pub(crate) const fn max(a: Self, b: Self) -> Self {
if a.as_usize() > b.as_usize() { a } else { b }
}
Expand Down

0 comments on commit f0660de

Please sign in to comment.