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 7f9b7da commit 79b70e2Copy full SHA for 79b70e2
core/src/cmp.rs
@@ -229,13 +229,15 @@ pub trait PartialEq<Rhs: ?Sized = Self> {
229
/// by `==`.
230
#[must_use]
231
#[stable(feature = "rust1", since = "1.0.0")]
232
+ #[cfg_attr(not(bootstrap), rustc_diagnostic_item = "cmp_partialeq_eq")]
233
fn eq(&self, other: &Rhs) -> bool;
234
235
/// This method tests for `!=`. The default implementation is almost always
236
/// sufficient, and should not be overridden without very good reason.
237
#[inline]
238
239
240
+ #[cfg_attr(not(bootstrap), rustc_diagnostic_item = "cmp_partialeq_ne")]
241
fn ne(&self, other: &Rhs) -> bool {
242
!self.eq(other)
243
}
0 commit comments