2021-11-16 09:49:15 +11: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 02:21:21 +01:00
|
|
|
#[macro_export]
|
|
|
|
macro_rules! arena_types {
|
2021-11-16 09:28:26 +11:00
|
|
|
($macro:path) => (
|
2021-08-30 13:09:38 +02:00
|
|
|
$macro!([
|
2020-03-21 02:21:21 +01:00
|
|
|
// HIR types
|
2021-11-16 09:28:26 +11:00
|
|
|
[] hir_krate: rustc_hir::Crate<'tcx>,
|
2020-04-27 23:26:11 +05:30
|
|
|
[] asm_template: rustc_ast::InlineAsmTemplatePiece,
|
|
|
|
[] attribute: rustc_ast::Attribute,
|
2021-11-16 09:28:26 +11:00
|
|
|
[] owner_info: rustc_hir::OwnerInfo<'tcx>,
|
2022-11-25 17:39:38 +03:00
|
|
|
[] use_path: rustc_hir::UsePath<'tcx>,
|
2023-03-25 10:12:35 +00:00
|
|
|
[] lit: rustc_hir::Lit,
|
2023-03-25 21:09:11 +01:00
|
|
|
[] macro_def: rustc_ast::MacroDef,
|
2021-11-16 09:28:26 +11:00
|
|
|
]);
|
2020-03-21 02:21:21 +01:00
|
|
|
)
|
|
|
|
}
|