rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.11k stars 12.69k forks source link

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

Open theemathas opened 2 weeks ago

theemathas commented 2 weeks ago

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

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

kpreid commented 2 weeks ago

Possibly related: intra-doc links to std::mem::transmute or core::mem::transmute also end up linking to the intrinsic page.