[] tables: rustc::ty::TypeckTables<$tcx>,
[] const_allocs: rustc::mir::interpret::Allocation,
[] vtable_method: Option<(
- rustc::hir::def_id::DefId,
+ rustc_hir::def_id::DefId,
rustc::ty::subst::SubstsRef<$tcx>
)>,
- [few, decode] mir_keys: rustc::hir::def_id::DefIdSet,
+ [few, decode] mir_keys: rustc_hir::def_id::DefIdSet,
[decode] specialization_graph: rustc::traits::specialization_graph::Graph,
[] region_scope_tree: rustc::middle::region::ScopeTree,
- [] item_local_set: rustc::hir::ItemLocalSet,
+ [] item_local_set: rustc_hir::ItemLocalSet,
[decode] mir_const_qualif: rustc_index::bit_set::BitSet<rustc::mir::Local>,
[] trait_impls_of: rustc::ty::trait_def::TraitImpls,
[] dropck_outlives:
>,
[few] crate_inherent_impls: rustc::ty::CrateInherentImpls,
[few] upstream_monomorphizations:
- rustc::hir::def_id::DefIdMap<
+ rustc_hir::def_id::DefIdMap<
rustc_data_structures::fx::FxHashMap<
rustc::ty::subst::SubstsRef<'tcx>,
- rustc::hir::def_id::CrateNum
+ rustc_hir::def_id::CrateNum
>
>,
[few] diagnostic_items: rustc_data_structures::fx::FxHashMap<
rustc_span::symbol::Symbol,
- rustc::hir::def_id::DefId,
+ rustc_hir::def_id::DefId,
>,
[few] resolve_lifetimes: rustc::middle::resolve_lifetime::ResolveLifetimes,
[few] lint_levels: rustc::lint::LintLevelMap,
[few] stability_index: rustc::middle::stability::Index<'tcx>,
[few] features: rustc_feature::Features,
- [few] all_traits: Vec<rustc::hir::def_id::DefId>,
+ [few] all_traits: Vec<rustc_hir::def_id::DefId>,
[few] privacy_access_levels: rustc::middle::privacy::AccessLevels,
[few] target_features_whitelist: rustc_data_structures::fx::FxHashMap<
String,
Option<rustc_span::symbol::Symbol>
>,
[few] wasm_import_module_map: rustc_data_structures::fx::FxHashMap<
- rustc::hir::def_id::DefId,
+ rustc_hir::def_id::DefId,
String
>,
[few] get_lib_features: rustc::middle::lib_features::LibFeatures,
[few] defined_lib_features: rustc::middle::lang_items::LanguageItems,
- [few] visible_parent_map: rustc::hir::def_id::DefIdMap<rustc::hir::def_id::DefId>,
+ [few] visible_parent_map: rustc_hir::def_id::DefIdMap<rustc_hir::def_id::DefId>,
[few] foreign_module: rustc::middle::cstore::ForeignModule,
[few] foreign_modules: Vec<rustc::middle::cstore::ForeignModule>,
- [few] reachable_non_generics: rustc::hir::def_id::DefIdMap<
+ [few] reachable_non_generics: rustc_hir::def_id::DefIdMap<
rustc::middle::exported_symbols::SymbolExportLevel
>,
[few] crate_variances: rustc::ty::CrateVariancesMap<'tcx>,
[few] inferred_outlives_crate: rustc::ty::CratePredicatesMap<'tcx>,
- [] upvars: rustc_data_structures::fx::FxIndexMap<rustc::hir::HirId, rustc::hir::Upvar>,
+ [] upvars: rustc_data_structures::fx::FxIndexMap<rustc_hir::HirId, rustc_hir::Upvar>,
+
+ // Interned types
+ [] tys: rustc::ty::TyS<$tcx>,
// HIR types
[few] hir_forest: rustc::hir::map::Forest<$tcx>,
- [] arm: rustc::hir::Arm<$tcx>,
+ [] arm: rustc_hir::Arm<$tcx>,
[] attribute: syntax::ast::Attribute,
- [] block: rustc::hir::Block<$tcx>,
- [] bare_fn_ty: rustc::hir::BareFnTy<$tcx>,
- [few] global_asm: rustc::hir::GlobalAsm,
- [] generic_arg: rustc::hir::GenericArg<$tcx>,
- [] generic_args: rustc::hir::GenericArgs<$tcx>,
- [] generic_bound: rustc::hir::GenericBound<$tcx>,
- [] generic_param: rustc::hir::GenericParam<$tcx>,
- [] expr: rustc::hir::Expr<$tcx>,
- [] field: rustc::hir::Field<$tcx>,
- [] field_pat: rustc::hir::FieldPat<$tcx>,
- [] fn_decl: rustc::hir::FnDecl<$tcx>,
- [] foreign_item: rustc::hir::ForeignItem<$tcx>,
- [] impl_item_ref: rustc::hir::ImplItemRef<$tcx>,
- [] inline_asm: rustc::hir::InlineAsm<$tcx>,
- [] local: rustc::hir::Local<$tcx>,
- [few] macro_def: rustc::hir::MacroDef<$tcx>,
- [] param: rustc::hir::Param<$tcx>,
- [] pat: rustc::hir::Pat<$tcx>,
- [] path: rustc::hir::Path<$tcx>,
- [] path_segment: rustc::hir::PathSegment<$tcx>,
- [] poly_trait_ref: rustc::hir::PolyTraitRef<$tcx>,
- [] qpath: rustc::hir::QPath<$tcx>,
- [] stmt: rustc::hir::Stmt<$tcx>,
- [] struct_field: rustc::hir::StructField<$tcx>,
- [] trait_item_ref: rustc::hir::TraitItemRef,
- [] ty: rustc::hir::Ty<$tcx>,
- [] type_binding: rustc::hir::TypeBinding<$tcx>,
- [] variant: rustc::hir::Variant<$tcx>,
- [] where_predicate: rustc::hir::WherePredicate<$tcx>,
+ [] block: rustc_hir::Block<$tcx>,
+ [] bare_fn_ty: rustc_hir::BareFnTy<$tcx>,
+ [few] global_asm: rustc_hir::GlobalAsm,
+ [] generic_arg: rustc_hir::GenericArg<$tcx>,
+ [] generic_args: rustc_hir::GenericArgs<$tcx>,
+ [] generic_bound: rustc_hir::GenericBound<$tcx>,
+ [] generic_param: rustc_hir::GenericParam<$tcx>,
+ [] expr: rustc_hir::Expr<$tcx>,
+ [] field: rustc_hir::Field<$tcx>,
+ [] field_pat: rustc_hir::FieldPat<$tcx>,
+ [] fn_decl: rustc_hir::FnDecl<$tcx>,
+ [] foreign_item: rustc_hir::ForeignItem<$tcx>,
+ [] impl_item_ref: rustc_hir::ImplItemRef<$tcx>,
+ [] inline_asm: rustc_hir::InlineAsm<$tcx>,
+ [] local: rustc_hir::Local<$tcx>,
+ [few] macro_def: rustc_hir::MacroDef<$tcx>,
+ [] param: rustc_hir::Param<$tcx>,
+ [] pat: rustc_hir::Pat<$tcx>,
+ [] path: rustc_hir::Path<$tcx>,
+ [] path_segment: rustc_hir::PathSegment<$tcx>,
+ [] poly_trait_ref: rustc_hir::PolyTraitRef<$tcx>,
+ [] qpath: rustc_hir::QPath<$tcx>,
+ [] stmt: rustc_hir::Stmt<$tcx>,
+ [] struct_field: rustc_hir::StructField<$tcx>,
+ [] trait_item_ref: rustc_hir::TraitItemRef,
+ [] ty: rustc_hir::Ty<$tcx>,
+ [] type_binding: rustc_hir::TypeBinding<$tcx>,
+ [] variant: rustc_hir::Variant<$tcx>,
+ [] where_predicate: rustc_hir::WherePredicate<$tcx>,
], $tcx);
)
}
([], [$($a:tt $name:ident: $ty:ty,)*], $tcx:lifetime) => {
#[derive(Default)]
pub struct Arena<$tcx> {
- dropless: DroplessArena,
+ pub dropless: DroplessArena,
drop: DropArena,
$($name: arena_for_type!($a[$ty]),)*
}