rust/src/libcoretest
Alex Crichton 87eb67f4f0 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.
2015-02-02 11:01:23 -08:00
..
fmt std: Rename Writer::write to Writer::write_all 2015-01-26 16:01:58 -08:00
hash for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
num rollup merge of #21631: tbu-/isize_police 2015-01-30 13:27:02 -08:00
any.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
atomic.rs Rename AtomicInt and AtomicUint 2015-01-11 11:47:44 -08:00
cell.rs std: Deprecate RefCell::{try_borrow, try_borrow_mut} 2015-02-01 18:58:14 -08:00
char.rs cleanup: &foo[0..a] -> &foo[..a] 2015-01-12 17:59:37 -05:00
clone.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
cmp.rs for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
finally.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
intrinsics.rs std: Stabilize TypeId and tweak BoxAny 2015-01-18 18:29:22 -08:00
iter.rs Kill more isizes 2015-01-31 17:40:40 +01:00
lib.rs Test fixes and rebase conflicts 2015-01-30 14:53:34 -08:00
mem.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
nonzero.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
ops.rs Change from core::ops::RangeFull to std::ops 2015-01-30 12:01:08 +13:00
option.rs Kill more isizes 2015-01-31 17:40:40 +01:00
ptr.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
result.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
slice.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00
str.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
tuple.rs Remove all i suffixes 2015-01-30 04:38:54 +01:00