Skip to content

primitive:pointer is inflexible in type based search #142385

@lolbinarycat

Description

@lolbinarycat

I would expect it to support all the same patterns that primitive:reference does, but nope! you can't really use it for anything except searching for the pointer type

some examples of things that work with one but not the other:

works does not work
primitive:reference -> primitive:pointer ->
primitive:reference<u8> -> primitive:pointer<u8> ->
&u8 -> *const u8 ->
reference<mut, u8> -> pointer<mut, u8> ->

Tested on 1.86.0 and latest nightly.

Metadata

Metadata

Assignees

Labels

A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.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