2021-11-15 22:49:15 +00:00
|
|
|
/// This higher-order macro declares a list of types which can be allocated by `Arena`.
|
2023-03-25 11:19:03 +00:00
|
|
|
/// 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 {
|
2021-11-15 22:28:26 +00:00
|
|
|
($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,
|
2021-11-15 22:28:26 +00:00
|
|
|
[] owner_info: rustc_hir::OwnerInfo<'tcx>,
|
2022-11-25 14:39:38 +00:00
|
|
|
[] use_path: rustc_hir::UsePath<'tcx>,
|
2023-03-25 10:12:35 +00:00
|
|
|
[] lit: rustc_hir::Lit,
|
2023-03-25 20:09:11 +00:00
|
|
|
[] macro_def: rustc_ast::MacroDef,
|
2021-11-15 22:28:26 +00:00
|
|
|
]);
|
2020-03-21 01:21:21 +00:00
|
|
|
)
|
|
|
|
}
|