You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen:
Only one prelude link exists and it resolves to sub2::prelude (if you do println!("{}", resolve::prelude::describe());, you'll get the output sub2::prelude)
rustbot
added
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
and removed
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
labels
Mar 29, 2021
The reason I consider them the same is they have the same cause: if there's already an item with that name in scope, rustdoc will use both that item and the glob re-export. Whether the item is a re-export or was defined in the current module shouldn't matter.
I'm trying to work on #83375, but found a related but not same bug:
I run
rustdoc
on this code:I expected to see this happen:
Only one
prelude
link exists and it resolves tosub2::prelude
(if you doprintln!("{}", resolve::prelude::describe());
, you'll get the outputsub2::prelude
)Instead, this happened:
preludes
here:prelude
links, it direct you tosub::prelude
Meta
rustdoc +local --version
:Backtrace
NA
The text was updated successfully, but these errors were encountered: