Skip to content

Commit 53d54bd

Browse files
Add regression test for #117718
1 parent 98643de commit 53d54bd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/117718>.
2+
// Ensures that the various "doc(hidden)" reexport cases are correctly handled.
3+
4+
pub mod submodule {
5+
#[doc(hidden)]
6+
pub struct Hidden {}
7+
}
8+
9+
#[doc(hidden)]
10+
mod x {
11+
pub struct Y {}
12+
}
13+
14+
// @has "$.index[*].inner[?(@.import.name=='UsedHidden')].import.source" '"submodule::Hidden"'
15+
// @has "$.index[*].inner[?(@.import.name=='UsedHidden')].import.id" "null"
16+
pub use submodule::Hidden as UsedHidden;
17+
// @has "$.index[*].inner[?(@.import.name=='Z')].import.source" '"x::Y"'
18+
// @has "$.index[*].inner[?(@.import.name=='Z')].import.id" 'null'
19+
pub use x::Y as Z;

0 commit comments

Comments
 (0)