File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
src/test/rustdoc/intra-doc-crate Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ crate_name = "bar" ]
2+
3+ pub trait Foo {
4+ /// [`Bar`] [`Baz`]
5+ fn foo ( ) ;
6+ }
7+
8+ pub trait Bar {
9+ }
10+
11+ pub trait Baz {
12+ }
Original file line number Diff line number Diff line change 11// aux-build:intra-doc-basic.rs
22// build-aux-docs
3+
4+ // from https://github.com/rust-lang/rust/issues/65983
35extern crate a;
46
57// @has 'basic/struct.Bar.html' '//a[@href="../a/struct.Foo.html"]' 'Foo'
Original file line number Diff line number Diff line change 1+ // aux-build:submodule.rs
2+ // edition:2018
3+ extern crate bar as bar_;
4+
5+ // from https://github.com/rust-lang/rust/issues/60883
6+ pub mod bar {
7+ pub use :: bar_:: Bar ;
8+ }
9+
10+ // NOTE: we re-exported both `Foo` and `Bar` here,
11+ // NOTE: so they are inlined and therefore we link to the current module.
12+ // @has 'submodule/trait.Foo.html' '//a[@href="../submodule/bar/trait.Bar.html"]' 'Bar'
13+ // @has 'submodule/trait.Foo.html' '//a[@href="../submodule/trait.Baz.html"]' 'Baz'
14+ pub use :: bar_:: { Foo , Baz } ;
You can’t perform that action at this time.
0 commit comments