rustc_passes/
lib.rs

1//! Various checks
2//!
3//! # Note
4//!
5//! This API is completely unstable and subject to change.
6
7// tidy-alphabetical-start
8#![allow(internal_features)]
9#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
10#![doc(rust_logo)]
11#![feature(if_let_guard)]
12#![feature(map_try_insert)]
13#![feature(rustdoc_internals)]
14// tidy-alphabetical-end
15
16use rustc_middle::util::Providers;
17
18pub mod abi_test;
19mod check_attr;
20mod check_export;
21pub mod dead;
22mod debugger_visualizer;
23mod diagnostic_items;
24pub mod entry;
25mod errors;
26#[cfg(debug_assertions)]
27pub mod hir_id_validator;
28pub mod input_stats;
29mod lang_items;
30pub mod layout_test;
31mod lib_features;
32mod liveness;
33mod reachable;
34pub mod stability;
35mod upvars;
36mod weak_lang_items;
37
38rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
39
40pub fn provide(providers: &mut Providers) {
41    check_attr::provide(providers);
42    dead::provide(providers);
43    debugger_visualizer::provide(providers);
44    diagnostic_items::provide(providers);
45    entry::provide(providers);
46    lang_items::provide(providers);
47    lib_features::provide(providers);
48    liveness::provide(providers);
49    reachable::provide(providers);
50    stability::provide(providers);
51    upvars::provide(providers);
52    check_export::provide(providers);
53}