diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-09-27 00:43:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-27 00:43:35 +0200 |
| commit | 3d4d45f87b8707ea7a98827f64fad4ab30f0c2ba (patch) | |
| tree | de999f8d22123ec69b877c85d2884da86defa6b7 | |
| parent | ed902a8a5813d161faf7e123e871f4c75ba24389 (diff) | |
| parent | ef87a7f663826b67cf47e147546ada7e1d081c46 (diff) | |
| download | rust-3d4d45f87b8707ea7a98827f64fad4ab30f0c2ba.tar.gz rust-3d4d45f87b8707ea7a98827f64fad4ab30f0c2ba.zip | |
Rollup merge of #130880 - RalfJung:const-hack, r=scottmcm
add missing FIXME(const-hack) r? ```@scottmcm```
| -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 } } |
