/src/librustc_mir/lib.rs

https://gitlab.com/0072016/0072016-rusty · Rust · 39 lines · 20 code · 5 blank · 14 comment · 0 complexity · 0f6048889f0c2bfcc5944041bd314ca0 MD5 · raw file

  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. Rust MIR: a lowered representation of Rust. Also: an experiment!
  12. */
  13. #![crate_name = "rustc_mir"]
  14. #![crate_type = "rlib"]
  15. #![crate_type = "dylib"]
  16. #![cfg_attr(not(stage0), deny(warnings))]
  17. #![unstable(feature = "rustc_private", issue = "27812")]
  18. #![feature(rustc_private)]
  19. #![feature(staged_api)]
  20. #[macro_use] extern crate log;
  21. extern crate graphviz as dot;
  22. extern crate rustc;
  23. extern crate rustc_data_structures;
  24. extern crate rustc_front;
  25. extern crate rustc_back;
  26. extern crate syntax;
  27. pub mod build;
  28. pub mod graphviz;
  29. mod hair;
  30. pub mod mir_map;
  31. pub mod pretty;
  32. pub mod transform;