Skip to content

Some trait functions are now listed as "const fn" even for types without a const trait impl #143375

Closed as duplicate

Description

@RalfJung

Consider for instance these docs:

Image

This looks like I can call ne in const context but not eq, which makes little sense.

Cc @rust-lang/project-const-traits (is that ping group still the right one for this?)

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Jul 3, 2025
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jul 3, 2025
  3. fee1-dead commented on Jul 3, 2025

    @fee1-dead
    Member

    @rustbot claim

  4. fmease commented on Jul 3, 2025

    @fmease
    Member

    (dupe of #143071)

  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.F-const_trait_impl`#![feature(const_trait_impl)]`PG-const-traitsProject group: Const traitsT-rustdocRelevant to the rustdoc 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