]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_passes/src/lib.rs
Auto merge of #97841 - nvzqz:inline-encode-wide, r=thomcc
[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_else)]
11 #![feature(let_chains)]
12 #![feature(map_try_insert)]
13 #![feature(min_specialization)]
14 #![feature(try_blocks)]
15 #![recursion_limit = "256"]
16
17 #[macro_use]
18 extern crate rustc_middle;
19 #[macro_use]
20 extern crate tracing;
21
22 use rustc_middle::ty::query::Providers;
23
24 mod check_attr;
25 mod check_const;
26 pub mod dead;
27 mod debugger_visualizer;
28 mod diagnostic_items;
29 pub mod entry;
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 }