@@ -1275,21 +1275,21 @@ mod impls {
12751275 ( $( $t: ty) * ) => ( $(
12761276 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
12771277 impl PartialEq for $t {
1278- #[ inline]
1278+ #[ inline( always ) ]
12791279 fn eq( & self , other: & $t) -> bool { ( * self ) == ( * other) }
1280- #[ inline]
1280+ #[ inline( always ) ]
12811281 fn ne( & self , other: & $t) -> bool { ( * self ) != ( * other) }
12821282 }
12831283 ) * )
12841284 }
12851285
12861286 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
12871287 impl PartialEq for ( ) {
1288- #[ inline]
1288+ #[ inline( always ) ]
12891289 fn eq ( & self , _other : & ( ) ) -> bool {
12901290 true
12911291 }
1292- #[ inline]
1292+ #[ inline( always ) ]
12931293 fn ne ( & self , _other : & ( ) ) -> bool {
12941294 false
12951295 }
@@ -1335,15 +1335,15 @@ mod impls {
13351335
13361336 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13371337 impl PartialOrd for ( ) {
1338- #[ inline]
1338+ #[ inline( always ) ]
13391339 fn partial_cmp ( & self , _: & ( ) ) -> Option < Ordering > {
13401340 Some ( Equal )
13411341 }
13421342 }
13431343
13441344 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13451345 impl PartialOrd for bool {
1346- #[ inline]
1346+ #[ inline( always ) ]
13471347 fn partial_cmp ( & self , other : & bool ) -> Option < Ordering > {
13481348 Some ( self . cmp ( other) )
13491349 }
@@ -1355,7 +1355,7 @@ mod impls {
13551355 ( $( $t: ty) * ) => ( $(
13561356 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13571357 impl PartialOrd for $t {
1358- #[ inline]
1358+ #[ inline( always ) ]
13591359 fn partial_cmp( & self , other: & $t) -> Option <Ordering > {
13601360 Some ( self . cmp( other) )
13611361 }
@@ -1385,7 +1385,7 @@ mod impls {
13851385
13861386 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13871387 impl Ord for ( ) {
1388- #[ inline]
1388+ #[ inline( always ) ]
13891389 fn cmp ( & self , _other : & ( ) ) -> Ordering {
13901390 Equal
13911391 }
@@ -1412,7 +1412,7 @@ mod impls {
14121412
14131413 #[ unstable( feature = "never_type" , issue = "35121" ) ]
14141414 impl PartialEq for ! {
1415- #[ inline]
1415+ #[ inline( always ) ]
14161416 fn eq ( & self , _: & !) -> bool {
14171417 * self
14181418 }
@@ -1423,15 +1423,15 @@ mod impls {
14231423
14241424 #[ unstable( feature = "never_type" , issue = "35121" ) ]
14251425 impl PartialOrd for ! {
1426- #[ inline]
1426+ #[ inline( always ) ]
14271427 fn partial_cmp ( & self , _: & !) -> Option < Ordering > {
14281428 * self
14291429 }
14301430 }
14311431
14321432 #[ unstable( feature = "never_type" , issue = "35121" ) ]
14331433 impl Ord for ! {
1434- #[ inline]
1434+ #[ inline( always ) ]
14351435 fn cmp ( & self , _: & !) -> Ordering {
14361436 * self
14371437 }
@@ -1444,11 +1444,11 @@ mod impls {
14441444 where
14451445 A : PartialEq < B > ,
14461446 {
1447- #[ inline]
1447+ #[ inline( always ) ]
14481448 fn eq ( & self , other : & & B ) -> bool {
14491449 PartialEq :: eq ( * self , * other)
14501450 }
1451- #[ inline]
1451+ #[ inline( always ) ]
14521452 fn ne ( & self , other : & & B ) -> bool {
14531453 PartialEq :: ne ( * self , * other)
14541454 }
@@ -1458,23 +1458,23 @@ mod impls {
14581458 where
14591459 A : PartialOrd < B > ,
14601460 {
1461- #[ inline]
1461+ #[ inline( always ) ]
14621462 fn partial_cmp ( & self , other : & & B ) -> Option < Ordering > {
14631463 PartialOrd :: partial_cmp ( * self , * other)
14641464 }
1465- #[ inline]
1465+ #[ inline( always ) ]
14661466 fn lt ( & self , other : & & B ) -> bool {
14671467 PartialOrd :: lt ( * self , * other)
14681468 }
1469- #[ inline]
1469+ #[ inline( always ) ]
14701470 fn le ( & self , other : & & B ) -> bool {
14711471 PartialOrd :: le ( * self , * other)
14721472 }
1473- #[ inline]
1473+ #[ inline( always ) ]
14741474 fn gt ( & self , other : & & B ) -> bool {
14751475 PartialOrd :: gt ( * self , * other)
14761476 }
1477- #[ inline]
1477+ #[ inline( always ) ]
14781478 fn ge ( & self , other : & & B ) -> bool {
14791479 PartialOrd :: ge ( * self , * other)
14801480 }
@@ -1484,7 +1484,7 @@ mod impls {
14841484 where
14851485 A : Ord ,
14861486 {
1487- #[ inline]
1487+ #[ inline( always ) ]
14881488 fn cmp ( & self , other : & Self ) -> Ordering {
14891489 Ord :: cmp ( * self , * other)
14901490 }
@@ -1499,11 +1499,11 @@ mod impls {
14991499 where
15001500 A : PartialEq < B > ,
15011501 {
1502- #[ inline]
1502+ #[ inline( always ) ]
15031503 fn eq ( & self , other : & & mut B ) -> bool {
15041504 PartialEq :: eq ( * self , * other)
15051505 }
1506- #[ inline]
1506+ #[ inline( always ) ]
15071507 fn ne ( & self , other : & & mut B ) -> bool {
15081508 PartialEq :: ne ( * self , * other)
15091509 }
@@ -1513,23 +1513,23 @@ mod impls {
15131513 where
15141514 A : PartialOrd < B > ,
15151515 {
1516- #[ inline]
1516+ #[ inline( always ) ]
15171517 fn partial_cmp ( & self , other : & & mut B ) -> Option < Ordering > {
15181518 PartialOrd :: partial_cmp ( * self , * other)
15191519 }
1520- #[ inline]
1520+ #[ inline( always ) ]
15211521 fn lt ( & self , other : & & mut B ) -> bool {
15221522 PartialOrd :: lt ( * self , * other)
15231523 }
1524- #[ inline]
1524+ #[ inline( always ) ]
15251525 fn le ( & self , other : & & mut B ) -> bool {
15261526 PartialOrd :: le ( * self , * other)
15271527 }
1528- #[ inline]
1528+ #[ inline( always ) ]
15291529 fn gt ( & self , other : & & mut B ) -> bool {
15301530 PartialOrd :: gt ( * self , * other)
15311531 }
1532- #[ inline]
1532+ #[ inline( always ) ]
15331533 fn ge ( & self , other : & & mut B ) -> bool {
15341534 PartialOrd :: ge ( * self , * other)
15351535 }
@@ -1539,7 +1539,7 @@ mod impls {
15391539 where
15401540 A : Ord ,
15411541 {
1542- #[ inline]
1542+ #[ inline( always ) ]
15431543 fn cmp ( & self , other : & Self ) -> Ordering {
15441544 Ord :: cmp ( * self , * other)
15451545 }
@@ -1552,11 +1552,11 @@ mod impls {
15521552 where
15531553 A : PartialEq < B > ,
15541554 {
1555- #[ inline]
1555+ #[ inline( always ) ]
15561556 fn eq ( & self , other : & & mut B ) -> bool {
15571557 PartialEq :: eq ( * self , * other)
15581558 }
1559- #[ inline]
1559+ #[ inline( always ) ]
15601560 fn ne ( & self , other : & & mut B ) -> bool {
15611561 PartialEq :: ne ( * self , * other)
15621562 }
@@ -1567,11 +1567,11 @@ mod impls {
15671567 where
15681568 A : PartialEq < B > ,
15691569 {
1570- #[ inline]
1570+ #[ inline( always ) ]
15711571 fn eq ( & self , other : & & B ) -> bool {
15721572 PartialEq :: eq ( * self , * other)
15731573 }
1574- #[ inline]
1574+ #[ inline( always ) ]
15751575 fn ne ( & self , other : & & B ) -> bool {
15761576 PartialEq :: ne ( * self , * other)
15771577 }
0 commit comments