about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-27 04:43:14 +0900
committerGitHub <noreply@github.com>2021-01-27 04:43:14 +0900
commitfe6b3a97921eb59502dfca13505e3ef68f5289bb (patch)
tree00c9f09282ed445cd97b73d099bec67b846126b8 /library/std/src/sys/unix/stack_overflow.rs
parentf85fd8196827c191dfe9fa46ad7e3a8f38a7a894 (diff)
parent01250fcec6c77552b0f7aac11ed833412294ccba (diff)
downloadrust-fe6b3a97921eb59502dfca13505e3ef68f5289bb.tar.gz
rust-fe6b3a97921eb59502dfca13505e3ef68f5289bb.zip
Rollup merge of #80876 - ojeda:option-result-unwrap_unchecked, r=m-ou-se
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.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions