about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-02 11:01:23 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-02 11:01:23 -0800
commit87eb67f4f0cc25113d45e35250af1e9642f77bff (patch)
tree26757595c10f95223ec49752e18cf55b928e09e5 /src/libstd/sys/unix/stack_overflow.rs
parent0a10e32a5e2c5e92e5f6df4718346a230cd49e97 (diff)
parentdeed093a38243ced1f52927ebf7511c099a3bf36 (diff)
downloadrust-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