]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #62596 - cuviper:expect_none, r=rkruppe
authorbors <bors@rust-lang.org>
Wed, 17 Jul 2019 08:29:02 +0000 (08:29 +0000)
committerbors <bors@rust-lang.org>
Wed, 17 Jul 2019 08:29:02 +0000 (08:29 +0000)
commitd56128d2919132aceaf74cc3c68a4554f5445fce
treedb1797e894005e2c7c911c0c00151de2b9678a14
parentbf16480f9cf124630f4a4ffc6d8a57b72fbd5ce9
parent74c8d984dbd73c070f9c9a5ac991cc271ff05164
Auto merge of #62596 - cuviper:expect_none, r=rkruppe

Add Option::expect_none(msg) and unwrap_none()

These are `Option` analogues to `Result::expect_err` and `unwrap_err`.
src/libcore/option.rs
src/libcore/result.rs