]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_passes/src/lib.rs
Rollup merge of #101774 - Riolku:atomic-update-aba, r=m-ou-se
[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(iter_intersperse)]
10 #![feature(let_chains)]
11 #![feature(map_try_insert)]
12 #![feature(min_specialization)]
13 #![feature(try_blocks)]
14 #![recursion_limit = "256"]
15
16 #[macro_use]
17 extern crate rustc_middle;
18 #[macro_use]
19 extern crate tracing;
20
21 use rustc_middle::ty::query::Providers;
22
23 mod check_attr;
24 mod check_const;
25 pub mod dead;
26 mod debugger_visualizer;
27 mod diagnostic_items;
28 pub mod entry;
29 mod errors;
30 pub mod hir_id_validator;
31 pub mod hir_stats;
32 mod lang_items;
33 pub mod layout_test;
34 mod lib_features;
35 mod liveness;
36 pub mod loops;
37 mod naked_functions;
38 mod reachable;
39 pub mod stability;
40 mod upvars;
41 mod weak_lang_items;
42
43 pub fn provide(providers: &mut Providers) {
44     check_attr::provide(providers);
45     check_const::provide(providers);
46     dead::provide(providers);
47     debugger_visualizer::provide(providers);
48     diagnostic_items::provide(providers);
49     entry::provide(providers);
50     lang_items::provide(providers);
51     lib_features::provide(providers);
52     loops::provide(providers);
53     naked_functions::provide(providers);
54     liveness::provide(providers);
55     reachable::provide(providers);
56     stability::provide(providers);
57     upvars::provide(providers);
58 }