diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-15 12:01:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 12:01:03 +0200 |
| commit | 89eb74dcac7d92d215e6fe821a2b8b187cb02292 (patch) | |
| tree | 64dcce4de3a86b741ec4cc2d32ca62c2986f2623 /src/rustllvm/PassWrapper.cpp | |
| parent | f9c8a67593abd24ee7f6ccd23becbffd97d21379 (diff) | |
| parent | 8b2092803e71180cd352f42041bf1725dc4ad1f6 (diff) | |
| download | rust-89eb74dcac7d92d215e6fe821a2b8b187cb02292.tar.gz rust-89eb74dcac7d92d215e6fe821a2b8b187cb02292.zip | |
Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay
Stabilize Option::zip
This PR stabilizes the following API:
```rust
impl<T> Option<T> {
pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>;
}
```
This API has real world usage as seen in <https://grep.app/search?q=-%3E%20Option%3C%5C%28T%2C%5Cs%3FU%5C%29%3E®exp=true&filter[lang][0]=Rust>.
The `zip_with` method is left unstably as this API is kinda niche
and it hasn't received much usage in Rust repositories on GitHub.
cc #70086
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
