Closed
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.