Skip to content

Rustdoc frontend: const: type filter does not work #150349

@cyqsimon

Description

@cyqsimon

Description

The help widget states:

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given item kind.
Accepted kinds are: fn, mod, struct, enum, trait, type, macro, and const.

But const does not work. Instead you need to write constant. See formal syntax.

Expected Outcome

const: type filter should work.

Version

rustdoc 1.92.0 (ded5c06 2025-12-08)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions