We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9735d commit efb7490Copy full SHA for efb7490
compiler/rustc_interface/src/passes.rs
@@ -554,6 +554,11 @@ fn resolver_for_lowering<'tcx>(
554
}
555
556
fn write_dep_info(tcx: TyCtxt<'_>, (): ()) {
557
+ // Make sure name resolution and macro expansion is run for
558
+ // the side-effect of providing a complete set of all
559
+ // accessed files and env vars.
560
+ let _ = tcx.resolver_for_lowering(());
561
+
562
let sess = tcx.sess;
563
let _timer = sess.timer("write_dep_info");
564
let crate_name = tcx.crate_name(LOCAL_CRATE);
0 commit comments