2016-01-15 12:16:54 +00:00
|
|
|
//! Various checks
|
|
|
|
//!
|
|
|
|
//! # Note
|
|
|
|
//!
|
|
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
|
|
|
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
2016-01-21 23:26:19 +00:00
|
|
|
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/")]
|
2016-01-15 12:16:54 +00:00
|
|
|
|
2018-09-26 21:26:46 +00:00
|
|
|
#![feature(nll)]
|
2016-01-15 12:16:54 +00:00
|
|
|
#![feature(rustc_diagnostic_macros)]
|
2017-05-08 21:36:44 +00:00
|
|
|
|
2018-12-13 15:57:25 +00:00
|
|
|
#![recursion_limit="256"]
|
|
|
|
|
2016-07-21 01:31:14 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc;
|
2017-12-27 20:32:01 +00:00
|
|
|
extern crate rustc_mir;
|
2018-02-27 16:11:14 +00:00
|
|
|
extern crate rustc_data_structures;
|
2016-01-15 12:16:54 +00:00
|
|
|
|
2016-07-21 01:31:14 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate syntax;
|
2019-01-17 06:28:39 +00:00
|
|
|
extern crate syntax_ext;
|
2016-06-21 22:08:13 +00:00
|
|
|
extern crate syntax_pos;
|
|
|
|
extern crate rustc_errors as errors;
|
2016-01-15 12:16:54 +00:00
|
|
|
|
2018-06-13 13:44:43 +00:00
|
|
|
use rustc::ty::query::Providers;
|
2017-09-11 17:09:14 +00:00
|
|
|
|
2017-08-19 00:09:55 +00:00
|
|
|
mod diagnostics;
|
2016-01-21 09:52:37 +00:00
|
|
|
|
2016-03-06 12:54:44 +00:00
|
|
|
pub mod ast_validation;
|
2018-01-29 17:54:37 +00:00
|
|
|
pub mod rvalue_promotion;
|
2016-11-04 15:37:39 +00:00
|
|
|
pub mod hir_stats;
|
2019-01-09 20:16:32 +00:00
|
|
|
pub mod layout_test;
|
2016-01-21 09:52:37 +00:00
|
|
|
pub mod loops;
|
2017-07-31 06:22:09 +00:00
|
|
|
|
|
|
|
__build_diagnostic_array! { librustc_passes, DIAGNOSTICS }
|
2017-09-11 17:09:14 +00:00
|
|
|
|
|
|
|
pub fn provide(providers: &mut Providers) {
|
2018-01-29 17:54:37 +00:00
|
|
|
rvalue_promotion::provide(providers);
|
2018-06-06 20:13:52 +00:00
|
|
|
loops::provide(providers);
|
2017-09-11 17:09:14 +00:00
|
|
|
}
|