]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
Auto merge of #22541 - Manishearth:rollup, r=Gankro
[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")]
13 #![staged_api]
14 #![crate_type = "dylib"]
15 #![crate_type = "rlib"]
16 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
17       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
18       html_root_url = "http://doc.rust-lang.org/nightly/")]
19
20 #![allow(non_camel_case_types)]
21
22 #![feature(core)]
23 #![feature(int_uint)]
24 #![feature(quote)]
25 #![feature(rustc_diagnostic_macros)]
26 #![feature(rustc_private)]
27 #![feature(staged_api)]
28 #![feature(unsafe_destructor)]
29
30 #[macro_use] extern crate log;
31 #[macro_use] extern crate syntax;
32
33 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
34 // refers to the borrowck-specific graphviz adapter traits.
35 extern crate "graphviz" as dot;
36 extern crate rustc;
37
38 pub use borrowck::check_crate;
39 pub use borrowck::build_borrowck_dataflow_data_for_fn;
40 pub use borrowck::FnPartsWithCFG;
41
42 mod borrowck;
43
44 pub mod graphviz;