Skip to content

Commit e59a6fe

Browse files
authored
Rollup merge of rust-lang#120158 - jubnzv:120130-mirdf-exports, r=nnethercote
`rustc_mir_dataflow`: Restore removed exports Added back previously available exports: * `Forward`/`Backward`: used when implementing `AnalysisDomain` * `Engine`: used in user's code to solve the dataflow problem * `SwitchIntEdgeEffects`: used when implementing functions of the `Analysis` trait * `graphviz`: potentially useful for debugging purposes Closes rust-lang#120130
2 parents 4a941d3 + 7842043 commit e59a6fe

File tree

1 file changed

+5
-3
lines changed
  • compiler/rustc_mir_dataflow/src

1 file changed

+5
-3
lines changed

compiler/rustc_mir_dataflow/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ extern crate rustc_middle;
1616

1717
use rustc_middle::ty;
1818

19+
// Please change the public `use` directives cautiously, as they might be used by external tools.
20+
// See issue #120130.
1921
pub use self::drop_flag_effects::{
2022
drop_flag_effects_for_function_entry, drop_flag_effects_for_location,
2123
move_path_children_matching, on_all_children_bits, on_lookup_result_bits,
2224
};
2325
pub use self::framework::{
24-
fmt, lattice, visit_results, Analysis, AnalysisDomain, Direction, GenKill, GenKillAnalysis,
25-
JoinSemiLattice, MaybeReachable, Results, ResultsCursor, ResultsVisitable, ResultsVisitor,
26+
fmt, graphviz, lattice, visit_results, Analysis, AnalysisDomain, Backward, Direction, Engine,
27+
Forward, GenKill, GenKillAnalysis, JoinSemiLattice, MaybeReachable, Results, ResultsCursor,
28+
ResultsVisitable, ResultsVisitor, SwitchIntEdgeEffects,
2629
};
27-
use self::framework::{Backward, SwitchIntEdgeEffects};
2830
use self::move_paths::MoveData;
2931

3032
pub mod debuginfo;

0 commit comments

Comments
 (0)