File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
src/test/rustdoc/intra-doc-crate Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ #![ crate_name = "a" ]
2
+
3
+ pub mod bar {
4
+ pub struct Bar ;
5
+ }
6
+
7
+ pub mod foo {
8
+ use crate :: bar;
9
+ /// link to [bar::Bar]
10
+ pub struct Foo ;
11
+ }
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // aux-build:submodule-inner.rs
2
+ // build-aux-docs
3
+ extern crate a;
4
+
5
+ // @has 'submodule_inner/struct.Foo.html' '//a[@href="../a/bar/struct.Bar.html"]' 'Bar'
6
+ pub use a:: foo:: Foo ;
Original file line number Diff line number Diff line change 1
- // aux-build:submodule.rs
1
+ // aux-build:submodule-outer .rs
2
2
// edition:2018
3
3
extern crate bar as bar_;
4
4
@@ -9,6 +9,6 @@ pub mod bar {
9
9
10
10
// NOTE: we re-exported both `Foo` and `Bar` here,
11
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'
12
+ // @has 'submodule_outer /trait.Foo.html' '//a[@href="../submodule_outer /bar/trait.Bar.html"]' 'Bar'
13
+ // @has 'submodule_outer /trait.Foo.html' '//a[@href="../submodule_outer /trait.Baz.html"]' 'Baz'
14
14
pub use :: bar_:: { Foo , Baz } ;
You can’t perform that action at this time.
0 commit comments