Struct rustc_builtin_macros::test_harness::EntryPointCleaner [−][src]
Expand description
A folder used to remove any entry points (like fn main) because the harness generator will provide its own
Fields
sess: &'a Session
depth: usize
def_site: Span
Trait Implementations
Mutable token visiting only exists for the macro_rules
token marker and should not be
used otherwise. Token visitor would be entirely separate from the regular visitor if
the marker didn’t have to visit AST fragments in nonterminal tokens. Read more
fn flat_map_foreign_item(
&mut self,
ni: P<Item<ForeignItemKind>>
) -> SmallVec<[P<Item<ForeignItemKind>>; 1]>
fn flat_map_trait_item(
&mut self,
i: P<Item<AssocItemKind>>
) -> SmallVec<[P<Item<AssocItemKind>>; 1]>
fn flat_map_impl_item(
&mut self,
i: P<Item<AssocItemKind>>
) -> SmallVec<[P<Item<AssocItemKind>>; 1]>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EntryPointCleaner<'a>
impl<'a> !Send for EntryPointCleaner<'a>
impl<'a> !Sync for EntryPointCleaner<'a>
impl<'a> Unpin for EntryPointCleaner<'a>
impl<'a> !UnwindSafe for EntryPointCleaner<'a>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes