]> git.lizzy.rs Git - rust.git/blob - src/librustc_borrowck/lib.rs
rustdoc: Added issue_tracker_base_url annotations to crates
[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 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
12 #![cfg_attr(stage0, feature(custom_attribute))]
13 #![crate_name = "rustc_borrowck"]
14 #![unstable(feature = "rustc_private", issue = "27812")]
15 #![staged_api]
16 #![crate_type = "dylib"]
17 #![crate_type = "rlib"]
18 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
19       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
20       html_root_url = "https://doc.rust-lang.org/nightly/",
21       issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
22
23 #![allow(non_camel_case_types)]
24
25 #![feature(quote)]
26 #![feature(rustc_diagnostic_macros)]
27 #![feature(rustc_private)]
28 #![feature(staged_api)]
29 #![feature(into_cow)]
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.
36 extern crate graphviz as dot;
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 // NB: This module needs to be declared first so diagnostics are
44 // registered before they are used.
45 pub mod diagnostics;
46
47 mod borrowck;
48
49 pub mod graphviz;
50
51 __build_diagnostic_array! { librustc_borrowck, DIAGNOSTICS }