about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/arena.rs
blob: 180cb6497e7ab18fb9eb25bffe383ad0eda6183c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// This higher-order macro declares a list of types which can be allocated by `Arena`.
/// Note that all `Copy` types can be allocated by default and need not be specified here.
#[macro_export]
macro_rules! arena_types {
    ($macro:path) => (
        $macro!([
            // HIR types
            [] asm_template: rustc_ast::InlineAsmTemplatePiece,
            [] attribute: rustc_hir::Attribute,
            [] owner_info: rustc_hir::OwnerInfo<'tcx>,
            [] macro_def: rustc_ast::MacroDef,
        ]);
    )
}