diff options
author | bors <bors@rust-lang.org> | 2023-03-28 23:20:30 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-03-28 23:20:30 +0000 |
commit | cdbbce0a9e5c839295cf9a8714798af45d541e20 (patch) | |
tree | 765dce46b33eb265e709d5415f7f7258f8d6ce3f /tests/rustdoc-js-std/parser-errors.js | |
parent | 478cbb42b730ba4739351b72ce2aa928e78e2f81 (diff) | |
parent | 3aa9f76a3a27e901e478203e00d17fe26a645c66 (diff) | |
download | rust-cdbbce0a9e5c839295cf9a8714798af45d541e20.tar.gz |
Auto merge of #108095 - soc:drop-contains, r=Amanieu
Drop unstable `Option::contains`, `Result::contains`, `Result::contains_err`
This is a proposal to drop the three functions `Option::contains`, `Result::contains` and `Result::contains_err`.
The discovery of `Option::is_some_with`/`Result::is_ok_with`/`Result::is_err_with` in https://github.com/rust-lang/rust/pull/93051 obviates the need for these methods (non-stabilization tracked in https://github.com/rust-lang/rust/issues/62358).
An additional benefit of change is that it avoids spurious error messages in IDEs, when `contains` is supplied by a third-party library:

Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions