11/// This higher-order macro declares a list of types which can be allocated by `Arena`.
22///
33/// Specifying the `decode` modifier will add decode impls for `&T` and `&[T]` where `T` is the type
4- /// listed. These impls will appear in the implement_ty_decoder! macro.
4+ /// listed. See the `impl_arena_allocatable_decoder!` macro for more .
55#[ macro_export]
66macro_rules! arena_types {
77 ( $macro: path) => (
88 $macro!( [
99 [ ] layout: rustc_abi:: LayoutData <rustc_abi:: FieldIdx , rustc_abi:: VariantIdx >,
1010 [ ] proxy_coroutine_layout: rustc_middle:: mir:: CoroutineLayout <' tcx>,
1111 [ ] fn_abi: rustc_target:: callconv:: FnAbi <' tcx, rustc_middle:: ty:: Ty <' tcx>>,
12- // AdtDef are interned and compared by address
13- [ decode] adt_def: rustc_middle:: ty:: AdtDefData ,
12+ [ ] adt_def: rustc_middle:: ty:: AdtDefData ,
1413 [ ] steal_thir: rustc_data_structures:: steal:: Steal <rustc_middle:: thir:: Thir <' tcx>>,
1514 [ ] steal_mir: rustc_data_structures:: steal:: Steal <rustc_middle:: mir:: Body <' tcx>>,
1615 [ decode] mir: rustc_middle:: mir:: Body <' tcx>,
@@ -27,7 +26,7 @@ macro_rules! arena_types {
2726 rustc_middle:: mir:: Body <' tcx>
2827 >,
2928 [ decode] typeck_results: rustc_middle:: ty:: TypeckResults <' tcx>,
30- [ decode ] borrowck_result: rustc_data_structures:: fx:: FxIndexMap <
29+ [ ] borrowck_result: rustc_data_structures:: fx:: FxIndexMap <
3130 rustc_hir:: def_id:: LocalDefId ,
3231 rustc_middle:: ty:: DefinitionSiteHiddenType <' tcx>,
3332 >,
@@ -100,7 +99,7 @@ macro_rules! arena_types {
10099 // (during lowering) and the `rustc_middle` arena (for decoding MIR)
101100 [ decode] asm_template: rustc_ast:: InlineAsmTemplatePiece ,
102101 [ decode] used_trait_imports: rustc_data_structures:: unord:: UnordSet <rustc_hir:: def_id:: LocalDefId >,
103- [ decode ] is_late_bound_map: rustc_data_structures:: fx:: FxIndexSet <rustc_hir:: ItemLocalId >,
102+ [ ] is_late_bound_map: rustc_data_structures:: fx:: FxIndexSet <rustc_hir:: ItemLocalId >,
104103 [ decode] impl_source: rustc_middle:: traits:: ImplSource <' tcx, ( ) >,
105104
106105 [ ] dep_kind_vtable: rustc_middle:: dep_graph:: DepKindVTable <' tcx>,
@@ -111,7 +110,7 @@ macro_rules! arena_types {
111110 rustc_middle:: ty:: EarlyBinder <' tcx, rustc_middle:: ty:: Ty <' tcx>>
112111 >,
113112 [ ] external_constraints: rustc_middle:: traits:: solve:: ExternalConstraintsData <rustc_middle:: ty:: TyCtxt <' tcx>>,
114- [ decode ] doc_link_resolutions: rustc_hir:: def:: DocLinkResMap ,
113+ [ ] doc_link_resolutions: rustc_hir:: def:: DocLinkResMap ,
115114 [ ] stripped_cfg_items: rustc_hir:: attrs:: StrippedCfgItem ,
116115 [ ] mod_child: rustc_middle:: metadata:: ModChild ,
117116 [ ] features: rustc_feature:: Features ,
0 commit comments