diff options
| author | Ralf Jung <post@ralfj.de> | 2024-09-26 15:42:37 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-26 15:42:37 +0200 |
| commit | ef87a7f663826b67cf47e147546ada7e1d081c46 (patch) | |
| tree | fa6fa77e982a24453bcddb0d4ce5566aa031029f | |
| parent | b5117538e934f81e39eb9c326fdcc6574d144cb7 (diff) | |
| download | rust-ef87a7f663826b67cf47e147546ada7e1d081c46.tar.gz rust-ef87a7f663826b67cf47e147546ada7e1d081c46.zip | |
add missing FIXME(const-hack)
| -rw-r--r-- | library/core/src/ptr/alignment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/alignment.rs b/library/core/src/ptr/alignment.rs index ceb5906d226..50706fca5b0 100644 --- a/library/core/src/ptr/alignment.rs +++ b/library/core/src/ptr/alignment.rs @@ -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 } } |
