Rollup merge of #130118 - RalfJung:unwrap_unchecked, r=Noratrieb · qinheping/verify-rust-std@524402a (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 524402a
Rollup merge of rust-lang#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 rust-lang#91930, rust-lang#67441
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1067,7 +1067,7 @@ impl Option { | ||
1067 | 1067 | #[inline] |
1068 | 1068 | #[track_caller] |
1069 | 1069 | #[stable(feature = "option_result_unwrap_unchecked", since = "1.58.0")] |
1070 | -#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")] | |
1070 | +#[rustc_const_unstable(feature = "const_option", issue = "67441")] | |
1071 | 1071 | pub const unsafe fn unwrap_unchecked(self) -> T { |
1072 | 1072 | match self { |
1073 | 1073 | Some(val) => val, |