]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_borrowck/lib.rs
Auto merge of #45283 - alexcrichton:used-mut-nodes, r=arielb1
[rust.git] / src / librustc_borrowck / lib.rs
index 0a39dc1d8b5a2c6709e00b0177765c737693db4c..78aacd49f807dafafc8ae37f7f29db8ed6e81e27 100644 (file)
 #![allow(non_camel_case_types)]
 
 #![feature(quote)]
-#![feature(rustc_diagnostic_macros)]
 
 #[macro_use] extern crate log;
-#[macro_use] extern crate syntax;
+extern crate syntax;
 extern crate syntax_pos;
 extern crate rustc_errors as errors;
 extern crate rustc_back;
 pub use borrowck::check_crate;
 pub use borrowck::build_borrowck_dataflow_data_for_fn;
 
-// NB: This module needs to be declared first so diagnostics are
-// registered before they are used.
-mod diagnostics;
-
 mod borrowck;
 
 pub mod graphviz;
 
 pub use borrowck::provide;
-
-__build_diagnostic_array! { librustc_borrowck, DIAGNOSTICS }