Files
rust/library/core/tests
bors cdbbce0a9e 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:
![option-result-unstable](https://user-images.githubusercontent.com/42493/219127961-13cb559e-6ee8-4449-8dc9-d28d07270ad5.png)
2023-03-28 23:20:30 +00:00
..
2022-11-08 17:39:40 +01:00
2023-02-26 13:50:08 +01:00
2023-01-21 22:06:42 -05:00
…
2022-10-08 11:48:53 +00:00
…
2022-12-28 09:18:43 -05:00
…
…
…
…
…
…
…
2022-10-29 09:56:20 +01:00
…
2022-12-28 09:18:43 -05:00
…
2022-11-06 17:21:21 -05:00
…
…
…
…
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2023-01-07 11:05:33 -07:00
…
…