Skip to content

Commit 6d68574

Browse files
committed
Ensure macro expansion runs before writing the dep info
1 parent b0505d0 commit 6d68574

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_interface/src/passes.rs

+5
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ fn resolver_for_lowering<'tcx>(
565565
}
566566

567567
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+
568573
let sess = tcx.sess;
569574
let _timer = sess.timer("write_dep_info");
570575
let crate_name = tcx.crate_name(LOCAL_CRATE);

0 commit comments

Comments
 (0)