]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
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 | ||
c34b1796 AL |
11 | // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364) |
12 | #![cfg_attr(stage0, feature(custom_attribute))] | |
1a4d82fc | 13 | #![crate_name = "rustc_borrowck"] |
85aaf69f | 14 | #![unstable(feature = "rustc_private")] |
1a4d82fc JJ |
15 | #![staged_api] |
16 | #![crate_type = "dylib"] | |
17 | #![crate_type = "rlib"] | |
18 | #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", | |
19 | html_favicon_url = "http://www.rust-lang.org/favicon.ico", | |
20 | html_root_url = "http://doc.rust-lang.org/nightly/")] | |
21 | ||
85aaf69f SL |
22 | #![allow(non_camel_case_types)] |
23 | ||
1a4d82fc | 24 | #![feature(quote)] |
1a4d82fc | 25 | #![feature(rustc_diagnostic_macros)] |
85aaf69f SL |
26 | #![feature(rustc_private)] |
27 | #![feature(staged_api)] | |
28 | #![feature(unsafe_destructor)] | |
c34b1796 | 29 | #![feature(into_cow)] |
1a4d82fc JJ |
30 | |
31 | #[macro_use] extern crate log; | |
32 | #[macro_use] extern crate syntax; | |
33 | ||
34 | // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck` | |
35 | // refers to the borrowck-specific graphviz adapter traits. | |
c34b1796 | 36 | extern crate graphviz as dot; |
1a4d82fc JJ |
37 | extern crate rustc; |
38 | ||
39 | pub use borrowck::check_crate; | |
40 | pub use borrowck::build_borrowck_dataflow_data_for_fn; | |
41 | pub use borrowck::FnPartsWithCFG; | |
42 | ||
43 | mod borrowck; | |
44 | ||
45 | pub mod graphviz; |