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<'_>) {
5757 dump_graph ( tcx) ;
5858 }
5959
60+ if !tcx. sess . opts . debugging_opts . query_dep_graph {
61+ return ;
62+ }
63+
6064 // if the `rustc_attrs` feature is not enabled, then the
6165 // attributes we are interested in cannot be present anyway, so
6266 // skip the walk.
Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ impl Assertion {
148148}
149149
150150pub fn check_dirty_clean_annotations ( tcx : TyCtxt < ' _ > ) {
151+ if !tcx. sess . opts . debugging_opts . query_dep_graph {
152+ return ;
153+ }
154+
151155 // can't add `#[rustc_dirty]` etc without opting in to this feature
152156 if !tcx. features ( ) . rustc_attrs {
153157 return ;
You can’t perform that action at this time.
0 commit comments