rust/tests/rustdoc-json/reexport/rename_public.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
594 B
Rust
Raw Normal View History

2021-02-26 22:55:08 +00:00
//@ edition:2018
//@ set inner_id = "$.index[*][?(@.name=='inner')].id"
2021-02-26 22:55:08 +00:00
pub mod inner {
//@ set public_id = "$.index[*][?(@.name=='Public')].id"
//@ ismany "$.index[*][?(@.name=='inner')].inner.module.items[*]" $public_id
2021-02-26 22:55:08 +00:00
pub struct Public;
}
//@ set import_id = "$.index[*][?(@.docs=='Re-export')].id"
//@ !has "$.index[*].inner[?(@.use.name=='Public')]"
//@ is "$.index[*].inner[?(@.use.name=='NewName')].use.source" \"inner::Public\"
/// Re-export
2021-02-26 22:55:08 +00:00
pub use inner::Public as NewName;
2022-07-19 15:57:38 +00:00
//@ ismany "$.index[*][?(@.name=='rename_public')].inner.module.items[*]" $inner_id $import_id