diff options
| author | Frank King <frankking1729@gmail.com> | 2025-03-06 22:15:58 +0800 |
|---|---|---|
| committer | Frank King <frankking1729@gmail.com> | 2025-03-22 15:14:49 +0800 |
| commit | eb094ed7b4c600de21d1ace851349c9c38298fa8 (patch) | |
| tree | 5ac0b54b5ee324b7924ba5f5e7fe8567e9e1af01 | |
| parent | b542a2bd4bbef0221a78ecbd31d4a4ea9fb22f64 (diff) | |
| download | rust-eb094ed7b4c600de21d1ace851349c9c38298fa8.tar.gz rust-eb094ed7b4c600de21d1ace851349c9c38298fa8.zip | |
Remove `PartialEq::ne` for `UniqueArc`
| -rw-r--r-- | library/alloc/src/sync.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index b883f84d68e..be581661f4c 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -4205,25 +4205,6 @@ impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for UniqueArc<T, A> { fn eq(&self, other: &Self) -> bool { PartialEq::eq(&**self, &**other) } - - /// Inequality for two `UniqueArc`s. - /// - /// Two `UniqueArc`s are not equal if their inner values are not equal. - /// - /// # Examples - /// - /// ``` - /// #![feature(unique_rc_arc)] - /// use std::sync::UniqueArc; - /// - /// let five = UniqueArc::new(5); - /// - /// assert!(five != UniqueArc::new(6)); - /// ``` - #[inline] - fn ne(&self, other: &Self) -> bool { - PartialEq::ne(&**self, &**other) - } } #[unstable(feature = "unique_rc_arc", issue = "112566")] |
