about summary refs log tree commit diff
path: root/src/librustc_query_system
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-03-19 18:31:17 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2020-03-26 09:22:46 +0100
commit27e8a95717c9f807ea1b4fc0e85da6813433011e (patch)
treef4f3c94a4cf93bdff2fb5dc3593332e589cf4542 /src/librustc_query_system
parent4ac4ccd727e8eaccae1e58b303347e7991f4d355 (diff)
Generalise Query starting.
Diffstat (limited to 'src/librustc_query_system')
-rw-r--r--src/librustc_query_system/dep_graph/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_query_system/dep_graph/mod.rs b/src/librustc_query_system/dep_graph/mod.rs
index 888151782c7..ca4377e783d 100644
--- a/src/librustc_query_system/dep_graph/mod.rs
+++ b/src/librustc_query_system/dep_graph/mod.rs
@@ -23,7 +23,7 @@ use rustc_errors::Diagnostic;
 use std::fmt;
 use std::hash::Hash;
 
-pub trait DepContext: Copy {
+pub trait DepContext: Copy + DepGraphSafe {
     type DepKind: self::DepKind;
     type StableHashingContext: crate::HashStableContext;
 
@@ -48,6 +48,9 @@ pub trait DepContext: Copy {
     /// Register diagnostics for the given node, for use in next session.
     fn store_diagnostics(&self, dep_node_index: DepNodeIndex, diagnostics: ThinVec<Diagnostic>);
 
+    /// Register diagnostics for the given node, for use in next session.
+    fn store_diagnostics_for_anon_node(&self, dep_node_index: DepNodeIndex, diagnostics: ThinVec<Diagnostic>);
+
     /// Access the profiler.
     fn profiler(&self) -> &SelfProfilerRef;
 }