Skip to content

Commit

Permalink
Rollup merge of rust-lang#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
matthiaskrgr authored Sep 26, 2024
2 parents 3965472 + ef87a7f commit 25b93a1
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 25b93a1

Please sign in to comment.