1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![crate_name = "rustc_borrowck"]
12 #![crate_type = "dylib"]
13 #![crate_type = "rlib"]
14 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
15 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
16 html_root_url = "https://doc.rust-lang.org/nightly/")]
19 #![allow(non_camel_case_types)]
22 #![feature(rustc_diagnostic_macros)]
23 #![feature(associated_consts)]
26 #![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
27 #![cfg_attr(stage0, feature(rustc_private))]
28 #![cfg_attr(stage0, feature(staged_api))]
30 #[macro_use] extern crate log;
31 #[macro_use] extern crate syntax;
32 extern crate syntax_pos;
33 extern crate rustc_errors as errors;
35 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
36 // refers to the borrowck-specific graphviz adapter traits.
37 extern crate graphviz as dot;
40 extern crate rustc_data_structures;
41 extern crate rustc_mir;
42 extern crate core; // for NonZero
44 pub use borrowck::check_crate;
45 pub use borrowck::build_borrowck_dataflow_data_for_fn;
46 pub use borrowck::{AnalysisData, BorrowckCtxt, ElaborateDrops};
48 // NB: This module needs to be declared first so diagnostics are
49 // registered before they are used.
56 pub use borrowck::provide;
58 __build_diagnostic_array! { librustc_borrowck, DIAGNOSTICS }