]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_passes/src/lib.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / compiler / rustc_passes / src / lib.rs
CommitLineData
9cc50fc6
SL
1//! Various checks
2//!
3//! # Note
4//!
5//! This API is completely unstable and subject to change.
6
1b1a35ee 7#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
fc512014 8#![feature(crate_visibility_modifier)]
dc9dc135 9#![feature(in_band_lifetimes)]
cdc7bbd5 10#![feature(iter_zip)]
0bf4aa26 11#![feature(nll)]
17df50a5 12#![feature(min_specialization)]
dfeec247 13#![recursion_limit = "256"]
0731742a 14
5bcae85e 15#[macro_use]
ba9703b0 16extern crate rustc_middle;
e74abb32 17#[macro_use]
3dfed10e 18extern crate tracing;
9cc50fc6 19
ba9703b0 20use rustc_middle::ty::query::Providers;
abe05a73 21
74b04a01 22mod check_attr;
60c5eb7d 23mod check_const;
e74abb32 24pub mod dead;
dfeec247 25mod diagnostic_items;
e74abb32 26pub mod entry;
ba9703b0 27pub mod hir_id_validator;
dfeec247 28pub mod hir_stats;
e74abb32 29mod intrinsicck;
74b04a01 30mod lang_items;
dfeec247
XL
31pub mod layout_test;
32mod lib_features;
33mod liveness;
34pub mod loops;
fc512014 35mod naked_functions;
dfeec247
XL
36mod reachable;
37mod region;
38pub mod stability;
74b04a01
XL
39mod upvars;
40mod weak_lang_items;
3b2f2976 41
f035d41b 42pub fn provide(providers: &mut Providers) {
74b04a01 43 check_attr::provide(providers);
60c5eb7d 44 check_const::provide(providers);
dfeec247 45 diagnostic_items::provide(providers);
e74abb32 46 entry::provide(providers);
74b04a01 47 lang_items::provide(providers);
dfeec247 48 lib_features::provide(providers);
0731742a 49 loops::provide(providers);
fc512014 50 naked_functions::provide(providers);
e74abb32
XL
51 liveness::provide(providers);
52 intrinsicck::provide(providers);
dfeec247
XL
53 reachable::provide(providers);
54 region::provide(providers);
55 stability::provide(providers);
74b04a01 56 upvars::provide(providers);
abe05a73 57}