Rollup merge of #130880 - RalfJung:const-hack, r=scottmcm

add missing FIXME(const-hack)

r? ```@scottmcm```
This commit is contained in:
Guillaume Gomez 2024-09-27 00:43:35 +02:00 committed by GitHub
commit 3d4d45f87b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }
}