[][src]Function syntax::test::mk_reexport_mod

fn mk_reexport_mod(
    cx: &mut TestCtxt,
    parent: NodeId,
    tests: Vec<Ident>,
    tested_submods: Vec<(Ident, Ident)>
) -> (P<Item>, Ident)
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Creates an item (specifically a module) that "pub use"s the tests passed in. Each tested submodule will contain a similar reexport module that we will export under the name of the original module. That is, submod::__test_reexports is reexported like so pub use submod::__test_reexports as submod.