We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
recover
1 parent f445077 commit 2f12009Copy full SHA for 2f12009
src/librustc/dep_graph/dep_node.rs
@@ -377,6 +377,12 @@ pub(crate) trait DepNodeParams<'tcx>: fmt::Debug + Sized {
377
format!("{:?}", self)
378
}
379
380
+ /// This method tries to recover the query key from the given `DepNode`,
381
+ /// something which is needed when forcing `DepNode`s during red-green
382
+ /// evaluation. The query system will only call this method if
383
+ /// `CAN_RECONSTRUCT_QUERY_KEY` is `true`.
384
+ /// It is always valid to return `None` here, in which case incremental
385
+ /// compilation will treat the query as having changed instead of forcing it.
386
fn recover(tcx: TyCtxt<'tcx>, dep_node: &DepNode) -> Option<Self>;
387
388
0 commit comments