about summary refs log tree commit diff
path: root/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-15 12:01:03 +0200
committerGitHub <noreply@github.com>2020-06-15 12:01:03 +0200
commit89eb74dcac7d92d215e6fe821a2b8b187cb02292 (patch)
tree64dcce4de3a86b741ec4cc2d32ca62c2986f2623 /src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
parentf9c8a67593abd24ee7f6ccd23becbffd97d21379 (diff)
parent8b2092803e71180cd352f42041bf1725dc4ad1f6 (diff)
downloadrust-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&regexp=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/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions