Skip to main content

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