mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
add missing FIXME(const-hack)
This commit is contained in:
@@ -155,7 +155,7 @@ pub const fn mask(self) -> usize {
|
||||
!(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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user