Skip to content

Commit

Permalink
Remove a now-obviated debug_assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Feb 8, 2024
1 parent 61118ff commit b0ea682
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,6 @@ impl<T> Option<T> {
#[stable(feature = "option_result_unwrap_unchecked", since = "1.58.0")]
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
pub const unsafe fn unwrap_unchecked(self) -> T {
debug_assert!(self.is_some());
match self {
Some(val) => val,
// SAFETY: the safety contract must be upheld by the caller.
Expand Down

0 comments on commit b0ea682

Please sign in to comment.