Skip to content

Commit

Permalink
Unrolled build for rust-lang#130880
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130880 - RalfJung:const-hack, r=scottmcm

add missing FIXME(const-hack)

r? ```@scottmcm```
  • Loading branch information
rust-timer authored Sep 27, 2024
2 parents 2bd1e89 + ef87a7f commit db5aafc
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 db5aafc

Please sign in to comment.