Skip to content

Commit 463b197

Browse files
committed
don't borrowck::check_crate(tcx) anymore.
1 parent 83dcdd9 commit 463b197

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/librustc_interface/passes.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use rustc::util::common::{time, ErrorReported};
1717
use rustc::session::Session;
1818
use rustc::session::config::{self, CrateType, Input, OutputFilenames, OutputType};
1919
use rustc::session::search_paths::PathKind;
20-
use rustc_ast_borrowck as borrowck;
2120
use rustc_codegen_ssa::back::link::emit_metadata;
2221
use rustc_codegen_utils::codegen_backend::CodegenBackend;
2322
use 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

Comments
 (0)