]> git.proxmox.com Git - rustc.git/blame - src/librustc_mir/lib.rs
New upstream version 1.19.0+dfsg1
[rustc.git] / src / librustc_mir / lib.rs
CommitLineData
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 13Rust 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;
35extern crate graphviz as dot;
54a0048b 36#[macro_use]
b039eaaf 37extern crate rustc;
e9174d1e 38extern crate rustc_data_structures;
a7813a04
XL
39#[macro_use]
40#[no_link]
41extern crate rustc_bitflags;
42#[macro_use]
b039eaaf 43extern crate syntax;
3157f602 44extern crate syntax_pos;
54a0048b
SL
45extern crate rustc_const_math;
46extern crate rustc_const_eval;
e9174d1e 47
a7813a04
XL
48pub mod diagnostics;
49
7cac9316 50mod build;
92a42be0 51mod hair;
cc61c64b 52mod shim;
92a42be0 53pub mod transform;
cc61c64b 54pub mod util;
9e0c209e 55
8bb4bdeb
XL
56use rustc::ty::maps::Providers;
57
58pub fn provide(providers: &mut Providers) {
cc61c64b 59 shim::provide(providers);
7cac9316 60 transform::provide(providers);
cc61c64b 61}