We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems like using glob on use statements ends up generating twice the documentation for Impl and Traits of this Struct.
use
Impl
Traits
Struct
If I use:
pub use foo::bar::*;
All Impl and Traits of each Struct in foo::bar::* will be duplicated in the doc. If symbols are listed one by one it works well:
foo::bar::*
pub use foo::bar::baz; pub use foo::bar::boz;
Issue can be seen when generating the doc from https://github.com/NewbiZ/rgb/tree/2d3d077120d51bdef42f2e6a83595d2b26a6e04c
If you change in src/lib.rs:
src/lib.rs
pub use self::cpu::*;
by
pub use self::cpu::Cpu; pub use self::cpu::Flag;
it will work.
The text was updated successfully, but these errors were encountered:
I can't seem to find a pre-existing issue for this, even though it's been around for months...
@tomjakubowski are you aware of an issue for this?
Sorry, something went wrong.
I wonder if globs or rustdoc itself are at fault.
Almost certainly Rustdoc.
It's always rustdoc's fault.
@gankro I don't remember seeing an issue for this in the tracker. I also wasn't aware this was an issue, what a bizarre quirk!
Here's a minimal reproduction. Note that only the impl needs to be in the mod, and the globbed pub use is required.
mod
pub use
pub use inner::*; mod inner { impl super::Blah for super::What { } } pub trait Blah { } pub struct What;
0f3183f
alexcrichton
No branches or pull requests
It seems like using glob on
use
statements ends up generating twice the documentation forImpl
andTraits
of thisStruct
.If I use:
All
Impl
andTraits
of eachStruct
infoo::bar::*
will be duplicated in the doc.If symbols are listed one by one it works well:
Issue can be seen when generating the doc from https://github.com/NewbiZ/rgb/tree/2d3d077120d51bdef42f2e6a83595d2b26a6e04c
If you change in
src/lib.rs
:by
it will work.
The text was updated successfully, but these errors were encountered: