diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-03-14 12:54:34 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-03-14 12:54:34 +0100 |
| commit | 8dc0ae24bcafeb52259ae20fcad29185acf31fcc (patch) | |
| tree | 46ad0aa8536452498ba0510b89a8af16ddc267b7 /src | |
| parent | f293f70dd848ae2371b6fad2eb9f4081e920da88 (diff) | |
| download | rust-8dc0ae24bcafeb52259ae20fcad29185acf31fcc.tar.gz rust-8dc0ae24bcafeb52259ae20fcad29185acf31fcc.zip | |
Remove Option::{unwrap_none, expect_none}.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/rfc-2091-track-caller/std-panic-locations.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/std-panic-locations.rs b/src/test/ui/rfc-2091-track-caller/std-panic-locations.rs index 84b7c6701e5..f0850d5c1f1 100644 --- a/src/test/ui/rfc-2091-track-caller/std-panic-locations.rs +++ b/src/test/ui/rfc-2091-track-caller/std-panic-locations.rs @@ -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("")); |
