Skip to content

Commit e6cfde1

Browse files
committed
rdr-perf: only check rdr test attributes when the query_dep_graph option is enabled
1 parent af40667 commit e6cfde1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

compiler/rustc_incremental/src/persist/rdr_hashes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use rustc_span::{Span, Symbol};
88
use tracing::debug;
99

1010
pub(crate) fn check_rdr_test_attrs(tcx: TyCtxt<'_>) {
11+
if !tcx.sess.opts.unstable_opts.query_dep_graph {
12+
return;
13+
}
1114
// can't add the attributes without opting into this feature
1215
if !tcx.features().rustc_attrs() {
1316
return;

0 commit comments

Comments
 (0)