/src/librustc_mir/lib.rs

https://gitlab.com/alx741/rust · Rust · 44 lines · 25 code · 5 blank · 14 comment · 0 complexity · 6e7d9d5d735137083463f3fd0b15f8ee 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(box_patterns)]
  19. #![feature(rustc_private)]
  20. #![feature(staged_api)]
  21. #![feature(question_mark)]
  22. #[macro_use] extern crate log;
  23. extern crate graphviz as dot;
  24. #[macro_use]
  25. extern crate rustc;
  26. extern crate rustc_data_structures;
  27. extern crate rustc_back;
  28. extern crate syntax;
  29. extern crate rustc_const_math;
  30. extern crate rustc_const_eval;
  31. pub mod build;
  32. pub mod graphviz;
  33. mod hair;
  34. pub mod mir_map;
  35. pub mod pretty;
  36. pub mod transform;
  37. pub mod traversal;