5 //! This API is completely unstable and subject to change.
7 #![allow(rustc::potential_query_instability)]
8 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
9 #![feature(iter_intersperse)]
11 #![feature(let_chains)]
12 #![feature(map_try_insert)]
13 #![feature(min_specialization)]
14 #![feature(try_blocks)]
15 #![recursion_limit = "256"]
18 extern crate rustc_middle;
22 use rustc_middle::ty::query::Providers;
27 mod debugger_visualizer;
30 pub mod hir_id_validator;
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);