]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_passes/src/lib.rs
Auto merge of #96736 - oli-obk:tait_missing_wf_check, r=davidtwco
[rust.git] / compiler / rustc_passes / src / lib.rs
1 //! Various checks
2 //!
3 //! # Note
4 //!
5 //! This API is completely unstable and subject to change.
6
7 #![allow(rustc::potential_query_instability)]
8 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
9 #![feature(crate_visibility_modifier)]
10 #![feature(iter_intersperse)]
11 #![feature(let_else)]
12 #![feature(let_chains)]
13 #![feature(map_try_insert)]
14 #![feature(min_specialization)]
15 #![feature(nll)]
16 #![feature(try_blocks)]
17 #![recursion_limit = "256"]
18
19 #[macro_use]
20 extern crate rustc_middle;
21 #[macro_use]
22 extern crate tracing;
23
24 use rustc_middle::ty::query::Providers;
25
26 mod check_attr;
27 mod check_const;
28 pub mod dead;
29 mod debugger_visualizer;
30 mod diagnostic_items;
31 pub mod entry;
32 pub mod hir_id_validator;
33 pub mod hir_stats;
34 mod intrinsicck;
35 mod lang_items;
36 pub mod layout_test;
37 mod lib_features;
38 mod liveness;
39 pub mod loops;
40 mod naked_functions;
41 mod reachable;
42 mod region;
43 pub mod stability;
44 mod upvars;
45 mod weak_lang_items;
46
47 pub fn provide(providers: &mut Providers) {
48     check_attr::provide(providers);
49     check_const::provide(providers);
50     dead::provide(providers);
51     debugger_visualizer::provide(providers);
52     diagnostic_items::provide(providers);
53     entry::provide(providers);
54     lang_items::provide(providers);
55     lib_features::provide(providers);
56     loops::provide(providers);
57     naked_functions::provide(providers);
58     liveness::provide(providers);
59     intrinsicck::provide(providers);
60     reachable::provide(providers);
61     region::provide(providers);
62     stability::provide(providers);
63     upvars::provide(providers);
64 }