From 6cb516ad7b6e058be547e7ee5dc78762cc9b809b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 13 Apr 2017 12:38:27 -0400 Subject: [PATCH] move `assert_module_sources` call down below --- src/librustc_trans/base.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_trans/base.rs b/src/librustc_trans/base.rs index 0a08f49d818..ce136a7883c 100644 --- a/src/librustc_trans/base.rs +++ b/src/librustc_trans/base.rs @@ -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() {