-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Constify most non-trait Duration
methods as described in #72440
#72481
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
Cc @rust-lang/wg-const-eval |
Marking as const-hack so we remember to go back to the original code once the relevant functions become const fn |
r=me with Ralf's comment resolved to either |
b3cfde2
to
7527409
Compare
Expanding the methods covered by the gate in a follow-up PR is fine. |
r? @oli-obk - re-asigning reviewer following the conversations. |
@bors r+ |
📌 Commit 7527409 has been approved by |
…i-obk Constify most non-trait `Duration` methods as described in rust-lang#72440 The remaining methods could probably be made const once rust-lang#72449 lands with support for `f<32|64>::is_finite()`.
…i-obk Constify most non-trait `Duration` methods as described in rust-lang#72440 The remaining methods could probably be made const once rust-lang#72449 lands with support for `f<32|64>::is_finite()`.
7527409
to
4a96800
Compare
r? @oli-obk |
@bors r+ |
📌 Commit 4a96800 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
The remaining methods could probably be made const once #72449 lands with support for
f<32|64>::is_finite()
.