File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ #![ crate_name = "inner" ]
2
+
3
+ /// Documentation, including a link to [std::ptr]
4
+ pub fn f ( ) { }
Original file line number Diff line number Diff line change
1
+ // aux-build: intra-link-pub-use.rs
1
2
#![ deny( broken_intra_doc_links) ]
3
+ #![ crate_name = "outer" ]
4
+
5
+ extern crate inner;
6
+
7
+ /// [mod@std::env] [g]
2
8
3
- /// [std::env] [g]
4
9
// FIXME: This can't be tested because rustdoc doesn't show documentation on pub re-exports.
5
10
// Until then, comment out the `htmldocck` test.
6
11
// This test still does something; namely check that no incorrect errors are emitted when
7
12
// documenting the re-export.
8
13
9
- // @has intra_link_pub_use /index.html
14
+ // @has outer /index.html
10
15
// @ has - '//a[@href="https://doc.rust-lang.org/nightly/std/env/fn.var.html"]' "std::env"
11
- // @ has - '//a[@href="../intra_link_pub_use /fn.f.html"]' "g"
16
+ // @ has - '//a[@href="../outer /fn.f.html"]' "g"
12
17
pub use f as g;
13
18
19
+ // FIXME: same as above
14
20
/// [std::env]
15
21
extern crate self as _;
16
22
17
- pub fn f ( ) { }
23
+ // Make sure the documentation is actually correct by documenting an inlined re-export
24
+ /// [mod@std::env]
25
+ // @has outer/fn.f.html
26
+ // @has - '//a[@href="https://doc.rust-lang.org/nightly/std/env/index.html"]' "std::env"
27
+ pub use inner:: f;
You can’t perform that action at this time.
0 commit comments