]> git.lizzy.rs Git - rust.git/blob - src/librustc_mir/lib.rs
Auto merge of #43698 - MaloJaffre:confusables, r=eddyb
[rust.git] / src / librustc_mir / lib.rs
1 // Copyright 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 /*!
12
13 Rust MIR: a lowered representation of Rust. Also: an experiment!
14
15 */
16
17 #![crate_name = "rustc_mir"]
18 #![crate_type = "rlib"]
19 #![crate_type = "dylib"]
20 #![deny(warnings)]
21
22 #![feature(box_patterns)]
23 #![feature(box_syntax)]
24 #![feature(i128_type)]
25 #![feature(rustc_diagnostic_macros)]
26 #![feature(placement_in_syntax)]
27 #![feature(collection_placement)]
28 #![feature(nonzero)]
29
30 #[macro_use] extern crate log;
31 extern crate graphviz as dot;
32 #[macro_use]
33 extern crate rustc;
34 extern crate rustc_data_structures;
35 #[macro_use]
36 #[no_link]
37 extern crate rustc_bitflags;
38 #[macro_use]
39 extern crate syntax;
40 extern crate syntax_pos;
41 extern crate rustc_const_math;
42 extern crate rustc_const_eval;
43 extern crate core; // for NonZero
44
45 pub mod diagnostics;
46
47 mod build;
48 pub mod dataflow;
49 mod hair;
50 mod shim;
51 pub mod transform;
52 pub mod util;
53
54 use rustc::ty::maps::Providers;
55
56 pub fn provide(providers: &mut Providers) {
57     shim::provide(providers);
58     transform::provide(providers);
59 }
60
61 __build_diagnostic_array! { librustc_mir, DIAGNOSTICS }