@@ -1410,9 +1410,9 @@ impl<T, S, A> BitOr<&HashSet<T, S, A>> for &HashSet<T, S, A>
1410
1410
where
1411
1411
T : Eq + Hash + Clone ,
1412
1412
S : BuildHasher + Default ,
1413
- A : Allocator ,
1413
+ A : Allocator + Default ,
1414
1414
{
1415
- type Output = HashSet < T , S > ;
1415
+ type Output = HashSet < T , S , A > ;
1416
1416
1417
1417
/// Returns the union of `self` and `rhs` as a new `HashSet<T, S>`.
1418
1418
///
@@ -1434,7 +1434,7 @@ where
1434
1434
/// }
1435
1435
/// assert_eq!(i, expected.len());
1436
1436
/// ```
1437
- fn bitor ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S > {
1437
+ fn bitor ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S , A > {
1438
1438
self . union ( rhs) . cloned ( ) . collect ( )
1439
1439
}
1440
1440
}
@@ -1443,9 +1443,9 @@ impl<T, S, A> BitAnd<&HashSet<T, S, A>> for &HashSet<T, S, A>
1443
1443
where
1444
1444
T : Eq + Hash + Clone ,
1445
1445
S : BuildHasher + Default ,
1446
- A : Allocator ,
1446
+ A : Allocator + Default ,
1447
1447
{
1448
- type Output = HashSet < T , S > ;
1448
+ type Output = HashSet < T , S , A > ;
1449
1449
1450
1450
/// Returns the intersection of `self` and `rhs` as a new `HashSet<T, S>`.
1451
1451
///
@@ -1467,7 +1467,7 @@ where
1467
1467
/// }
1468
1468
/// assert_eq!(i, expected.len());
1469
1469
/// ```
1470
- fn bitand ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S > {
1470
+ fn bitand ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S , A > {
1471
1471
self . intersection ( rhs) . cloned ( ) . collect ( )
1472
1472
}
1473
1473
}
@@ -1476,9 +1476,9 @@ impl<T, S, A> BitXor<&HashSet<T, S, A>> for &HashSet<T, S, A>
1476
1476
where
1477
1477
T : Eq + Hash + Clone ,
1478
1478
S : BuildHasher + Default ,
1479
- A : Allocator ,
1479
+ A : Allocator + Default ,
1480
1480
{
1481
- type Output = HashSet < T , S > ;
1481
+ type Output = HashSet < T , S , A > ;
1482
1482
1483
1483
/// Returns the symmetric difference of `self` and `rhs` as a new `HashSet<T, S>`.
1484
1484
///
@@ -1500,7 +1500,7 @@ where
1500
1500
/// }
1501
1501
/// assert_eq!(i, expected.len());
1502
1502
/// ```
1503
- fn bitxor ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S > {
1503
+ fn bitxor ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S , A > {
1504
1504
self . symmetric_difference ( rhs) . cloned ( ) . collect ( )
1505
1505
}
1506
1506
}
@@ -1509,9 +1509,9 @@ impl<T, S, A> Sub<&HashSet<T, S, A>> for &HashSet<T, S, A>
1509
1509
where
1510
1510
T : Eq + Hash + Clone ,
1511
1511
S : BuildHasher + Default ,
1512
- A : Allocator ,
1512
+ A : Allocator + Default ,
1513
1513
{
1514
- type Output = HashSet < T , S > ;
1514
+ type Output = HashSet < T , S , A > ;
1515
1515
1516
1516
/// Returns the difference of `self` and `rhs` as a new `HashSet<T, S>`.
1517
1517
///
@@ -1533,7 +1533,7 @@ where
1533
1533
/// }
1534
1534
/// assert_eq!(i, expected.len());
1535
1535
/// ```
1536
- fn sub ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S > {
1536
+ fn sub ( self , rhs : & HashSet < T , S , A > ) -> HashSet < T , S , A > {
1537
1537
self . difference ( rhs) . cloned ( ) . collect ( )
1538
1538
}
1539
1539
}
0 commit comments