add missing FIXME(const-hack) · qinheping/verify-rust-std@f0660de (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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 | } |