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#![feature(option_into_flat_iter)]
9// tidy-alphabetical-end
10
11use rustc_middle::query::Providers;
12
13pub mod abi_test;
14mod canonical_symbols;
15mod check_attr;
16mod check_export;
17pub mod dead;
18mod debugger_visualizer;
19pub mod delegation;
20mod diagnostic_items;
21mod diagnostics;
22mod eii;
23pub mod entry;
24pub mod hir_id_validator;
25pub mod input_stats;
26mod lang_items;
27pub mod layout_test;
28mod lib_features;
29mod reachable;
30pub mod stability;
31mod upvars;
32mod weak_lang_items;
33
34pub fn provide(providers: &mut Providers) {
35 canonical_symbols::provide(providers);
36 check_attr::provide(providers);
37 dead::provide(providers);
38 debugger_visualizer::provide(providers);
39 diagnostic_items::provide(providers);
40 entry::provide(providers);
41 lang_items::provide(providers);
42 lib_features::provide(providers);
43 reachable::provide(providers);
44 stability::provide(providers);
45 upvars::provide(providers);
46 check_export::provide(providers);
47 providers.check_externally_implementable_items = eii::check_externally_implementable_items;
48}