]> git.lizzy.rs Git - rust.git/commitdiff
move `assert_module_sources` call down below
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 13 Apr 2017 16:38:27 +0000 (12:38 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 13 Apr 2017 22:33:09 +0000 (18:33 -0400)
src/librustc_trans/base.rs

index 0a08f49d818dacc71054ab15b1ad162269358b9f..ce136a7883cc0c1021f8846bf10e98d3e0631097 100644 (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 @@ fn trans_decl_task<'a, 'tcx>(ccx: CrateContext<'a, 'tcx>,
         }
     }
 
+    assert_module_sources::assert_module_sources(tcx, &modules);
+
     symbol_names_test::report_symbol_names(&shared_ccx);
 
     if shared_ccx.sess().trans_stats() {