]> git.proxmox.com Git - rustc.git/blame - src/librustc_borrowck/lib.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / librustc_borrowck / lib.rs
CommitLineData
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
11#![crate_name = "rustc_borrowck"]
e9174d1e 12#![unstable(feature = "rustc_private", issue = "27812")]
1a4d82fc
JJ
13#![crate_type = "dylib"]
14#![crate_type = "rlib"]
e9174d1e 15#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
62682a34 16 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
e9174d1e 17 html_root_url = "https://doc.rust-lang.org/nightly/")]
7453a54e 18#![cfg_attr(not(stage0), deny(warnings))]
1a4d82fc 19
85aaf69f
SL
20#![allow(non_camel_case_types)]
21
1a4d82fc 22#![feature(quote)]
1a4d82fc 23#![feature(rustc_diagnostic_macros)]
85aaf69f
SL
24#![feature(rustc_private)]
25#![feature(staged_api)]
54a0048b
SL
26#![feature(associated_consts)]
27#![feature(nonzero)]
28#![feature(question_mark)]
1a4d82fc
JJ
29#[macro_use] extern crate log;
30#[macro_use] extern crate syntax;
31
32// for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
33// refers to the borrowck-specific graphviz adapter traits.
c34b1796 34extern crate graphviz as dot;
54a0048b 35#[macro_use]
1a4d82fc 36extern crate rustc;
54a0048b
SL
37extern crate rustc_mir;
38extern crate core; // for NonZero
1a4d82fc
JJ
39
40pub use borrowck::check_crate;
41pub use borrowck::build_borrowck_dataflow_data_for_fn;
92a42be0 42pub use borrowck::{AnalysisData, BorrowckCtxt};
1a4d82fc 43
9346a6ac
AL
44// NB: This module needs to be declared first so diagnostics are
45// registered before they are used.
46pub mod diagnostics;
47
1a4d82fc 48mod borrowck;
54a0048b 49mod bitslice;
1a4d82fc
JJ
50
51pub mod graphviz;
d9579d0f 52
d9579d0f 53__build_diagnostic_array! { librustc_borrowck, DIAGNOSTICS }