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)]
11 #![feature(map_try_insert)]
12 #![feature(min_specialization)]
13 #![feature(try_blocks)]
14 #![recursion_limit = "256"]
17 extern crate rustc_middle
;
21 use rustc_errors
::{DiagnosticMessage, SubdiagnosticMessage}
;
22 use rustc_macros
::fluent_messages
;
23 use rustc_middle
::ty
::query
::Providers
;
28 mod debugger_visualizer
;
32 pub mod hir_id_validator
;
45 fluent_messages
! { "../locales/en-US.ftl" }
47 pub fn provide(providers
: &mut Providers
) {
48 check_attr
::provide(providers
);
49 check_const
::provide(providers
);
50 dead
::provide(providers
);
51 debugger_visualizer
::provide(providers
);
52 diagnostic_items
::provide(providers
);
53 entry
::provide(providers
);
54 lang_items
::provide(providers
);
55 lib_features
::provide(providers
);
56 loops
::provide(providers
);
57 naked_functions
::provide(providers
);
58 liveness
::provide(providers
);
59 reachable
::provide(providers
);
60 stability
::provide(providers
);
61 upvars
::provide(providers
);