-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
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
rustdoc renders renamed imports (use foo as bar;) using the new, private name
(e.g., bar in use foo as bar;). This is confusing behavior since the new
name is an implementation detail. I think it should be using the original
item's name instead.
As an example, chrono::Date::signed_duration_since returns a Duration, but
the module it's defined in renames Duration to OldDuration. I would expect
rustdoc to still show the item's definition name, but instead it shows the
private OldDuration name.
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.