]> git.lizzy.rs Git - rust.git/blob - src/librustc_mir/lib.rs
Fixes issue #43205: ICE in Rvalue::Len evaluation.
[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 extern crate rustc_errors;
36 #[macro_use]
37 #[no_link]
38 extern crate rustc_bitflags;
39 #[macro_use]
40 extern crate syntax;
41 extern crate syntax_pos;
42 extern crate rustc_const_math;
43 extern crate rustc_const_eval;
44 extern crate core; // for NonZero
45
46 mod diagnostics;
47
48 mod borrow_check;
49 mod build;
50 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     borrow_check::provide(providers);
60     shim::provide(providers);
61     transform::provide(providers);
62 }
63
64 __build_diagnostic_array! { librustc_mir, DIAGNOSTICS }