Skip to content

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

@RalfJung

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?)

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