Do not require QueryCtxt for cache_on_disk.
This commit is contained in:
parent
7c0920f5fb
commit
138e96b719
4 changed files with 5 additions and 6 deletions
|
@ -372,7 +372,7 @@ fn add_query_description_impl(
|
|||
quote! {
|
||||
#[allow(unused_variables, unused_braces)]
|
||||
#[inline]
|
||||
fn cache_on_disk(#tcx: QueryCtxt<'tcx>, #key: &Self::Key) -> bool {
|
||||
fn cache_on_disk(#tcx: TyCtxt<'tcx>, #key: &Self::Key) -> bool {
|
||||
#expr
|
||||
}
|
||||
|
||||
|
@ -384,7 +384,7 @@ fn add_query_description_impl(
|
|||
}
|
||||
quote! {
|
||||
#[inline]
|
||||
fn cache_on_disk(_: QueryCtxt<'tcx>, _: &Self::Key) -> bool {
|
||||
fn cache_on_disk(_: TyCtxt<'tcx>, _: &Self::Key) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue