Skip to content

Commit b0ea682

Browse files
committed
Remove a now-obviated debug_assert!
1 parent 61118ff commit b0ea682

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/option.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ impl<T> Option<T> {
10331033
#[stable(feature = "option_result_unwrap_unchecked", since = "1.58.0")]
10341034
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
10351035
pub const unsafe fn unwrap_unchecked(self) -> T {
1036-
debug_assert!(self.is_some());
10371036
match self {
10381037
Some(val) => val,
10391038
// SAFETY: the safety contract must be upheld by the caller.

0 commit comments

Comments
 (0)