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(box_patterns)]
12#![feature(map_try_insert)]
13#![feature(rustdoc_internals)]
14#![feature(try_blocks)]
15// tidy-alphabetical-end
16
17use rustc_middle::util::Providers;
18
19pub mod abi_test;
20mod check_attr;
21mod check_export;
22pub mod dead;
23mod debugger_visualizer;
24mod diagnostic_items;
25pub mod entry;
26mod errors;
27#[cfg(debug_assertions)]
28pub mod hir_id_validator;
29pub mod input_stats;
30mod lang_items;
31pub mod layout_test;
32mod lib_features;
33mod liveness;
34pub mod loops;
35mod reachable;
36pub mod stability;
37mod upvars;
38mod weak_lang_items;
39
40rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
41
42pub fn provide(providers: &mut Providers) {
43    check_attr::provide(providers);
44    dead::provide(providers);
45    debugger_visualizer::provide(providers);
46    diagnostic_items::provide(providers);
47    entry::provide(providers);
48    lang_items::provide(providers);
49    lib_features::provide(providers);
50    loops::provide(providers);
51    liveness::provide(providers);
52    reachable::provide(providers);
53    stability::provide(providers);
54    upvars::provide(providers);
55    check_export::provide(providers);
56}