]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
Fix error message confuses locals and temporaries
[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 #![deny(warnings)]
15
16 #![allow(non_camel_case_types)]
17
18 #![feature(from_ref)]
19 #![feature(match_default_bindings)]
20 #![feature(quote)]
21
22 #[macro_use] extern crate log;
23 extern crate syntax;
24 extern crate syntax_pos;
25 extern crate rustc_errors as errors;
26
27 // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
28 // refers to the borrowck-specific graphviz adapter traits.
29 extern crate graphviz as dot;
30 #[macro_use]
31 extern crate rustc;
32 extern crate rustc_mir;
33
34 pub use borrowck::check_crate;
35 pub use borrowck::build_borrowck_dataflow_data_for_fn;
36
37 mod borrowck;
38
39 pub mod graphviz;
40
41 pub use borrowck::provide;