Commit c8eefdf
authored
Rollup merge of rust-lang#64747 - ethanboxx:master, r=Centril
Stabilize `Option::flatten`
- PR: rust-lang#60256
- Tracking issue: rust-lang#60258
@elahn
> I was trying to `flat_map()` and found `map().flatten()` does the trick. This has been on nightly for 4 months, can we stabilise it?
@ethanboxx
> @Centril Helped me get this merged. What is the stabilization process?
@Centril
> @ethanboxx I'd just file a PR to stabilize it and we'll ask T-libs to FCP.
So here I am.
I am was unsure what number to put in `since = "-"` so I copied what someone had done in a recent PR.2 files changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1567 | 1567 | | |
1568 | 1568 | | |
1569 | 1569 | | |
1570 | | - | |
1571 | 1570 | | |
1572 | 1571 | | |
1573 | 1572 | | |
| |||
1579 | 1578 | | |
1580 | 1579 | | |
1581 | 1580 | | |
1582 | | - | |
1583 | 1581 | | |
1584 | 1582 | | |
1585 | 1583 | | |
1586 | 1584 | | |
1587 | 1585 | | |
1588 | | - | |
| 1586 | + | |
1589 | 1587 | | |
1590 | 1588 | | |
1591 | 1589 | | |
| |||
0 commit comments