]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_hir/src/arena.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / compiler / rustc_hir / src / arena.rs
CommitLineData
3c0e092e 1/// This higher-order macro declares a list of types which can be allocated by `Arena`.
49aad941 2/// Note that all `Copy` types can be allocated by default and need not be specified here.
ba9703b0
XL
3#[macro_export]
4macro_rules! arena_types {
3c0e092e 5 ($macro:path) => (
94222f64 6 $macro!([
ba9703b0 7 // HIR types
3c0e092e 8 [] hir_krate: rustc_hir::Crate<'tcx>,
3dfed10e
XL
9 [] asm_template: rustc_ast::InlineAsmTemplatePiece,
10 [] attribute: rustc_ast::Attribute,
3c0e092e 11 [] owner_info: rustc_hir::OwnerInfo<'tcx>,
487cf647 12 [] use_path: rustc_hir::UsePath<'tcx>,
49aad941
FG
13 [] lit: rustc_hir::Lit,
14 [] macro_def: rustc_ast::MacroDef,
3c0e092e 15 ]);
ba9703b0
XL
16 )
17}