Remove Option::{unwrap_none, expect_none}.
This commit is contained in:
parent
f293f70dd8
commit
8dc0ae24bc
5 changed files with 10 additions and 108 deletions
|
|
@ -3,7 +3,6 @@
|
|||
// revisions: default mir-opt
|
||||
//[mir-opt] compile-flags: -Zmir-opt-level=4
|
||||
|
||||
#![feature(option_expect_none, option_unwrap_none)]
|
||||
#![allow(unconditional_panic)]
|
||||
|
||||
//! Test that panic locations for `#[track_caller]` functions in std have the correct
|
||||
|
|
@ -32,10 +31,6 @@ fn main() {
|
|||
assert_panicked(|| nope.unwrap());
|
||||
assert_panicked(|| nope.expect(""));
|
||||
|
||||
let yep: Option<()> = Some(());
|
||||
assert_panicked(|| yep.unwrap_none());
|
||||
assert_panicked(|| yep.expect_none(""));
|
||||
|
||||
let oops: Result<(), ()> = Err(());
|
||||
assert_panicked(|| oops.unwrap());
|
||||
assert_panicked(|| oops.expect(""));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue