Skip to content

rustdoc search says “Consider searching for "null" instead.” #149324

@kpreid

Description

@kpreid

Reproduction Steps

  1. Visit https://doc.rust-lang.org/nightly/std/
  2. Enter “-> Result<Foo, E>” in the search box.

Output

Type "Foo" not found and used as generic parameter. Consider searching for "null" instead.

The “null” part makes no sense. Probably that sentence should be removed when there is no suggestion.

Version

rustdoc 1.93.0-nightly (c871d09 2025-11-24)
Browser: Chrome 142.0.7444.176

Metadata

Metadata

Labels

A-rustdoc-jsArea: Rustdoc's JS front-endA-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.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.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions