Skip to content

Reexported intrinsics show up in rustdoc search instead of their proper paths #131676

Open

Description

The following functions appear to be intrinsics that are re-exported at a different path (see also: #113387):

  • intrinsics::transmute -> mem::transmute
  • intrinsics::copy -> ptr::copy
  • intrinsics::copy_nonoverlapping -> ptr::copy_nonoverlapping
  • intrinsics::write_bytes -> ptr::write_bytes

Searching for these only finds the functions in std::intrinsics. (And for specifically transmute, it also shows core::mem::transmute for some reason.) The search result should ideally show the functions in std::mem/ptr. See below screenshots obtained by searching for transmute and searching for copy_nonoverlapping

Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureC-bugCategory: This is a bug.Category: This is a bug.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant 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