Skip to content

Commit d4783e3

Browse files
committed
Remove PartialEq::ne for UniqueArc
1 parent e7dc65f commit d4783e3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

library/alloc/src/sync.rs

-19
Original file line numberDiff line numberDiff line change
@@ -4166,25 +4166,6 @@ impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for UniqueArc<T, A> {
41664166
fn eq(&self, other: &Self) -> bool {
41674167
PartialEq::eq(&**self, &**other)
41684168
}
4169-
4170-
/// Inequality for two `UniqueArc`s.
4171-
///
4172-
/// Two `UniqueArc`s are not equal if their inner values are not equal.
4173-
///
4174-
/// # Examples
4175-
///
4176-
/// ```
4177-
/// #![feature(unique_rc_arc)]
4178-
/// use std::sync::UniqueArc;
4179-
///
4180-
/// let five = UniqueArc::new(5);
4181-
///
4182-
/// assert!(five != UniqueArc::new(6));
4183-
/// ```
4184-
#[inline]
4185-
fn ne(&self, other: &Self) -> bool {
4186-
PartialEq::ne(&**self, &**other)
4187-
}
41884169
}
41894170

41904171
#[unstable(feature = "unique_rc_arc", issue = "112566")]

0 commit comments

Comments
 (0)