Skip to content

primitive docs should show core/alloc/std accessibility #62909

Open
@cuviper

Description

@cuviper

In #61851, I tried to generate primitive docs in core, similar to those in std. My main motivation was to clearly see what f64 methods are available in core alone, under #[no_std], since a lot of them require std and libm support. However, I had trouble making that work because of broken documentation links between core and std-specific methods.

So I think instead, rustdoc could 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 in alloc. Maybe there are more that I don't know yet!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions