From 565b336d144f26af1e634ec49140c92f8fe4b55c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 8 Sep 2024 23:04:16 +0200 Subject: [PATCH] move Option::unwrap_unchecked into const_option feature gate --- core/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/option.rs b/core/src/option.rs index 212e4f0215463..3634c61e0ba2a 100644 --- a/core/src/option.rs +++ b/core/src/option.rs @@ -1065,7 +1065,7 @@ impl Option { #[inline] #[track_caller] #[stable(feature = "option_result_unwrap_unchecked", since = "1.58.0")] - #[rustc_const_unstable(feature = "const_option_ext", issue = "91930")] + #[rustc_const_unstable(feature = "const_option", issue = "67441")] pub const unsafe fn unwrap_unchecked(self) -> T { match self { Some(val) => val,