Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upStabilize the Duration API #26818
Conversation
sfackler
added
the
T-libs
label
Jul 6, 2015
rust-highfive
assigned
aturon
Jul 6, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
Internals discussion: https://internals.rust-lang.org/t/final-comment-period-for-the-duration-api/2325 |
alexcrichton
added
the
I-needs-decision
label
Jul 6, 2015
This comment has been minimized.
This comment has been minimized.
|
I'm happy with this course of action. Could you also tag the trait implementations with the same stability tag as well? |
This comment has been minimized.
This comment has been minimized.
|
I'm likewise fine with this general direction, modulo the renamings discussion on the internals thread. Will try to weigh in there soon. |
This comment has been minimized.
This comment has been minimized.
|
I also think it's time to get this done, and don't have opinions about the fine details - seems like this type has been well-polished at this point. I'd definitely like to hear @lifthrasiir's opinions about this since rust-chrono depends on it. |
This comment has been minimized.
This comment has been minimized.
|
I have no particular objection, as Chrono has been a (relatively) happy user of the in-tree |
alexcrichton
referenced this pull request
Jul 29, 2015
Closed
Rewrite <Duration as fmt::Display>::fmt() #25481
sfackler
force-pushed the
sfackler:duration-stabilization
branch
from
3360c04
to
f785f06
Aug 4, 2015
This comment has been minimized.
This comment has been minimized.
|
I've updated the PR to rename |
sfackler
force-pushed the
sfackler:duration-stabilization
branch
from
f785f06
to
0ba159c
Aug 4, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Can you keep deprecated versions of the old method names? We do this even for unstable APIs to ease changes in. Otherwise, I'm ready to r+ assuming everyone is on board backporting this stabilization to 1.3 (which has essentially no downside, AFAICT.) |
This comment has been minimized.
This comment has been minimized.
The downside is a deviation from our standard release process. Yes, it's a bit painful to just miss a train, but at the same time, I don't want us to get in the habit of it. |
This comment has been minimized.
This comment has been minimized.
|
I'm assuming I should leave the old versions unstable and then cut them out in a release or two? |
This comment has been minimized.
This comment has been minimized.
|
Updated |
sfackler
force-pushed the
sfackler:duration-stabilization
branch
2 times, most recently
from
5b31967
to
e28e707
Aug 7, 2015
This comment has been minimized.
This comment has been minimized.
|
Should I change the feature for the stable functionality? Tidy's complaining:
|
This comment has been minimized.
This comment has been minimized.
|
Yeah it's fine to just change the feature name of the deprecated methods to something new like |
This comment has been minimized.
This comment has been minimized.
|
FYI: we're going to discuss the backporting question in the core team meeting today. |
sfackler
force-pushed the
sfackler:duration-stabilization
branch
from
e28e707
to
9124dd9
Aug 10, 2015
This comment has been minimized.
This comment has been minimized.
|
Cool. Adjusted the feature for the old methods. |
This comment has been minimized.
This comment has been minimized.
|
We discussed this at the core team meeting and the consensus is that it's fine to backport this stabilization to 1.3 beta. In the future, we hope to avoid this by having more explicit "go/no go" subteam meetings around stabilization, sufficiently prior to the beta being cut. |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
aturon
added
beta-nominated
beta-accepted
labels
Aug 10, 2015
aturon
removed
the
I-needs-decision
label
Aug 10, 2015
This comment has been minimized.
This comment has been minimized.
|
@bors: r- (need to fix some benchmarks) |
pnkfelix
and others
added some commits
Aug 7, 2015
sfackler
force-pushed the
sfackler:duration-stabilization
branch
from
9124dd9
to
e29a62f
Aug 11, 2015
This comment has been minimized.
This comment has been minimized.
|
@bors r=aturon |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Aug 11, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors r=aturon |
This comment has been minimized.
This comment has been minimized.
|
|
sfackler commentedJul 6, 2015
This commit stabilizes the
std::timemodule and theDurationtype.Duration::spanremains unstable, and theDisplayimplementation forDurationhas been removed as it is still being reworked and all traitimplementations for stable types are de facto stable.
This is a [breaking-change] to those using
Duration'sDisplayimplementation.
I'm opening this PR as a platform for discussion - there may be some method renaming to do as part of the stabilization process.