move `assert_module_sources` call down below

This commit is contained in:
Niko Matsakis 2017-04-13 12:38:27 -04:00
parent fe78b546ed
commit 6cb516ad7b
1 changed files with 2 additions and 2 deletions

View File

@ -1140,8 +1140,6 @@ pub fn trans_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
})
.collect();
assert_module_sources::assert_module_sources(tcx, &modules);
for ccx in crate_context_list.iter_need_trans() {
let dep_node = ccx.codegen_unit().work_product_dep_node();
tcx.dep_graph.with_task(dep_node,
@ -1205,6 +1203,8 @@ pub fn trans_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
}
}
assert_module_sources::assert_module_sources(tcx, &modules);
symbol_names_test::report_symbol_names(&shared_ccx);
if shared_ccx.sess().trans_stats() {