Skip to content

Commit eb094ed

Browse files
committed
Remove PartialEq::ne for UniqueArc
1 parent b542a2b commit eb094ed

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
@@ -4205,25 +4205,6 @@ impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for UniqueArc<T, A> {
42054205
fn eq(&self, other: &Self) -> bool {
42064206
PartialEq::eq(&**self, &**other)
42074207
}
4208-
4209-
/// Inequality for two `UniqueArc`s.
4210-
///
4211-
/// Two `UniqueArc`s are not equal if their inner values are not equal.
4212-
///
4213-
/// # Examples
4214-
///
4215-
/// ```
4216-
/// #![feature(unique_rc_arc)]
4217-
/// use std::sync::UniqueArc;
4218-
///
4219-
/// let five = UniqueArc::new(5);
4220-
///
4221-
/// assert!(five != UniqueArc::new(6));
4222-
/// ```
4223-
#[inline]
4224-
fn ne(&self, other: &Self) -> bool {
4225-
PartialEq::ne(&**self, &**other)
4226-
}
42274208
}
42284209

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

0 commit comments

Comments
 (0)