Uh oh!
There was an error while loading. Please reload this page.
Stabilize Once::is_completed - #68945
Conversation
rust-highfive
commented
Feb 8, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
LukasKalbertodt
left a comment
There was a problem hiding this comment.
The changes look good to me.
@rfcbot fcp merge (@rust-lang/libs can someone do this for me? I am not allowed to)
What is stabilized here?std::sync::Once::is_completed:
pubfnis_completed(&self) -> boolImplemented 1.5 years ago. The tracking issue did not bring up any concerns, so I think this is a pretty straight forward addition and I don't see why it shouldn't be stabilized.
Mark-Simulacrum
commented
Feb 8, 2020
The PR originally implementing this also mentioned that doing anything meaningful when the method returns false is likely wrong; do we want to add that to the docs prior to stabilization? |
mjbshaw
commented
Feb 8, 2020
@Mark-SimulacrumI incorporated @nagisa's wording in an attempt to make that clearer. I'm hoping the updated verbiage is sufficient. I'm reluctant to explicitly say "don't do anything meaningful if this returns false" because I think that can be easily misunderstood to mean that the |
Mark-Simulacrum
commented
Feb 8, 2020
Yes that seems better. |
Amanieu
commented
Feb 9, 2020
@rfcbot fcp merge |
Team member @Amanieu 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 comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Feb 9, 2020
🔔 This is now entering its final comment period, as per the review above. 🔔 |
rfcbot
commented
Feb 19, 2020
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. |
LukasKalbertodt
commented
Feb 20, 2020
@bors r+ |
bors
commented
Feb 20, 2020
📌 Commit 348278a has been approved by |
…albertodt Stabilize Once::is_completed Closesrust-lang#54890 This function has been around for some time. I haven't seen anyone raise any objections to it. I've personally found it useful myself. It would be nice to finally stabilize it and
Rollup of 5 pull requests Successful merges: - #68705 (Add LinkedList::remove()) - #68945 (Stabilize Once::is_completed) - #68978 (Make integer exponentiation methods unstably const) - #69266 (Fix race condition when allocating source files in SourceMap) - #69287 (Clean up E0317 explanation) Failed merges: r? @ghost
jplatte
commented
Mar 12, 2020
This PR has the GitHub milestone 1.43 but the stabilization attribute says 1.44.0. Which one is correct? |
…e-since, r=Centril Fix "since" field for `Once::is_complete`'s `#[stable]` attribute It was accidentally merged with the wrong version in rust-lang#68945. Thanks @jplatte for noticing. This also needs to be beta backported.
Closes#54890
This function has been around for some time. I haven't seen anyone raise any objections to it. I've personally found it useful myself. It would be nice to finally stabilize it and