We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d04c3aa commit 219603aCopy full SHA for 219603a
compiler/rustc_incremental/src/assert_dep_graph.rs
@@ -57,6 +57,10 @@ pub fn assert_dep_graph(tcx: TyCtxt<'_>) {
57
dump_graph(tcx);
58
}
59
60
+ if !tcx.sess.opts.debugging_opts.query_dep_graph {
61
+ return;
62
+ }
63
+
64
// if the `rustc_attrs` feature is not enabled, then the
65
// attributes we are interested in cannot be present anyway, so
66
// skip the walk.
compiler/rustc_incremental/src/persist/dirty_clean.rs
@@ -148,6 +148,10 @@ impl Assertion {
148
149
150
pub fn check_dirty_clean_annotations(tcx: TyCtxt<'_>) {
151
152
153
154
155
// can't add `#[rustc_dirty]` etc without opting in to this feature
156
if !tcx.features().rustc_attrs {
157
return;
0 commit comments