-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
primitive docs should show core/alloc/std accessibility #62909
Copy link
Copy link
Open
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the rustdoc team, which will review and decide on the PR/issue.
In #61851, I tried to generate primitive docs in
core, similar to those instd. My main motivation was to clearly see whatf64methods are available incorealone, under#[no_std], since a lot of them requirestdandlibmsupport. However, I had trouble making that work because of broken documentation links betweencoreandstd-specific methods.So I think instead,
rustdoccould put some kind of marker on primitive methods to indicate what crate added them, so the accessibility is known. Apart from floating point, there are also a few slice methods that are only added inalloc. Maybe there are more that I don't know yet!