Commit 0b96f60
committed
Auto merge of rust-lang#79245 - ssomers:btree_curb_ord_bound, r=dtolnay
BTree: remove Ord bound where it is absent elsewhere
Some btree methods don't really need an Ord bound and don't have one, while some methods that more obviously don't need it, do have one.
An example of the former is `iter`, even though it explicitly exposes the work of the Ord implementation (["sorted by key"](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.iter) - but I'm not suggesting it should have the Ord bound). An example of the latter is `new`, which doesn't involve any keys whatsoever.4 files changed
+22
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 503 | + | |
| 504 | + | |
508 | 505 | | |
509 | 506 | | |
510 | 507 | | |
| |||
1227 | 1224 | | |
1228 | 1225 | | |
1229 | 1226 | | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
| 1227 | + | |
1234 | 1228 | | |
1235 | 1229 | | |
1236 | 1230 | | |
| |||
1253 | 1247 | | |
1254 | 1248 | | |
1255 | 1249 | | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
| 1250 | + | |
1260 | 1251 | | |
1261 | 1252 | | |
1262 | 1253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
| 1714 | + | |
1714 | 1715 | | |
1715 | 1716 | | |
1716 | 1717 | | |
1717 | 1718 | | |
1718 | 1719 | | |
1719 | | - | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1720 | 1727 | | |
1721 | 1728 | | |
1722 | 1729 | | |
| |||
1726 | 1733 | | |
1727 | 1734 | | |
1728 | 1735 | | |
1729 | | - | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
1730 | 1743 | | |
1731 | 1744 | | |
1732 | 1745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
| 460 | + | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
| 647 | + | |
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
| |||
0 commit comments