}
}
+impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for () {
+ #[inline(always)]
+ fn can_reconstruct_query_key() -> bool {
+ true
+ }
+
+ fn to_fingerprint(&self, _: TyCtxt<'tcx>) -> Fingerprint {
+ Fingerprint::ZERO
+ }
+
+ fn recover(_: TyCtxt<'tcx>, _: &DepNode) -> Option<Self> {
+ Some(())
+ }
+}
+
impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for DefId {
- #[inline]
+ #[inline(always)]
fn can_reconstruct_query_key() -> bool {
true
}
}
impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for LocalDefId {
- #[inline]
+ #[inline(always)]
fn can_reconstruct_query_key() -> bool {
true
}
}
impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for CrateNum {
- #[inline]
+ #[inline(always)]
fn can_reconstruct_query_key() -> bool {
true
}
}
impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for (DefId, DefId) {
- #[inline]
+ #[inline(always)]
fn can_reconstruct_query_key() -> bool {
false
}
}
impl<'tcx> DepNodeParams<TyCtxt<'tcx>> for HirId {
- #[inline]
+ #[inline(always)]
fn can_reconstruct_query_key() -> bool {
false
}
}
}
-impl<Ctxt: DepContext> DepNodeParams<Ctxt> for () {
- fn to_fingerprint(&self, _: Ctxt) -> Fingerprint {
- Fingerprint::ZERO
- }
-}
-
/// A "work product" corresponds to a `.o` (or other) file that we
/// save in between runs. These IDs do not have a `DefId` but rather
/// some independent path or string that persists between runs without