Skip to content

Tracking Issue for const_cmp #143800

Open
Open

Description

@RalfJung

Feature gate: #![feature(const_cmp)]

This is a tracking issue for PartialEq in const fn.

Public API

// core::cmp

#[const_trait]
pub trait PartialEq<Rhs: PointeeSized = Self>: PointeeSized { ... }

Steps / History

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

Unresolved Questions / Blockers

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 11, 2025
  2. added a commit that references this issue on Jul 12, 2025
  3. chrisbouchard commented on Jul 13, 2025

    @chrisbouchard

    Will this feature cover other std::cmp traits as well, such as PartialOrd and/or Ord? (Similar to how const_ops covers multiple traits from the std::ops module.) Or only PartialEq?

    Edit: I do see there was discussion on #143640 about how granular to be about features for new const traits and impls, so I understand this may not be fully decided yet.

  4. added a commit that references this issue on Jul 13, 2025
  5. RalfJung commented on Jul 13, 2025

    @RalfJung
    MemberAuthor

    Yeah we can add those here if/when they get constified.

  6. added a commit that references this issue on Jul 13, 2025
  7. added 3 commits that reference this issue on Jul 15, 2025
  8. added a commit that references this issue on Jul 18, 2025
  9. added 2 commits that reference this issue on Jul 18, 2025
  10. added a commit that references this issue on Jul 18, 2025
  11. 11 remaining items

  12. added a commit that references this issue on Oct 25, 2025
  13. added a commit that references this issue on Mar 28, 2026
  14. removed their assignment
    on Apr 3, 2026
  15. added a commit that references this issue on Apr 21, 2026
  16. added a commit that references this issue on Apr 21, 2026
  17. 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
  18. added a commit that references this issue on Sep 22, 2026
  19. added a commit that references this issue on Sep 22, 2026
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