diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2021-01-10 11:36:45 +0100 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2021-01-10 15:14:38 +0100 |
| commit | 679f6f347355726f9335fdcbf0d3b81b2e490c38 (patch) | |
| tree | 8149085e377e5ed8a6563afd2797cb2b7924577e /src/test/codegen/src-hash-algorithm | |
| parent | 7a193921a024e910262ff90bfb028074fddf20d0 (diff) | |
| download | rust-679f6f347355726f9335fdcbf0d3b81b2e490c38.tar.gz rust-679f6f347355726f9335fdcbf0d3b81b2e490c38.zip | |
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>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
