diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-29 16:48:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-29 16:48:21 +0200 |
| commit | 8212a1c7dcd4172c0cb8345f40191566abc0afb3 (patch) | |
| tree | 3e5c935cb870c7567eceb86fc725dbcf0a81c54b /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 8ab82b87af4f20b6c0a481e050517103d50263e9 (diff) | |
| parent | 6fe7867ea6f5f912346d75459499fca88f6ae563 (diff) | |
| download | rust-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
