Skip to content

Commit 6cb516a

Browse files
committed
move assert_module_sources call down below
1 parent fe78b54 commit 6cb516a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_trans/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,6 @@ pub fn trans_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
11401140
})
11411141
.collect();
11421142

1143-
assert_module_sources::assert_module_sources(tcx, &modules);
1144-
11451143
for ccx in crate_context_list.iter_need_trans() {
11461144
let dep_node = ccx.codegen_unit().work_product_dep_node();
11471145
tcx.dep_graph.with_task(dep_node,
@@ -1205,6 +1203,8 @@ pub fn trans_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
12051203
}
12061204
}
12071205

1206+
assert_module_sources::assert_module_sources(tcx, &modules);
1207+
12081208
symbol_names_test::report_symbol_names(&shared_ccx);
12091209

12101210
if shared_ccx.sess().trans_stats() {

0 commit comments

Comments
 (0)