Skip to content

Tracking Issue for const_option_ops #143956

Description

@oli-obk

Feature gate: #![feature(const_option_ops)]

This is a tracking issue for const methods on Option that require ~const Fn bounds

Public API

opt.is_some_and(u32::is_even)

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

  • Implementation: WIP, needed a tracking issue
  • Final comment period (FCP)1
  • Stabilization PR

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Jul 15, 2025
  2. added 2 commits that reference this issue on Jul 17, 2025
  3. added a commit that references this issue on Jul 17, 2025
  4. added a commit that references this issue on Jul 18, 2025
  5. added 3 commits that reference this issue on Jul 18, 2025
  6. added a commit that references this issue on Jul 18, 2025
  7. added a commit that references this issue on Jul 21, 2025
  8. added a commit that references this issue on Jul 29, 2025
  9. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
  10. orlp commented on Sep 3, 2026

    @orlp
    Contributor

    I think this issue needs updating, what has been implemented, what hasn't been? What's blocking stabilization for the stuff that has been implemented? I just realized unwrap_or wasn't const today and it kind of baffles me with how simple it is.

  11. AverageHelper commented on Sep 30, 2026

    @AverageHelper

    @orlp Maybe it's something to do with const_destruct still being unstable?

    I'd very much like to see Option::map const-stable as well ^^;

  12. orlp commented on Sep 30, 2026

    @orlp
    Contributor

    @AverageHelper Yes, you're right, that explains unwrap_or.

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

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libsRelevant to the library 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

      Issue actions