rustc_mir_dataflow/
lib.rs

1// tidy-alphabetical-start
2#![feature(assert_matches)]
3#![feature(associated_type_defaults)]
4#![feature(box_patterns)]
5#![feature(exact_size_is_empty)]
6#![feature(file_buffered)]
7#![feature(never_type)]
8#![feature(try_blocks)]
9// tidy-alphabetical-end
10
11use rustc_middle::ty;
12
13// Please change the public `use` directives cautiously, as they might be used by external tools.
14// See issue #120130.
15pub 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, fmt, graphviz, lattice, visit_reachable_results,
22    visit_results,
23};
24use self::move_paths::MoveData;
25
26pub mod debuginfo;
27mod drop_flag_effects;
28mod errors;
29mod framework;
30pub mod impls;
31pub mod move_paths;
32pub mod points;
33pub mod rustc_peek;
34mod un_derefer;
35pub mod value_analysis;
36
37rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
38
39pub struct MoveDataTypingEnv<'tcx> {
40    pub move_data: MoveData<'tcx>,
41    pub typing_env: ty::TypingEnv<'tcx>,
42}