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)]
10 #![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;
31 pub mod hir_id_validator;
44 pub fn provide(providers: &mut Providers) {
45 check_attr::provide(providers);
46 check_const::provide(providers);
47 dead::provide(providers);
48 debugger_visualizer::provide(providers);
49 diagnostic_items::provide(providers);
50 entry::provide(providers);
51 lang_items::provide(providers);
52 lib_features::provide(providers);
53 loops::provide(providers);
54 naked_functions::provide(providers);
55 liveness::provide(providers);
56 reachable::provide(providers);
57 stability::provide(providers);
58 upvars::provide(providers);