Skip to content

Reexported intrinsics show up in rustdoc intra-doc links instead of their proper pathsΒ #131676

@theemathas

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

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.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