diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/rustdoc-json/reexport/glob_private.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-json/reexport/glob_private.rs')
-rw-r--r-- | tests/rustdoc-json/reexport/glob_private.rs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/rustdoc-json/reexport/glob_private.rs b/tests/rustdoc-json/reexport/glob_private.rs new file mode 100644 index 000000000..3a83a2081 --- /dev/null +++ b/tests/rustdoc-json/reexport/glob_private.rs @@ -0,0 +1,33 @@ +// edition:2018 + +#![no_core] +#![feature(no_core)] + +// @is "$.index[*][?(@.name=='mod1')].kind" \"module\" +// @is "$.index[*][?(@.name=='mod1')].inner.is_stripped" "true" +mod mod1 { + // @is "$.index[*][?(@.name=='mod2')].kind" \"module\" + // @is "$.index[*][?(@.name=='mod2')].inner.is_stripped" "true" + mod mod2 { + // @set m2pub_id = "$.index[*][?(@.name=='Mod2Public')].id" + pub struct Mod2Public; + + // @!has "$.index[*][?(@.name=='Mod2Private')]" + struct Mod2Private; + } + + // @set mod2_use_id = "$.index[*][?(@.kind=='import' && @.inner.name=='mod2')].id" + pub use self::mod2::*; + + // @set m1pub_id = "$.index[*][?(@.name=='Mod1Public')].id" + pub struct Mod1Public; + // @!has "$.index[*][?(@.name=='Mod1Private')]" + struct Mod1Private; +} + +// @set mod1_use_id = "$.index[*][?(@.kind=='import' && @.inner.name=='mod1')].id" +pub use mod1::*; + +// @ismany "$.index[*][?(@.name=='mod2')].inner.items[*]" $m2pub_id +// @ismany "$.index[*][?(@.name=='mod1')].inner.items[*]" $m1pub_id $mod2_use_id +// @ismany "$.index[*][?(@.name=='glob_private')].inner.items[*]" $mod1_use_id |