//! Various checks //! //! # Note //! //! This API is completely unstable and subject to change. #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")] #![feature(nll)] #![feature(rustc_diagnostic_macros)] #![recursion_limit="256"] #![deny(rust_2018_idioms)] #![deny(internal)] #![deny(unused_lifetimes)] #[macro_use] extern crate rustc; use rustc::ty::query::Providers; mod error_codes; pub mod ast_validation; pub mod rvalue_promotion; pub mod hir_stats; pub mod layout_test; pub mod loops; __build_diagnostic_array! { librustc_passes, DIAGNOSTICS } pub fn provide(providers: &mut Providers<'_>) { rvalue_promotion::provide(providers); loops::provide(providers); }