]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
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 | ||
e9174d1e | 11 | /*! |
1a4d82fc | 12 | |
e9174d1e | 13 | Rust MIR: a lowered representation of Rust. Also: an experiment! |
1a4d82fc | 14 | |
e9174d1e | 15 | */ |
1a4d82fc | 16 | |
e9174d1e SL |
17 | #![crate_name = "rustc_mir"] |
18 | #![crate_type = "rlib"] | |
19 | #![crate_type = "dylib"] | |
32a655c1 | 20 | #![deny(warnings)] |
e9174d1e | 21 | |
a7813a04 | 22 | #![feature(associated_consts)] |
7453a54e | 23 | #![feature(box_patterns)] |
cc61c64b | 24 | #![feature(box_syntax)] |
8bb4bdeb | 25 | #![feature(i128_type)] |
a7813a04 | 26 | #![feature(rustc_diagnostic_macros)] |
8bb4bdeb XL |
27 | #![feature(placement_in_syntax)] |
28 | #![feature(collection_placement)] | |
e9174d1e | 29 | |
7cac9316 XL |
30 | #![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))] |
31 | #![cfg_attr(stage0, feature(rustc_private))] | |
32 | #![cfg_attr(stage0, feature(staged_api))] | |
33 | ||
e9174d1e SL |
34 | #[macro_use] extern crate log; |
35 | extern crate graphviz as dot; | |
54a0048b | 36 | #[macro_use] |
b039eaaf | 37 | extern crate rustc; |
e9174d1e | 38 | extern crate rustc_data_structures; |
a7813a04 XL |
39 | #[macro_use] |
40 | #[no_link] | |
41 | extern crate rustc_bitflags; | |
42 | #[macro_use] | |
b039eaaf | 43 | extern crate syntax; |
3157f602 | 44 | extern crate syntax_pos; |
54a0048b SL |
45 | extern crate rustc_const_math; |
46 | extern crate rustc_const_eval; | |
e9174d1e | 47 | |
a7813a04 XL |
48 | pub mod diagnostics; |
49 | ||
7cac9316 | 50 | mod build; |
92a42be0 | 51 | mod hair; |
cc61c64b | 52 | mod shim; |
92a42be0 | 53 | pub mod transform; |
cc61c64b | 54 | pub mod util; |
9e0c209e | 55 | |
8bb4bdeb XL |
56 | use rustc::ty::maps::Providers; |
57 | ||
58 | pub fn provide(providers: &mut Providers) { | |
cc61c64b | 59 | shim::provide(providers); |
7cac9316 | 60 | transform::provide(providers); |
cc61c64b | 61 | } |