about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-02-07 10:29:07 -0500
committerBen Kimock <kimockb@gmail.com>2024-02-08 11:52:16 -0500
commitb0ea682a2cad2c49595c95dcb7e7608d090484f1 (patch)
tree50070df6d30785b8924e024ae5196b47327437e2
parent61118ffd04aa6d1f9ee92daae4deb28bd975d4ab (diff)
downloadrust-b0ea682a2cad2c49595c95dcb7e7608d090484f1.tar.gz
rust-b0ea682a2cad2c49595c95dcb7e7608d090484f1.zip
Remove a now-obviated debug_assert!
-rw-r--r--library/core/src/option.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index c94e7d73a2a..ab005228984 100644
--- a/library/core/src/option.rs
+++ b/library/core/src/option.rs
@@ -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.