implement (as of now still unused) query for valtree -> constvalue conversion

This commit is contained in:
b-naber 2022-04-21 16:37:24 +02:00
parent 1157dc7167
commit 28af967bb9
3 changed files with 20 additions and 0 deletions

View file

@ -502,3 +502,14 @@ impl<'tcx> Key for (ty::Instance<'tcx>, &'tcx ty::List<Ty<'tcx>>) {
self.0.default_span(tcx)
}
}
impl<'tcx> Key for (Ty<'tcx>, ty::ValTree<'tcx>) {
#[inline(always)]
fn query_crate_is_local(&self) -> bool {
true
}
fn default_span(&self, _: TyCtxt<'_>) -> Span {
DUMMY_SP
}
}