From 7ec01e453c8edead75822574433b6e6fe6ad7ca0 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 --- library/core/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 212e4f0215463..3634c61e0ba2a 100644 --- a/library/core/src/option.rs +++ b/library/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,