about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-04-13 12:38:27 -0400
committerNiko Matsakis <niko@alum.mit.edu>2017-04-13 18:33:09 -0400
commit6cb516ad7b6e058be547e7ee5dc78762cc9b809b (patch)
tree2b8937308eb4ce5b30888beb5fdcc46f7730142c
parentfe78b546ed6764cae5d793bf75ff756d94007489 (diff)
move `assert_module_sources` call down below
-rw-r--r--src/librustc_trans/base.rs4
1 files 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() {