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.
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.
13 Rust MIR: a lowered representation of Rust. Also: an experiment!
17 #![crate_name = "rustc_mir"]
18 #![crate_type = "rlib"]
19 #![crate_type = "dylib"]
22 #![feature(associated_consts)]
23 #![feature(box_patterns)]
24 #![feature(box_syntax)]
25 #![feature(i128_type)]
26 #![feature(rustc_diagnostic_macros)]
27 #![feature(placement_in_syntax)]
28 #![feature(collection_placement)]
30 #![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
31 #![cfg_attr(stage0, feature(rustc_private))]
32 #![cfg_attr(stage0, feature(staged_api))]
34 #[macro_use] extern crate log;
35 extern crate graphviz as dot;
38 extern crate rustc_data_structures;
41 extern crate rustc_bitflags;
44 extern crate syntax_pos;
45 extern crate rustc_const_math;
46 extern crate rustc_const_eval;
56 use rustc::ty::maps::Providers;
58 pub fn provide(providers: &mut Providers) {
59 shim::provide(providers);
60 transform::provide(providers);