@@ -1319,56 +1319,39 @@ impl Clone for Box<str> {
1319
1319
}
1320
1320
1321
1321
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1322
- impl < T , A1 , A2 > PartialEq < Box < T , A2 > > for Box < T , A1 >
1323
- where
1324
- T : ?Sized + PartialEq ,
1325
- A1 : Allocator ,
1326
- A2 : Allocator ,
1327
- {
1322
+ impl < T : ?Sized + PartialEq , A : Allocator > PartialEq for Box < T , A > {
1328
1323
#[ inline]
1329
- fn eq ( & self , other : & Box < T , A2 > ) -> bool {
1324
+ fn eq ( & self , other : & Self ) -> bool {
1330
1325
PartialEq :: eq ( & * * self , & * * other)
1331
1326
}
1332
-
1333
1327
#[ inline]
1334
- fn ne ( & self , other : & Box < T , A2 > ) -> bool {
1328
+ fn ne ( & self , other : & Self ) -> bool {
1335
1329
PartialEq :: ne ( & * * self , & * * other)
1336
1330
}
1337
1331
}
1338
-
1339
1332
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1340
- impl < T , A1 , A2 > PartialOrd < Box < T , A2 > > for Box < T , A1 >
1341
- where
1342
- T : ?Sized + PartialOrd ,
1343
- A1 : Allocator ,
1344
- A2 : Allocator ,
1345
- {
1333
+ impl < T : ?Sized + PartialOrd , A : Allocator > PartialOrd for Box < T , A > {
1346
1334
#[ inline]
1347
- fn partial_cmp ( & self , other : & Box < T , A2 > ) -> Option < Ordering > {
1335
+ fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
1348
1336
PartialOrd :: partial_cmp ( & * * self , & * * other)
1349
1337
}
1350
-
1351
1338
#[ inline]
1352
- fn lt ( & self , other : & Box < T , A2 > ) -> bool {
1339
+ fn lt ( & self , other : & Self ) -> bool {
1353
1340
PartialOrd :: lt ( & * * self , & * * other)
1354
1341
}
1355
-
1356
1342
#[ inline]
1357
- fn le ( & self , other : & Box < T , A2 > ) -> bool {
1343
+ fn le ( & self , other : & Self ) -> bool {
1358
1344
PartialOrd :: le ( & * * self , & * * other)
1359
1345
}
1360
-
1361
1346
#[ inline]
1362
- fn ge ( & self , other : & Box < T , A2 > ) -> bool {
1347
+ fn ge ( & self , other : & Self ) -> bool {
1363
1348
PartialOrd :: ge ( & * * self , & * * other)
1364
1349
}
1365
-
1366
1350
#[ inline]
1367
- fn gt ( & self , other : & Box < T , A2 > ) -> bool {
1351
+ fn gt ( & self , other : & Self ) -> bool {
1368
1352
PartialOrd :: gt ( & * * self , & * * other)
1369
1353
}
1370
1354
}
1371
-
1372
1355
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1373
1356
impl < T : ?Sized + Ord , A : Allocator > Ord for Box < T , A > {
1374
1357
#[ inline]
0 commit comments