@@ -46,7 +46,6 @@ use rustc_session::cgu_reuse_tracker::CguReuse;
4646use rustc_session:: config:: { self , EntryFnType } ;
4747use rustc_session:: utils:: NativeLibKind ;
4848use rustc_session:: Session ;
49- use rustc_symbol_mangling:: test as symbol_names_test;
5049use rustc_target:: abi:: { Align , LayoutOf , VariantIdx } ;
5150
5251use std:: cmp;
@@ -486,8 +485,6 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
486485
487486 ongoing_codegen. codegen_finished ( tcx) ;
488487
489- finalize_tcx ( tcx) ;
490-
491488 ongoing_codegen. check_for_errors ( tcx. sess ) ;
492489
493490 return ongoing_codegen;
@@ -688,14 +685,8 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
688685 total_codegen_time. into_inner ( ) ,
689686 ) ;
690687
691- rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
692-
693- symbol_names_test:: report_symbol_names ( tcx) ;
694-
695688 ongoing_codegen. check_for_errors ( tcx. sess ) ;
696689
697- finalize_tcx ( tcx) ;
698-
699690 ongoing_codegen. into_inner ( )
700691}
701692
@@ -746,18 +737,6 @@ impl<B: ExtraBackendMethods> Drop for AbortCodegenOnDrop<B> {
746737 }
747738}
748739
749- fn finalize_tcx ( tcx : TyCtxt < ' _ > ) {
750- tcx. sess . time ( "assert_dep_graph" , || rustc_incremental:: assert_dep_graph ( tcx) ) ;
751- tcx. sess . time ( "serialize_dep_graph" , || rustc_incremental:: save_dep_graph ( tcx) ) ;
752-
753- // We assume that no queries are run past here. If there are new queries
754- // after this point, they'll show up as "<unknown>" in self-profiling data.
755- {
756- let _prof_timer = tcx. prof . generic_activity ( "self_profile_alloc_query_strings" ) ;
757- tcx. alloc_self_profile_query_strings ( ) ;
758- }
759- }
760-
761740impl CrateInfo {
762741 pub fn new ( tcx : TyCtxt < ' _ > ) -> CrateInfo {
763742 let mut info = CrateInfo {
0 commit comments