59 lines
1.3 KiB
Rust
Raw Normal View History

//! Various checks
//!
//! # Note
//!
//! This API is completely unstable and subject to change.
2020-09-23 21:51:56 +02:00
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![feature(const_fn)]
#![feature(const_panic)]
#![feature(crate_visibility_modifier)]
#![feature(in_band_lifetimes)]
#![feature(nll)]
2020-11-21 15:12:05 -06:00
#![cfg_attr(bootstrap, feature(or_patterns))]
2019-12-22 17:42:04 -05:00
#![recursion_limit = "256"]
2018-12-13 16:57:25 +01:00
2016-07-21 07:01:14 +05:30
#[macro_use]
2020-03-29 16:41:09 +02:00
extern crate rustc_middle;
2019-10-04 10:37:40 -04:00
#[macro_use]
2020-08-13 23:05:01 -07:00
extern crate tracing;
2020-03-29 16:41:09 +02:00
use rustc_middle::ty::query::Providers;
mod check_attr;
mod check_const;
2019-10-04 10:33:11 -04:00
pub mod dead;
mod diagnostic_items;
2019-10-04 10:37:40 -04:00
pub mod entry;
pub mod hir_id_validator;
2019-12-22 17:42:04 -05:00
pub mod hir_stats;
2019-10-04 10:46:57 -04:00
mod intrinsicck;
mod lang_items;
2019-12-22 17:42:04 -05:00
pub mod layout_test;
mod lib_features;
2019-12-22 17:42:04 -05:00
mod liveness;
pub mod loops;
mod naked_functions;
mod reachable;
mod region;
pub mod stability;
2020-01-01 17:31:03 +01:00
mod upvars;
mod weak_lang_items;
pub fn provide(providers: &mut Providers) {
check_attr::provide(providers);
check_const::provide(providers);
diagnostic_items::provide(providers);
2019-10-04 10:37:40 -04:00
entry::provide(providers);
lang_items::provide(providers);
lib_features::provide(providers);
2018-06-06 22:13:52 +02:00
loops::provide(providers);
naked_functions::provide(providers);
2019-10-04 10:31:28 -04:00
liveness::provide(providers);
2019-10-04 10:46:57 -04:00
intrinsicck::provide(providers);
reachable::provide(providers);
region::provide(providers);
stability::provide(providers);
2020-01-01 17:31:03 +01:00
upvars::provide(providers);
}