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