@@ -17,7 +17,6 @@ use rustc::util::common::{time, ErrorReported};
1717use rustc:: session:: Session ;
1818use rustc:: session:: config:: { self , CrateType , Input , OutputFilenames , OutputType } ;
1919use rustc:: session:: search_paths:: PathKind ;
20- use rustc_ast_borrowck as borrowck;
2120use rustc_codegen_ssa:: back:: link:: emit_metadata;
2221use rustc_codegen_utils:: codegen_backend:: CodegenBackend ;
2322use rustc_codegen_utils:: link:: filename_for_metadata;
@@ -769,7 +768,6 @@ pub fn default_provide(providers: &mut ty::query::Providers<'_>) {
769768 proc_macro_decls:: provide ( providers) ;
770769 plugin:: build:: provide ( providers) ;
771770 hir:: provide ( providers) ;
772- borrowck:: provide ( providers) ;
773771 mir:: provide ( providers) ;
774772 reachable:: provide ( providers) ;
775773 resolve_lifetime:: provide ( providers) ;
@@ -937,12 +935,6 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
937935 } ) ;
938936 } ) ;
939937
940- time ( sess, "borrow checking" , || {
941- if tcx. use_ast_borrowck ( ) {
942- borrowck:: check_crate ( tcx) ;
943- }
944- } ) ;
945-
946938 time ( sess, "MIR borrow checking" , || {
947939 tcx. par_body_owners ( |def_id| tcx. ensure ( ) . mir_borrowck ( def_id) ) ;
948940 } ) ;
0 commit comments