Skip to content

Rustdoc frontend: cannot search a number #147763

@cyqsimon

Description

@cyqsimon

Description

On any webpage generated by rustdoc, using a number as a search term results in an error:

Query parser error: "Unexpected <N> (not a valid identifier)".

Where <N> is the first digit of the number searched.

Searching for rfc3339 in chrono Searching for 3339 in chrono

Expected Outcome

It should search.

Version

Rust: 1.92.0-nightly (57ef8d6 2025-10-15)
Browser: Firefox 145.0b1; Chrome 141.0.7390.107

Metadata

Metadata

Assignees

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions