]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/reexport-doc-hidden.rs
Remove astconv usage in diagnostic
[rust.git] / tests / rustdoc / reexport-doc-hidden.rs
1 // Part of <https://github.com/rust-lang/rust/issues/59368>.
2 // This test ensures that reexporting a `doc(hidden)` item will
3 // still show the reexport.
4
5 #![crate_name = "foo"]
6
7 #[doc(hidden)]
8 pub type Type = u32;
9
10 // @has 'foo/index.html'
11 // @has - '//*[@id="reexport.Type2"]/code' 'pub use crate::Type as Type2;'
12 pub use crate::Type as Type2;
13
14 // @count - '//*[@id="reexport.Type3"]' 0
15 #[doc(hidden)]
16 pub use crate::Type as Type3;
17
18 #[macro_export]
19 #[doc(hidden)]
20 macro_rules! foo {
21     () => {};
22 }
23
24 // This is a bug: https://github.com/rust-lang/rust/issues/59368
25 // @!has - '//*[@id="reexport.Macro"]/code' 'pub use crate::foo as Macro;'
26 pub use crate::foo as Macro;