diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/rustc_passes/src/lib.rs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/lib.rs b/compiler/rustc_passes/src/lib.rs new file mode 100644 index 000000000..7b2f83958 --- /dev/null +++ b/compiler/rustc_passes/src/lib.rs @@ -0,0 +1,59 @@ +//! Various checks +//! +//! # Note +//! +//! This API is completely unstable and subject to change. + +#![allow(rustc::potential_query_instability)] +#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] +#![feature(iter_intersperse)] +#![feature(let_chains)] +#![feature(let_else)] +#![feature(map_try_insert)] +#![feature(min_specialization)] +#![feature(try_blocks)] +#![recursion_limit = "256"] + +#[macro_use] +extern crate rustc_middle; +#[macro_use] +extern crate tracing; + +use rustc_middle::ty::query::Providers; + +mod check_attr; +mod check_const; +pub mod dead; +mod debugger_visualizer; +mod diagnostic_items; +pub mod entry; +mod errors; +pub mod hir_id_validator; +pub mod hir_stats; +mod lang_items; +pub mod layout_test; +mod lib_features; +mod liveness; +pub mod loops; +mod naked_functions; +mod reachable; +pub mod stability; +mod upvars; +mod weak_lang_items; + +pub fn provide(providers: &mut Providers) { + check_attr::provide(providers); + check_const::provide(providers); + dead::provide(providers); + debugger_visualizer::provide(providers); + diagnostic_items::provide(providers); + entry::provide(providers); + lang_items::provide(providers); + lib_features::provide(providers); + loops::provide(providers); + naked_functions::provide(providers); + liveness::provide(providers); + reachable::provide(providers); + stability::provide(providers); + upvars::provide(providers); +} |