We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61118ff commit b0ea682Copy full SHA for b0ea682
library/core/src/option.rs
@@ -1033,7 +1033,6 @@ impl<T> Option<T> {
1033
#[stable(feature = "option_result_unwrap_unchecked", since = "1.58.0")]
1034
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
1035
pub const unsafe fn unwrap_unchecked(self) -> T {
1036
- debug_assert!(self.is_some());
1037
match self {
1038
Some(val) => val,
1039
// SAFETY: the safety contract must be upheld by the caller.
0 commit comments