add missing FIXME(const-hack) · qinheping/verify-rust-std@f0660de (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit f0660de

add missing FIXME(const-hack)

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ impl Alignment {
155 155 !(unsafe { self.as_usize().unchecked_sub(1) })
156 156 }
157 157
158 -// Remove me once `Ord::max` is usable in const
158 +// FIXME(const-hack) Remove me once `Ord::max` is usable in const
159 159 pub(crate) const fn max(a: Self, b: Self) -> Self {
160 160 if a.as_usize() > b.as_usize() { a } else { b }
161 161 }