-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for Duration
saturating operations
#76416
Comments
Just needed Also, unresloved questions seem to be from another tracking issue? |
@rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
I am very happy to see this stabilized. One thing I wanted to discuss is the documentation: it currently mentions two associated constants:
But both are currently unstable. Should they be stabilized at the same time? Or should the documentation updated? It seems a bit weird that the documentation for stable methods is mentioning unstable features and therefore the code examples cannot be executed and verified on stable. This is really a newbie question, I don't know what is the correct approach here. I am pretty sure such circumstances have happened before? Also, once that question is resolved, I would be very glad to do the stabilization PR. It's my first tracking issue and it would kind of be a personal accomplishment 👍 |
Feel free to make that PR without waiting for |
…rating-ops, r=m-ou-se Stabilize feature `duration_saturating_ops` FCP here: rust-lang#76416 (comment) Closes rust-lang#76416 r? `@m-ou-se`
…ting-ops, r=m-ou-se Stabilize feature `duration_saturating_ops` FCP here: rust-lang#76416 (comment) Closes rust-lang#76416 r? `@m-ou-se`
…ax, r=m-ou-se Stabilize Duration::MAX Following the suggested direction from rust-lang#76416 (comment), this PR proposes that `Duration::MAX` should have been part of the `duration_saturating_ops` feature flag all along, having been 0. heavily referenced by that feature flag 1. an odd duck next to most of `duration_constants`, as I expressed in rust-lang#57391 (comment) 2. introduced in rust-lang#76114 which added `duration_saturating_ops` and accordingly should be folded into `duration_saturating_ops` and therefore stabilized. r? `@m-ou-se`
This is a tracking issue for
Duration
saturating operations.The feature gate for the issue is
#![feature(duration_saturating_ops)]
.Steps
Duration
#76114duration_saturating_ops
#84090Unresolved Questions
Do we want associated constants similar to the ones that already exist for integer types or associated methods? (ie:Duration::MIN
orDuration::min()
?ShouldDuration::MIN
be replaced byDuration::zero()
? They are currently equivalent but one can image a future whereDuration
is able to hold negative duration and thus makingMIN
different fromzero()
.The text was updated successfully, but these errors were encountered: