Skip to content

primitive:pointer is inflexible in type based search #142385

Open
@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

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureT-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