Skip to content

Commit efb7490

Browse files
committed
Ensure macro expansion runs before writing the dep info
1 parent 2c9735d commit efb7490

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
@@ -554,6 +554,11 @@ fn resolver_for_lowering<'tcx>(
554554
}
555555

556556
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+
557562
let sess = tcx.sess;
558563
let _timer = sess.timer("write_dep_info");
559564
let crate_name = tcx.crate_name(LOCAL_CRATE);

0 commit comments

Comments
 (0)