Commit 8f8954e
authored
Rollup merge of #65366 - faern:source-on-intostringerror, r=bluss
Implement Error::source on IntoStringError + Remove superfluous cause impls
IntoStringError only implemented `Error::cause`, which is deprecated. This implemements `Error::source` instead.
`Error::cause` will still work as before, thanks to the default implementation.
I think this was the only/last `Error` impl in the standard library to have a cause, but not a source.2 files changed
+1
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
| 922 | + | |
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | 1584 | | |
1589 | 1585 | | |
1590 | 1586 | | |
| |||
1624 | 1620 | | |
1625 | 1621 | | |
1626 | 1622 | | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
1631 | 1623 | | |
1632 | 1624 | | |
1633 | 1625 | | |
| |||
1652 | 1644 | | |
1653 | 1645 | | |
1654 | 1646 | | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | 1647 | | |
1660 | 1648 | | |
1661 | 1649 | | |
| |||
1685 | 1673 | | |
1686 | 1674 | | |
1687 | 1675 | | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | 1676 | | |
1693 | 1677 | | |
1694 | 1678 | | |
| |||
1726 | 1710 | | |
1727 | 1711 | | |
1728 | 1712 | | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | 1713 | | |
1734 | 1714 | | |
1735 | 1715 | | |
| |||
0 commit comments