Skip to content

Tracking issue for Option::flatten #60258

Closed
@eopb

Description

@eopb
Contributor

Activity

changed the title [-]Add flatten option to `Option<Option<T>>` with `Into` trait or new method.[/-] [+]Tracking issue for `Option::flatten`[/+] on Apr 25, 2019
added
B-unstableBlocker: Implemented in the nightly compiler and unstable.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
on Apr 25, 2019
elahn

elahn commented on Sep 10, 2019

@elahn
Contributor

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?

eopb

eopb commented on Sep 10, 2019

@eopb
ContributorAuthor

@Centril Helped me get this merged. What is the stabilization process?

Centril

Centril commented on Sep 10, 2019

@Centril
Contributor

@ethanboxx I'd just file a PR to stabilize it and we'll ask T-libs to FCP.

added 2 commits that reference this issue on Oct 27, 2019

Rollup merge of rust-lang#64747 - ethanboxx:master, r=Centril

ad680c3

Rollup merge of rust-lang#64747 - ethanboxx:master, r=Centril

c8eefdf
Dylan-DPC-zz

Dylan-DPC-zz commented on Dec 25, 2019

@Dylan-DPC-zz

The feature has been stabilised. Closing this. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Centril@jonas-schievink@eopb@elahn@Dylan-DPC-zz

        Issue actions

          Tracking issue for `Option::flatten` · Issue #60258 · rust-lang/rust