Skip to content
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 RefCell::{try_borrow, try_borrow_mut} #35070

Closed
alexcrichton opened this issue Jul 27, 2016 · 8 comments
Closed

Tracking issue for RefCell::{try_borrow, try_borrow_mut} #35070

alexcrichton opened this issue Jul 27, 2016 · 8 comments
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@alexcrichton
Copy link
Member

Tracking issue for rust-lang/rfcs#1660

Stabilization of these functions should be contingent on confirming the conventions around naming of this style of methods.

Another idea I've had recently is we perhaps want to connect the lifetime of the RefCell to the error type as well, but we can always do that later as well.

@alexcrichton alexcrichton added B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jul 27, 2016
@alexcrichton alexcrichton added B-unstable Blocker: Implemented in the nightly compiler and unstable. and removed B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. labels Aug 9, 2016
bors added a commit that referenced this issue Aug 9, 2016
Implement `RefCell::{try_borrow, try_borrow_mut}`

CC #35070

r? @alexcrichton
@SimonSapin
Copy link
Contributor

The error types do have a lifetime parameter now. Can we go to FCP and bikeshed the naming in that period? (I think the naming is fine.)

@aturon
Copy link
Member

aturon commented Aug 30, 2016

This nomination didn't come in before our meeting yesterday, but I'd be fine adding it.

Proposing FCP with inclination to stabilize.

Libs team, please signal your agreement below or leave comments with concerns:

@brson
Copy link
Contributor

brson commented Aug 31, 2016

It looks like I'm being asked to sign off on stabilization before the design is complete ("Can we go to FCP and bikeshed the naming in that period?"). I don't agree to that.

@SimonSapin
Copy link
Contributor

@brson As I see it, the design is complete and there was just some mild reservation about the naming in the RFC discussion. It’s been a month since this was implemented and merged, and two months since the RFC was first submitted. I don’t think new information is likely to appear if we wait more.

@brson
Copy link
Contributor

brson commented Sep 2, 2016

@SimonSapin understood, but I think this is a bug in the new process. Me checking that box is my final decision as a member of the libs team, and the design is not final.

@brson
Copy link
Contributor

brson commented Sep 2, 2016

Per discussion with @aturon I've checked the box and we'll discuss the process mechanics later.

@alexcrichton alexcrichton added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed I-nominated labels Sep 12, 2016
@alexcrichton
Copy link
Member Author

🔔 The library team has decided to move this into final comment period for stabilization 🔔

@alexcrichton
Copy link
Member Author

The libs team discussed this during triage yesterday and the conclusion was to stabilize

We also figured that the type/lifetime parameter on the errors returned aren't worth it, so they'll get removed.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Oct 3, 2016
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:

Stabilized

* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
* `DefaultHasher`
* `DefaultHasher::new`
* `DefaultHasher::default`

Deprecated

* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
  module

Closes rust-lang#28147
Closes rust-lang#34767
Closes rust-lang#35057
Closes rust-lang#35070
bors added a commit that referenced this issue Oct 3, 2016
std: Stabilize and deprecate APIs for 1.13

This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:

Stabilized

* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`

Deprecated

* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
  module

Closes #28147
Closes #34767
Closes #35057
Closes #35070
alexcrichton added a commit to alexcrichton/rust that referenced this issue Oct 10, 2016
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:

Stabilized

* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
* `DefaultHasher`
* `DefaultHasher::new`
* `DefaultHasher::default`

Deprecated

* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
  module

Closes rust-lang#28147
Closes rust-lang#34767
Closes rust-lang#35057
Closes rust-lang#35070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants