Cache adt_def query result on disk
This commit is contained in:
parent
f5f90540c9
commit
70fba90412
2 changed files with 5 additions and 2 deletions
|
@ -522,6 +522,7 @@ rustc_queries! {
|
|||
}
|
||||
query adt_def(key: DefId) -> &'tcx ty::AdtDef {
|
||||
desc { |tcx| "computing ADT definition for `{}`", tcx.def_path_str(key) }
|
||||
cache_on_disk_if { true }
|
||||
separate_provide_extern
|
||||
}
|
||||
query adt_destructor(key: DefId) -> Option<ty::Destructor> {
|
||||
|
|
|
@ -155,7 +155,8 @@ encodable_via_deref! {
|
|||
&'tcx mir::Body<'tcx>,
|
||||
&'tcx mir::UnsafetyCheckResult,
|
||||
&'tcx mir::BorrowCheckResult<'tcx>,
|
||||
&'tcx mir::coverage::CodeRegion
|
||||
&'tcx mir::coverage::CodeRegion,
|
||||
&'tcx ty::AdtDef
|
||||
}
|
||||
|
||||
pub trait TyDecoder<'tcx>: Decoder {
|
||||
|
@ -391,7 +392,8 @@ impl_decodable_via_ref! {
|
|||
&'tcx mir::UnsafetyCheckResult,
|
||||
&'tcx mir::BorrowCheckResult<'tcx>,
|
||||
&'tcx mir::coverage::CodeRegion,
|
||||
&'tcx ty::List<ty::BoundVariableKind>
|
||||
&'tcx ty::List<ty::BoundVariableKind>,
|
||||
&'tcx ty::AdtDef
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue