Skip to content

primitive:pointer is inflexible in type based search #142385

Closed

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.

Activity

  1. added
    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 when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jun 11, 2025
  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Jun 14, 2025
  3. self-assigned this
    on Jul 9, 2025
  4. added
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jul 21, 2025
  5. lolbinarycat commented on Aug 21, 2025

    @lolbinarycat
    ContributorAuthor

    It seems like raw pointers just don't exist in the search index, which can lead to some weird outputs:

    screenshot of a search for `-> AtomicPtr`
  6. added 2 commits that reference this issue on Aug 22, 2025
    3817985
    7798185
  7. added a commit that references this issue on Aug 23, 2025
    2916fe9
  8. added a commit that references this issue on Aug 24, 2025
    7d8c3e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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