]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
a5a20af0e4e4ae880558ce2a5bbd653984987c65
[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 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
12       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
13       html_root_url = "https://doc.rust-lang.org/nightly/")]
14
15 #![allow(non_camel_case_types)]
16
17 #![feature(from_ref)]
18 #![feature(quote)]
19
20 #![recursion_limit="256"]
21
22 #[macro_use] extern crate log;
23 extern crate syntax;
24 extern crate syntax_pos;
25 extern crate rustc_errors as errors;
26 extern crate rustc_data_structures;
27
28 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
29 // refers to the borrowck-specific graphviz adapter traits.
30 extern crate graphviz as dot;
31 #[macro_use]
32 extern crate rustc;
33 extern crate rustc_mir;
34
35 pub use borrowck::check_crate;
36 pub use borrowck::build_borrowck_dataflow_data_for_fn;
37
38 mod borrowck;
39
40 pub mod graphviz;
41
42 pub use borrowck::provide;