diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2022-02-08 01:50:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-08 01:50:55 +0000 |
| commit | ee23fd2ca36e82ff7455520705566a04274d3700 (patch) | |
| tree | 7f2853fffd04100bf4c375fa48b3b37b553ddf5a /library/alloc/src/vec | |
| parent | 1bd4fdc943513e1004f498bbf289279c9784fc6f (diff) | |
| download | rust-ee23fd2ca36e82ff7455520705566a04274d3700.tar.gz rust-ee23fd2ca36e82ff7455520705566a04274d3700.zip | |
Allow comparing `Vec`s with different allocators using `==`
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/partial_eq.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/partial_eq.rs b/library/alloc/src/vec/partial_eq.rs index 50e14096105..b0cf72577a1 100644 --- a/library/alloc/src/vec/partial_eq.rs +++ b/library/alloc/src/vec/partial_eq.rs @@ -20,7 +20,7 @@ macro_rules! __impl_slice_eq1 { } } -__impl_slice_eq1! { [A: Allocator] Vec<T, A>, Vec<U, A>, #[stable(feature = "rust1", since = "1.0.0")] } +__impl_slice_eq1! { [A1: Allocator, A2: Allocator] Vec<T, A1>, Vec<U, A2>, #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &[U], #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &mut [U], #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] &[T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_ref_slice", since = "1.46.0")] } |
