Skip to content

Rustdoc should consider not hiding items that come from the same Cargo workspace #125009

Open
@Urgau

Description

@Urgau

With PR #124939, rustdoc hides in the "Aliased type" section of type alias every type that is not from the current crate.

However if we had access in rustdoc to the Cargo workspace information we could instead be more fine-grain and not hide those coming from the same workspace.

Crate A:

pub struct One<T>(T);

Crate B:

pub type OneString = One<String>;

If crate A and B are in the same workspace we should probably not hide the inner item, and therefor display:

// in Aliased Type
struct OneString(String)

// instead of
struct OneString(/* private items */)

@rustbot labels +T-rustdoc +A-rustdoc-ui +C-discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-discussionCategory: Discussion or questions that doesn't represent real issues.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