Commit 8c1f726
committed
Revert: Make Option.flatten const
Option.flatten relies on Option.and_then, which has a generic trait
bound and can't be const yet. From @oli-obk:
> please undo all constifications for functions that take generic things
> with trait bounds (other than Sized), these require
> rust-lang/rfcs#2632 first1 parent 5744fe1 commit 8c1f726
2 files changed
+0
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | 1745 | | |
1756 | 1746 | | |
1757 | 1747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
0 commit comments