5 //! This API is completely unstable and subject to change.
7 #![allow(rustc::potential_query_instability)]
8 #![deny(rustc::untranslatable_diagnostic)]
9 #![deny(rustc::diagnostic_outside_of_impl)]
10 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
11 #![feature(iter_intersperse)]
12 #![feature(let_chains)]
13 #![feature(map_try_insert)]
14 #![feature(min_specialization)]
15 #![feature(try_blocks)]
16 #![recursion_limit = "256"]
19 extern crate rustc_middle;
23 use rustc_middle::ty::query::Providers;
28 mod debugger_visualizer;
32 pub mod hir_id_validator;
45 pub fn provide(providers: &mut Providers) {
46 check_attr::provide(providers);
47 check_const::provide(providers);
48 dead::provide(providers);
49 debugger_visualizer::provide(providers);
50 diagnostic_items::provide(providers);
51 entry::provide(providers);
52 lang_items::provide(providers);
53 lib_features::provide(providers);
54 loops::provide(providers);
55 naked_functions::provide(providers);
56 liveness::provide(providers);
57 reachable::provide(providers);
58 stability::provide(providers);
59 upvars::provide(providers);