Skip to content

Commit

Permalink
Rollup merge of #130880 - RalfJung:const-hack, r=scottmcm
Browse files Browse the repository at this point in the history
add missing FIXME(const-hack)

r? ```@scottmcm```
  • Loading branch information
GuillaumeGomez authored Sep 26, 2024
2 parents ed902a8 + ef87a7f commit 3d4d45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/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 3d4d45f

Please sign in to comment.