diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-02 11:01:23 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-02 11:01:23 -0800 |
| commit | 87eb67f4f0cc25113d45e35250af1e9642f77bff (patch) | |
| tree | 26757595c10f95223ec49752e18cf55b928e09e5 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 0a10e32a5e2c5e92e5f6df4718346a230cd49e97 (diff) | |
| parent | deed093a38243ced1f52927ebf7511c099a3bf36 (diff) | |
| download | rust-87eb67f4f0cc25113d45e35250af1e9642f77bff.tar.gz rust-87eb67f4f0cc25113d45e35250af1e9642f77bff.zip | |
rollup merge of #21854: alexcrichton/try-borrow
The existence of these two functions is at odds with our current [error conventions][conventions] which recommend that panicking and `Result`-like variants should not be provided together. [conventions]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md#do-not-provide-both-result-and-fail-variants This commit adds a new `borrow_state` function returning a `BorrowState` enum to `RefCell` which serves as a replacemnt for the `try_borrow` and `try_borrow_mut` functions.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
