mirror of https://github.com/rust-lang/rust
28 lines
1.0 KiB
Rust
28 lines
1.0 KiB
Rust
// Regression test for https://github.com/rust-lang/rust/issues/100973
|
|
|
|
//@ set m1 = "$.index[*][?(@.name == 'm1' && @.inner.module)].id"
|
|
//@ is "$.index[*][?(@.name == 'm1')].inner.module.items" []
|
|
//@ is "$.index[*][?(@.name == 'm1')].inner.module.is_stripped" true
|
|
mod m1 {
|
|
pub fn f() {}
|
|
}
|
|
//@ set m2 = "$.index[*][?(@.name == 'm2' && @.inner.module)].id"
|
|
//@ is "$.index[*][?(@.name == 'm2')].inner.module.items" []
|
|
//@ is "$.index[*][?(@.name == 'm2')].inner.module.is_stripped" true
|
|
mod m2 {
|
|
pub fn f(_: u8) {}
|
|
}
|
|
|
|
//@ set m1_use = "$.index[*][?(@.docs=='m1 re-export')].id"
|
|
//@ is "$.index[*].inner.use[?(@.name=='m1')].id" $m1
|
|
//@ is "$.index[*].inner.use[?(@.name=='m1')].is_glob" true
|
|
/// m1 re-export
|
|
pub use m1::*;
|
|
//@ set m2_use = "$.index[*][?(@.docs=='m2 re-export')].id"
|
|
//@ is "$.index[*].inner.use[?(@.name=='m2')].id" $m2
|
|
//@ is "$.index[*].inner.use[?(@.name=='m2')].is_glob" true
|
|
/// m2 re-export
|
|
pub use m2::*;
|
|
|
|
//@ ismany "$.index[*].inner.module[?(@.is_crate==true)].items[*]" $m1_use $m2_use
|