]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/lib.rs
Fixes issue #43205: ICE in Rvalue::Len evaluation.
[rust.git] / src / librustc_mir / lib.rs
index ea8624930e5f5dd05e4d308839062dac4fc29b69..7aa4679992471fa436bd11324728b22f8ebc25ed 100644 (file)
@@ -32,6 +32,7 @@
 #[macro_use]
 extern crate rustc;
 extern crate rustc_data_structures;
+extern crate rustc_errors;
 #[macro_use]
 #[no_link]
 extern crate rustc_bitflags;
 extern crate rustc_const_eval;
 extern crate core; // for NonZero
 
-pub mod diagnostics;
+mod diagnostics;
 
+mod borrow_check;
 mod build;
-pub mod dataflow;
+mod dataflow;
 mod hair;
 mod shim;
 pub mod transform;
@@ -54,6 +56,7 @@
 use rustc::ty::maps::Providers;
 
 pub fn provide(providers: &mut Providers) {
+    borrow_check::provide(providers);
     shim::provide(providers);
     transform::provide(providers);
 }