]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
rollup merge of #20482: kmcallister/macro-reform
[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 #![experimental]
13 #![crate_type = "dylib"]
14 #![crate_type = "rlib"]
15 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
16       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
17       html_root_url = "http://doc.rust-lang.org/nightly/")]
18
19 #![allow(unknown_features)]
20 #![feature(default_type_params, globs, macro_rules, phase, quote)]
21 #![feature(slicing_syntax, unsafe_destructor)]
22 #![feature(rustc_diagnostic_macros)]
23 #![feature(unboxed_closures)]
24 #![feature(old_orphan_check)]
25 #![allow(non_camel_case_types)]
26
27 #[cfg(stage0)]
28 #[phase(plugin, link)]
29 extern crate log;
30
31 #[cfg(not(stage0))]
32 #[macro_use]
33 extern crate log;
34
35 #[cfg(stage0)]
36 #[phase(plugin, link)]
37 extern crate syntax;
38
39 #[cfg(not(stage0))]
40 #[macro_use]
41 extern crate syntax;
42
43 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
44 // refers to the borrowck-specific graphviz adapter traits.
45 extern crate "graphviz" as dot;
46 extern crate rustc;
47
48 pub use borrowck::check_crate;
49 pub use borrowck::build_borrowck_dataflow_data_for_fn;
50 pub use borrowck::FnPartsWithCFG;
51
52 mod borrowck;
53
54 pub mod graphviz;