1
Fork 0

remove unnecessary Key impl

This commit is contained in:
Boxy 2022-09-30 22:52:02 +01:00
parent c1a9cf42b4
commit 611db1d3f3

View file

@ -557,14 +557,3 @@ impl<'tcx> Key for (Ty<'tcx>, ty::ValTree<'tcx>) {
DUMMY_SP DUMMY_SP
} }
} }
impl<'tcx> Key for (&'tcx ty::AssocItem, &'tcx ty::AssocItem, ty::TraitRef<'tcx>) {
#[inline(always)]
fn query_crate_is_local(&self) -> bool {
self.0.def_id.krate == LOCAL_CRATE
}
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
tcx.def_span(self.0.def_id)
}
}