Encode whether foreign opaques are TAITs or not
This commit is contained in:
parent
79335f1ac4
commit
200f466d1a
8 changed files with 23 additions and 2 deletions
|
@ -223,6 +223,7 @@ provide! { tcx, def_id, other, cdata,
|
|||
generator_kind => { table }
|
||||
trait_def => { table }
|
||||
deduced_param_attrs => { table }
|
||||
is_type_alias_impl_trait => { table }
|
||||
collect_return_position_impl_trait_in_trait_tys => {
|
||||
Ok(cdata
|
||||
.root
|
||||
|
|
|
@ -1514,6 +1514,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
}
|
||||
hir::ItemKind::OpaqueTy(..) => {
|
||||
self.encode_explicit_item_bounds(def_id);
|
||||
record!(self.tables.is_type_alias_impl_trait[def_id] <- self.tcx.is_type_alias_impl_trait(def_id));
|
||||
}
|
||||
hir::ItemKind::Enum(..) => {
|
||||
let adt_def = self.tcx.adt_def(def_id);
|
||||
|
|
|
@ -404,6 +404,7 @@ define_tables! {
|
|||
proc_macro: Table<DefIndex, MacroKind>,
|
||||
module_reexports: Table<DefIndex, LazyArray<ModChild>>,
|
||||
deduced_param_attrs: Table<DefIndex, LazyArray<DeducedParamAttrs>>,
|
||||
is_type_alias_impl_trait: Table<DefIndex, LazyValue<bool>>,
|
||||
|
||||
trait_impl_trait_tys: Table<DefIndex, LazyValue<FxHashMap<DefId, Ty<'static>>>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue