File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
tests/rustdoc/inline_cross Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 44
55extern crate rustdoc_hidden;
66
7+ // @has inline_hidden/index.html
8+ // Ensures this item is not inlined.
9+ // @has - '//*[@id="reexport.Foo"]/code' 'pub use rustdoc_hidden::Foo;'
710#[ doc( no_inline) ]
811pub use rustdoc_hidden:: Foo ;
912
13+ // Even if the foreign item has `doc(hidden)`, we should be able to inline it.
14+ // @has - '//*[@class="item-name"]/a[@class="struct"]' 'Inlined'
15+ #[ doc( inline) ]
16+ pub use rustdoc_hidden:: Foo as Inlined ;
17+
18+ // Even with this import, we should not see `Foo`.
19+ // @count - '//*[@class="item-name"]' 4
20+ // @has - '//*[@class="item-name"]/a[@class="struct"]' 'Bar'
21+ // @has - '//*[@class="item-name"]/a[@class="fn"]' 'foo'
22+ pub use rustdoc_hidden:: * ;
23+
1024// @has inline_hidden/fn.foo.html
1125// @!has - '//a/@title' 'Foo'
1226pub fn foo ( _: Foo ) { }
You can’t perform that action at this time.
0 commit comments