Skip to content

Commit c97302e

Browse files
committed
Make a few cleanup MIR passes public
1 parent 128417f commit c97302e

File tree

1 file changed

+6
-3
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+6
-3
lines changed

compiler/rustc_mir_transform/src/lib.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ mod add_retag;
4242
mod check_const_item_mutation;
4343
mod check_packed_ref;
4444
pub mod check_unsafety;
45-
mod cleanup_post_borrowck;
45+
// This pass is public to allow external drivers to perform MIR cleanup
46+
pub mod cleanup_post_borrowck;
4647
mod const_debuginfo;
4748
mod const_goto;
4849
mod const_prop;
@@ -64,7 +65,8 @@ mod match_branches;
6465
mod multiple_return_terminators;
6566
mod normalize_array_len;
6667
mod nrvo;
67-
mod remove_false_edges;
68+
// This pass is public to allow external drivers to perform MIR cleanup
69+
pub mod remove_false_edges;
6870
mod remove_noop_landing_pads;
6971
mod remove_storage_markers;
7072
mod remove_uninit_drops;
@@ -74,7 +76,8 @@ mod required_consts;
7476
mod reveal_all;
7577
mod separate_const_switch;
7678
mod shim;
77-
mod simplify;
79+
// This pass is public to allow external drivers to perform MIR cleanup
80+
pub mod simplify;
7881
mod simplify_branches;
7982
mod simplify_comparison_integral;
8083
mod simplify_try;

0 commit comments

Comments
 (0)