We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0505d0 commit 6d68574Copy full SHA for 6d68574
compiler/rustc_interface/src/passes.rs
@@ -565,6 +565,11 @@ fn resolver_for_lowering<'tcx>(
565
}
566
567
fn write_dep_info(tcx: TyCtxt<'_>, (): ()) {
568
+ // Make sure name resolution and macro expansion is run for
569
+ // the side-effect of providing a complete set of all
570
+ // accessed files and env vars.
571
+ let _ = tcx.resolver_for_lowering(());
572
+
573
let sess = tcx.sess;
574
let _timer = sess.timer("write_dep_info");
575
let crate_name = tcx.crate_name(LOCAL_CRATE);
0 commit comments