rust/library/core/tests
bors 19ecce332e Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay
Stabilize `Result::as_deref` and `as_deref_mut`

FCP completed in https://github.com/rust-lang/rust/issues/50264#issuecomment-645681400.

This PR stabilizes two new APIs for `std::result::Result`:
```rust
fn as_deref(&self) -> Result<&T::Target, &E> where T: Deref;
fn as_deref_mut(&mut self) -> Result<&mut T::Target, &mut E> where T: DerefMut;
```

This PR also removes two rarely used unstable APIs from `Result`:
```rust
fn as_deref_err(&self) -> Result<&T, &E::Target> where E: Deref;
fn as_deref_mut_err(&mut self) -> Result<&mut T, &mut E::Target> where E: DerefMut;
```

Closes #50264
2020-08-02 23:55:12 +00:00
..
fmt mv std libs to library/ 2020-07-27 19:51:13 -05:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
num also reduce some libcore test iteration counts 2020-07-31 11:56:08 +02:00
alloc.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
array.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ascii.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
atomic.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cell.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
char.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
clone.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cmp.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
iter.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lazy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay 2020-08-02 23:55:12 +00:00
manually_drop.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
mem.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
nonzero.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ops.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
option.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pattern.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
result.rs Update tests 2020-07-31 02:44:29 +00:00
slice.rs Rollup merge of #74974 - RalfJung:miri-tests, r=Mark-Simulacrum 2020-08-03 01:05:20 +09:00
str_lossy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
str.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
time.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00