3 Rust MIR: a lowered representation of Rust.
8 #![feature(in_band_lifetimes)]
9 #![feature(bool_to_option)]
10 #![feature(box_patterns)]
11 #![feature(box_syntax)]
13 #![feature(const_panic)]
14 #![feature(crate_visibility_modifier)]
15 #![feature(decl_macro)]
16 #![feature(drain_filter)]
17 #![feature(exhaustive_patterns)]
18 #![feature(iter_order_by)]
19 #![feature(never_type)]
20 #![feature(min_specialization)]
21 #![feature(trusted_len)]
22 #![feature(try_blocks)]
23 #![feature(associated_type_bounds)]
24 #![feature(associated_type_defaults)]
25 #![feature(range_is_empty)]
26 #![feature(stmt_expr_attributes)]
27 #![feature(trait_alias)]
28 #![feature(option_expect_none)]
29 #![feature(or_patterns)]
30 #![recursion_limit = "256"]
35 extern crate rustc_middle;
46 use rustc_middle::ty::query::Providers;
48 pub fn provide(providers: &mut Providers) {
49 borrow_check::provide(providers);
50 const_eval::provide(providers);
51 shim::provide(providers);
52 transform::provide(providers);
53 monomorphize::partitioning::provide(providers);
54 monomorphize::polymorphize::provide(providers);
55 providers.const_eval_validated = const_eval::const_eval_validated_provider;
56 providers.const_eval_raw = const_eval::const_eval_raw_provider;
57 providers.const_caller_location = const_eval::const_caller_location;
58 providers.destructure_const = |tcx, param_env_and_value| {
59 let (param_env, value) = param_env_and_value.into_parts();
60 const_eval::destructure_const(tcx, param_env, value)