rust/compiler/rustc_hir/src/arena.rs

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

17 lines
609 B
Rust
Raw Normal View History

/// 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.
2020-03-21 01:21:21 +00:00
#[macro_export]
macro_rules! arena_types {
($macro:path) => (
2021-08-30 11:09:38 +00:00
$macro!([
2020-03-21 01:21:21 +00:00
// HIR types
2020-04-27 17:56:11 +00:00
[] asm_template: rustc_ast::InlineAsmTemplatePiece,
[] attribute: rustc_ast::Attribute,
[] owner_info: rustc_hir::OwnerInfo<'tcx>,
[] use_path: rustc_hir::UsePath<'tcx>,
[] lit: rustc_hir::Lit,
[] macro_def: rustc_ast::MacroDef,
]);
2020-03-21 01:21:21 +00:00
)
}