2016-04-24 14:11:26 +02:00
|
|
|
//@ aux-build:rustdoc-hidden.rs
|
|
|
|
//@ build-aux-docs
|
|
|
|
//@ ignore-cross-compile
|
|
|
|
|
|
|
|
extern crate rustdoc_hidden;
|
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has inline_hidden/index.html
|
2024-04-04 18:10:52 +02:00
|
|
|
// Ensures this item is not inlined.
|
2025-02-27 20:54:26 +08:00
|
|
|
//@ !has - '//*[@id="reexport.Foo"]/code' 'pub use rustdoc_hidden::Foo;'
|
2016-04-24 14:11:26 +02:00
|
|
|
#[doc(no_inline)]
|
|
|
|
pub use rustdoc_hidden::Foo;
|
|
|
|
|
2024-04-04 18:10:52 +02:00
|
|
|
// Even if the foreign item has `doc(hidden)`, we should be able to inline it.
|
2025-01-17 21:41:51 +01:00
|
|
|
//@ has - '//dt/a[@class="struct"]' 'Inlined'
|
2024-04-04 18:10:52 +02:00
|
|
|
#[doc(inline)]
|
|
|
|
pub use rustdoc_hidden::Foo as Inlined;
|
|
|
|
|
|
|
|
// Even with this import, we should not see `Foo`.
|
2025-02-27 20:54:26 +08:00
|
|
|
//@ count - '//dt' 3
|
2025-01-17 21:41:51 +01:00
|
|
|
//@ has - '//dt/a[@class="struct"]' 'Bar'
|
|
|
|
//@ has - '//dt/a[@class="fn"]' 'foo'
|
2024-04-04 18:10:52 +02:00
|
|
|
pub use rustdoc_hidden::*;
|
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has inline_hidden/fn.foo.html
|
|
|
|
//@ !has - '//a/@title' 'Foo'
|
2016-04-24 14:11:26 +02:00
|
|
|
pub fn foo(_: Foo) {}
|