rust/library/core
Miguel Ojeda 679f6f3473 Add unwrap_unchecked() methods for Option and Result
In particular:
  - `unwrap_unchecked()` for `Option`.
  - `unwrap_unchecked()` and `unwrap_err_unchecked()` for `Result`.

These complement other `*_unchecked()` methods in `core` etc.

Currently there are a couple of places it may be used inside rustc
(`LinkedList`, `BTree`). It is also easy to find other repositories
with similar functionality.

Fixes #48278.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2021-01-10 15:14:38 +01:00
..
benches Remove redundant 'static from library crates 2020-10-18 17:25:51 +02:00
src Add unwrap_unchecked() methods for Option and Result 2021-01-10 15:14:38 +01:00
tests Add unwrap_unchecked() methods for Option and Result 2021-01-10 15:14:38 +01:00
Cargo.toml