]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
Rollup merge of #34175 - rwz:patch-2, r=alexcrichton
[rust.git] / src / librustc_borrowck / lib.rs
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.
4 //
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.
10
11 #![crate_name = "rustc_borrowck"]
12 #![unstable(feature = "rustc_private", issue = "27812")]
13 #![crate_type = "dylib"]
14 #![crate_type = "rlib"]
15 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
16       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
17       html_root_url = "https://doc.rust-lang.org/nightly/")]
18 #![cfg_attr(not(stage0), deny(warnings))]
19
20 #![allow(non_camel_case_types)]
21
22 #![feature(quote)]
23 #![feature(rustc_diagnostic_macros)]
24 #![feature(rustc_private)]
25 #![feature(staged_api)]
26 #![feature(associated_consts)]
27 #![feature(nonzero)]
28 #![feature(question_mark)]
29 #[macro_use] extern crate log;
30 #[macro_use] extern crate syntax;
31
32 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
33 // refers to the borrowck-specific graphviz adapter traits.
34 extern crate graphviz as dot;
35 #[macro_use]
36 extern crate rustc;
37 extern crate rustc_data_structures;
38 extern crate rustc_mir;
39 extern crate core; // for NonZero
40
41 pub use borrowck::check_crate;
42 pub use borrowck::build_borrowck_dataflow_data_for_fn;
43 pub use borrowck::{AnalysisData, BorrowckCtxt, ElaborateDrops};
44
45 // NB: This module needs to be declared first so diagnostics are
46 // registered before they are used.
47 pub mod diagnostics;
48
49 mod borrowck;
50 mod bitslice;
51 mod indexed_set;
52
53 pub mod graphviz;
54
55 __build_diagnostic_array! { librustc_borrowck, DIAGNOSTICS }