mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
Rollup merge of #130880 - RalfJung:const-hack, r=scottmcm
add missing FIXME(const-hack) r? ```@scottmcm```
This commit is contained in:
commit
3d4d45f87b
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user