Make QueryEngine opaque to TyCtxt.
This commit is contained in:
parent
3f868b1791
commit
5d71b99690
12 changed files with 99 additions and 63 deletions
|
@ -354,10 +354,9 @@ fn add_query_description_impl(
|
|||
quote! {
|
||||
#[inline]
|
||||
fn try_load_from_disk(
|
||||
tcx: QueryCtxt<'tcx>,
|
||||
id: SerializedDepNodeIndex
|
||||
#tcx: QueryCtxt<'tcx>,
|
||||
#id: SerializedDepNodeIndex
|
||||
) -> Option<Self::Value> {
|
||||
let (#tcx, #id) = (*tcx, id);
|
||||
#block
|
||||
}
|
||||
}
|
||||
|
@ -394,11 +393,10 @@ fn add_query_description_impl(
|
|||
#[inline]
|
||||
#[allow(unused_variables, unused_braces)]
|
||||
fn cache_on_disk(
|
||||
tcx: QueryCtxt<'tcx>,
|
||||
key: &Self::Key,
|
||||
value: Option<&Self::Value>
|
||||
#tcx: QueryCtxt<'tcx>,
|
||||
#key: &Self::Key,
|
||||
#value: Option<&Self::Value>
|
||||
) -> bool {
|
||||
let (#tcx, #key, #value) = (*tcx, key, value);
|
||||
#expr
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue