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.
Option
const PartialEq
1 parent b7c0a94 commit f5e7e93Copy full SHA for f5e7e93
library/core/src/option.rs
@@ -2243,7 +2243,8 @@ impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T> {
2243
#[stable(feature = "rust1", since = "1.0.0")]
2244
impl<T> crate::marker::StructuralPartialEq for Option<T> {}
2245
2246
-impl<T: PartialEq> PartialEq for Option<T> {
+#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
2247
+impl<T: ~const PartialEq> const PartialEq for Option<T> {
2248
#[inline]
2249
fn eq(&self, other: &Self) -> bool {
2250
// Spelling out the cases explicitly optimizes better than
0 commit comments