about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-29 16:48:21 +0200
committerGitHub <noreply@github.com>2020-03-29 16:48:21 +0200
commit8212a1c7dcd4172c0cb8345f40191566abc0afb3 (patch)
tree3e5c935cb870c7567eceb86fc725dbcf0a81c54b /src/libstd/sys/unix/stack_overflow.rs
parent8ab82b87af4f20b6c0a481e050517103d50263e9 (diff)
parent6fe7867ea6f5f912346d75459499fca88f6ae563 (diff)
downloadrust-8212a1c7dcd4172c0cb8345f40191566abc0afb3.tar.gz
rust-8212a1c7dcd4172c0cb8345f40191566abc0afb3.zip
Rollup merge of #70140 - Nemo157:result-flatten, r=Amanieu
Add Result<Result<T, E>, E>::flatten -> Result<T, E>

This PR makes this possible (modulo type inference):

```rust
assert_eq!(Ok(6), Ok(Ok(6)).flatten());
```

Tracking issue: #70142

<sub>largely cribbed directly from <https://github.com/rust-lang/rust/pull/60256></sub>
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions