Commit f7c8928
committed
Auto merge of rust-lang#128711 - clarfonthey:default-iters-hash, r=dtolnay
impl `Default` for `HashMap`/`HashSet` iterators that don't already have it
This is a follow-up to rust-lang#128261 that isn't included in that PR because it depends on:
* [x] rust-lang/hashbrown#542 (`Default`)
* [x] `hashbrown` release containing above
It also wasn't included in rust-lang#128261 initially and should have its own FCP, since these are also insta-stable.
Changes added:
* `Default for hash_map::{Iter, IterMut, IntoIter, IntoKeys, IntoValues, Keys, Values, ValuesMut}`
* `Default for hash_set::{Iter, IntoIter}`
Changes that were added before FCP, but are being deferred to later:
* `Clone for hash_map::{IntoIter, IntoKeys, IntoValues} where K: Clone, V: Clone`
* `Clone for hash_set::IntoIter where K: Clone`2 files changed
+80
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1441 | 1449 | | |
1442 | 1450 | | |
1443 | 1451 | | |
| |||
1476 | 1484 | | |
1477 | 1485 | | |
1478 | 1486 | | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
1479 | 1495 | | |
1480 | 1496 | | |
1481 | 1497 | | |
| |||
1506 | 1522 | | |
1507 | 1523 | | |
1508 | 1524 | | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1509 | 1533 | | |
1510 | 1534 | | |
1511 | 1535 | | |
| |||
1538 | 1562 | | |
1539 | 1563 | | |
1540 | 1564 | | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
1541 | 1573 | | |
1542 | 1574 | | |
1543 | 1575 | | |
| |||
1577 | 1609 | | |
1578 | 1610 | | |
1579 | 1611 | | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1580 | 1620 | | |
1581 | 1621 | | |
1582 | 1622 | | |
| |||
1665 | 1705 | | |
1666 | 1706 | | |
1667 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1668 | 1716 | | |
1669 | 1717 | | |
1670 | 1718 | | |
| |||
1687 | 1735 | | |
1688 | 1736 | | |
1689 | 1737 | | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1690 | 1746 | | |
1691 | 1747 | | |
1692 | 1748 | | |
| |||
1709 | 1765 | | |
1710 | 1766 | | |
1711 | 1767 | | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1712 | 1776 | | |
1713 | 1777 | | |
1714 | 1778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1247 | 1255 | | |
1248 | 1256 | | |
1249 | 1257 | | |
| |||
1265 | 1273 | | |
1266 | 1274 | | |
1267 | 1275 | | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1268 | 1284 | | |
1269 | 1285 | | |
1270 | 1286 | | |
| |||
0 commit comments