File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
compiler/rustc_query_system/src/dep_graph Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -538,10 +538,14 @@ impl<D: Deps> DepGraph<D> {
538
538
#[ inline]
539
539
pub fn record_diagnostic < Qcx : QueryContext > ( & self , qcx : Qcx , diagnostic : & DiagInner ) {
540
540
if let Some ( ref data) = self . data {
541
- self . read_index ( data. encode_diagnostic ( qcx, diagnostic) ) ;
541
+ D :: read_deps ( |task_deps| match task_deps {
542
+ TaskDepsRef :: EvalAlways | TaskDepsRef :: Ignore => return ,
543
+ TaskDepsRef :: Forbid | TaskDepsRef :: Allow ( ..) => {
544
+ self . read_index ( data. encode_diagnostic ( qcx, diagnostic) ) ;
545
+ }
546
+ } )
542
547
}
543
548
}
544
-
545
549
/// This forces a diagnostic node green by running its side effect. `prev_index` would
546
550
/// refer to a node created used `encode_diagnostic` in the previous session.
547
551
#[ inline]
You can’t perform that action at this time.
0 commit comments