Rollup of 15 pull requests Successful merges: - #76722 (Test and fix Send and Sync traits of BTreeMap artefacts) - #76766 (Extract some intrinsics out of rustc_codegen_llvm) - #76800 (Don't generate bootstrap usage unless it's needed) - #76809 (simplfy condition in ItemLowerer::with_trait_impl_ref()) - #76815 (Fix wording in mir doc) - #76818 (Don't compile regex at every function call.) - #76821 (Remove redundant nightly features) - #76823 (black_box: silence unused_mut warning when building with cfg(miri)) - #76825 (use `array_windows` instead of `windows` in the compiler) - #76827 (fix array_windows docs) - #76828 (use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip)) - #76840 (Move to intra doc links in core/src/future) - #76845 (Use intra docs links in core::{ascii, option, str, pattern, hash::map}) - #76853 (Use intra-doc links in library/core/src/task/wake.rs) - #76871 (support panic=abort in Miri) Failed merges: r? `@ghost`
62 lines
1.7 KiB
Rust
62 lines
1.7 KiB
Rust
/*!
|
|
|
|
Rust MIR: a lowered representation of Rust.
|
|
|
|
*/
|
|
|
|
#![feature(nll)]
|
|
#![feature(in_band_lifetimes)]
|
|
#![feature(array_windows)]
|
|
#![feature(bindings_after_at)]
|
|
#![feature(bool_to_option)]
|
|
#![feature(box_patterns)]
|
|
#![feature(box_syntax)]
|
|
#![feature(const_fn)]
|
|
#![feature(const_panic)]
|
|
#![feature(crate_visibility_modifier)]
|
|
#![feature(decl_macro)]
|
|
#![feature(exact_size_is_empty)]
|
|
#![feature(exhaustive_patterns)]
|
|
#![feature(never_type)]
|
|
#![feature(min_specialization)]
|
|
#![feature(trusted_len)]
|
|
#![feature(try_blocks)]
|
|
#![feature(associated_type_defaults)]
|
|
#![feature(stmt_expr_attributes)]
|
|
#![feature(trait_alias)]
|
|
#![feature(option_expect_none)]
|
|
#![feature(or_patterns)]
|
|
#![feature(once_cell)]
|
|
#![recursion_limit = "256"]
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
#[macro_use]
|
|
extern crate rustc_middle;
|
|
|
|
mod borrow_check;
|
|
pub mod const_eval;
|
|
pub mod dataflow;
|
|
pub mod interpret;
|
|
pub mod monomorphize;
|
|
mod shim;
|
|
pub mod transform;
|
|
pub mod util;
|
|
|
|
use rustc_middle::ty::query::Providers;
|
|
|
|
pub fn provide(providers: &mut Providers) {
|
|
borrow_check::provide(providers);
|
|
const_eval::provide(providers);
|
|
shim::provide(providers);
|
|
transform::provide(providers);
|
|
monomorphize::partitioning::provide(providers);
|
|
monomorphize::polymorphize::provide(providers);
|
|
providers.eval_to_const_value_raw = const_eval::eval_to_const_value_raw_provider;
|
|
providers.eval_to_allocation_raw = const_eval::eval_to_allocation_raw_provider;
|
|
providers.const_caller_location = const_eval::const_caller_location;
|
|
providers.destructure_const = |tcx, param_env_and_value| {
|
|
let (param_env, value) = param_env_and_value.into_parts();
|
|
const_eval::destructure_const(tcx, param_env, value)
|
|
};
|
|
}
|