Don't require a QueryContext to access the DepGraph.
This commit is contained in:
parent
7794fbb478
commit
211b05aef3
6 changed files with 13 additions and 14 deletions
|
@ -111,6 +111,11 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
|
|||
|| self.sess.opts.debugging_opts.query_dep_graph
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn dep_graph(&self) -> &DepGraph {
|
||||
&self.dep_graph
|
||||
}
|
||||
|
||||
fn try_force_from_dep_node(&self, dep_node: &DepNode) -> bool {
|
||||
// FIXME: This match is just a workaround for incremental bugs and should
|
||||
// be removed. https://github.com/rust-lang/rust/issues/62649 is one such
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue