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-01 18:53:47 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-01 18:58:14 -0800
commitdeed093a38243ced1f52927ebf7511c099a3bf36 (patch)
tree0e094bb05ec36036c344b0cb1135b165b2037166 /src/libstd/sys/unix/stack_overflow.rs
parentca4b9674c26c1de07a2042cb68e6a062d7184cef (diff)
downloadrust-deed093a38243ced1f52927ebf7511c099a3bf36.tar.gz
rust-deed093a38243ced1f52927ebf7511c099a3bf36.zip
std: Deprecate RefCell::{try_borrow, try_borrow_mut}
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