]> git.lizzy.rs Git - rust.git/blob - src/librustc_mir/lib.rs
Rollup merge of #42837 - rthomas:29355-error, r=steveklabnik
[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 #![cfg_attr(stage0, feature(associated_consts))]
31
32 #[macro_use] extern crate log;
33 extern crate graphviz as dot;
34 #[macro_use]
35 extern crate rustc;
36 extern crate rustc_data_structures;
37 #[macro_use]
38 #[no_link]
39 extern crate rustc_bitflags;
40 #[macro_use]
41 extern crate syntax;
42 extern crate syntax_pos;
43 extern crate rustc_const_math;
44 extern crate rustc_const_eval;
45 extern crate core; // for NonZero
46
47 pub mod diagnostics;
48
49 mod build;
50 pub mod dataflow;
51 mod hair;
52 mod shim;
53 pub mod transform;
54 pub mod util;
55
56 use rustc::ty::maps::Providers;
57
58 pub fn provide(providers: &mut Providers) {
59     shim::provide(providers);
60     transform::provide(providers);
61 }