-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
The copy, copy_nonoverlapping and write_bytes methods are exposed both via core::ptr and std::ptr. In fact, std::ptr as just a re-export of core::ptr.
However, when comparing the two pages, core::ptr is missing a few items compared to std::ptr: copy, copy_nonoverlapping and write_bytes for some reason are not shown as "functions".
I just realized that thy are shown as "reexports". So likely I could have made rust-lang/nomicon#165 link to the versions in core::intrinsics instead. But we don't actually want people to use those paths, they are available on stable only due to a bug. We'd prefer if people used these symbols through ptr, but then it seems we have to link to std::ptr, which is somewhat annoying.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.