2021-03-24 10:54:20 -05:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
pub mod foo {
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set bar_id = "$.index[*][?(@.name=='Bar')].id"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name=='foo')].inner.module.items[*]" $bar_id
|
2021-03-24 10:54:20 -05:00
|
|
|
pub struct Bar;
|
|
|
|
}
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set root_import_id = "$.index[*][?(@.docs=='Outer re-export')].id"
|
|
|
|
// @is "$.index[*].inner[?(@.import.source=='foo::Bar')].import.id" $bar_id
|
|
|
|
// @has "$.index[*][?(@.name=='in_root_and_mod_pub')].inner.module.items[*]" $root_import_id
|
|
|
|
/// Outer re-export
|
2021-03-24 10:54:20 -05:00
|
|
|
pub use foo::Bar;
|
|
|
|
|
|
|
|
pub mod baz {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set baz_import_id = "$.index[*][?(@.docs=='Inner re-export')].id"
|
|
|
|
// @is "$.index[*].inner[?(@.import.source=='crate::foo::Bar')].import.id" $bar_id
|
|
|
|
// @ismany "$.index[*][?(@.name=='baz')].inner.module.items[*]" $baz_import_id
|
|
|
|
/// Inner re-export
|
2021-03-24 10:54:20 -05:00
|
|
|
pub use crate::foo::Bar;
|
|
|
|
}
|