diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-15 11:55:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-15 11:55:46 +0200 |
| commit | e267534b072260a0f61c1ef5c492ca45d9630509 (patch) | |
| tree | a6a7a12efdad82200983049fcabb6674fe8bd207 | |
| parent | 011289c9d4806b4c003d27dd92c4264faae0074b (diff) | |
| parent | 7ec01e453c8edead75822574433b6e6fe6ad7ca0 (diff) | |
| download | rust-e267534b072260a0f61c1ef5c492ca45d9630509.tar.gz rust-e267534b072260a0f61c1ef5c492ca45d9630509.zip | |
Rollup merge of #130118 - RalfJung:unwrap_unchecked, r=Noratrieb
move Option::unwrap_unchecked into const_option feature gate That's where `unwrap` and `expect` are so IMO it makes more sense to group them together. Part of #91930, #67441
| -rw-r--r-- | library/core/src/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index da2cb3a2b78..265f056dc87 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1067,7 +1067,7 @@ impl<T> Option<T> { #[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, |
