rustc_mir_dataflow/
lib.rs1#![feature(associated_type_defaults)]
3#![feature(deref_patterns)]
4#![feature(exact_size_is_empty)]
5#![feature(file_buffered)]
6use rustc_middle::ty;
9use rustc_middle::util::Providers;
10
11pub use self::drop_flag_effects::{
14 DropFlagState, drop_flag_effects_for_function_entry, drop_flag_effects_for_location,
15 move_path_children_matching, on_all_children_bits, on_lookup_result_bits,
16};
17pub use self::framework::{
18 Analysis, Backward, Direction, EntryStates, Forward, GenKill, JoinSemiLattice, MaybeReachable,
19 Results, ResultsCursor, ResultsVisitor, SwitchTargetIndex, fmt, graphviz, lattice,
20 visit_results,
21};
22use self::move_paths::MoveData;
23
24pub mod debuginfo;
25mod diagnostics;
26mod drop_flag_effects;
27mod framework;
28pub mod impls;
29pub mod move_paths;
30pub mod points;
31mod pretty;
32pub mod rustc_peek;
33mod un_derefer;
34pub mod value_analysis;
35
36pub struct MoveDataTypingEnv<'tcx> {
37 pub move_data: MoveData<'tcx>,
38 pub typing_env: ty::TypingEnv<'tcx>,
39}
40
41pub fn provide(providers: &mut Providers) {
42 providers.hooks.mir_pretty_extra_data = pretty::mir_pretty_extra_data;
43}