File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
compiler/rustc_incremental/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ pub fn assert_dep_graph(tcx: TyCtxt<'_>) {
57
57
dump_graph ( tcx) ;
58
58
}
59
59
60
+ if !tcx. sess . opts . debugging_opts . query_dep_graph {
61
+ return ;
62
+ }
63
+
60
64
// if the `rustc_attrs` feature is not enabled, then the
61
65
// attributes we are interested in cannot be present anyway, so
62
66
// skip the walk.
Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ impl Assertion {
148
148
}
149
149
150
150
pub fn check_dirty_clean_annotations ( tcx : TyCtxt < ' _ > ) {
151
+ if !tcx. sess . opts . debugging_opts . query_dep_graph {
152
+ return ;
153
+ }
154
+
151
155
// can't add `#[rustc_dirty]` etc without opting in to this feature
152
156
if !tcx. features ( ) . rustc_attrs {
153
157
return ;
You can’t perform that action at this time.
0 commit comments