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
#![crate_type = "rlib"]pubstructFooStruct;pubtraitFooTrait{/// docs////// more docsfnfoo_method();}implFooTraitforFooStruct{fnfoo_method(){}}
bar.rs:
externcrate foo;pubuse foo::FooStruct;
running rustc foo.rs && rustdoc -L . bar.rs so only bar is documented.
I expected to see this happen:
When the docs for bar are documented the page for FooStruct shouldn't contain any broken "Read more" links.
Instead, this happened:
The "Read more" link for foo_method on the page for FooStruct points to #tymethod.foo_method which doesn't go anywhere. It should point to the documentation for FooTrait but as that page doesn't exist the "Read more" link shouldn't exist at all. The link works fine if docs for foo are also generated or pub use foo::FooTrait; is added to bar.rs.
I tried this code:
foo.rs
:bar.rs
:running
rustc foo.rs && rustdoc -L . bar.rs
so onlybar
is documented.I expected to see this happen:
When the docs for
bar
are documented the page forFooStruct
shouldn't contain any broken "Read more" links.Instead, this happened:
The "Read more" link for
foo_method
on the page forFooStruct
points to#tymethod.foo_method
which doesn't go anywhere. It should point to the documentation forFooTrait
but as that page doesn't exist the "Read more" link shouldn't exist at all. The link works fine if docs forfoo
are also generated orpub use foo::FooTrait;
is added tobar.rs
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: