/src/librustc_passes/lib.rs

https://gitlab.com/alx741/rust · Rust · 45 lines · 24 code · 7 blank · 14 comment · 0 complexity · 2057770753cc5f3d61504ceca251b971 MD5 · raw file

  1. // Copyright 2012-2013 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. //! Various checks
  11. //!
  12. //! # Note
  13. //!
  14. //! This API is completely unstable and subject to change.
  15. #![crate_name = "rustc_passes"]
  16. #![unstable(feature = "rustc_private", issue = "27812")]
  17. #![crate_type = "dylib"]
  18. #![crate_type = "rlib"]
  19. #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  20. html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
  21. html_root_url = "https://doc.rust-lang.org/nightly/")]
  22. #![cfg_attr(not(stage0), deny(warnings))]
  23. #![feature(rustc_diagnostic_macros)]
  24. #![feature(staged_api)]
  25. #![feature(rustc_private)]
  26. extern crate core;
  27. #[macro_use] extern crate rustc;
  28. extern crate rustc_const_eval;
  29. extern crate rustc_const_math;
  30. #[macro_use] extern crate log;
  31. #[macro_use] extern crate syntax;
  32. pub mod diagnostics;
  33. pub mod const_fn;
  34. pub mod consts;
  35. pub mod loops;
  36. pub mod no_asm;
  37. pub mod rvalues;
  38. pub mod static_recursion;