File tree 1 file changed +6
-3
lines changed
compiler/rustc_mir_transform/src
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ mod add_retag;
42
42
mod check_const_item_mutation;
43
43
mod check_packed_ref;
44
44
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;
46
47
mod const_debuginfo;
47
48
mod const_goto;
48
49
mod const_prop;
@@ -64,7 +65,8 @@ mod match_branches;
64
65
mod multiple_return_terminators;
65
66
mod normalize_array_len;
66
67
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;
68
70
mod remove_noop_landing_pads;
69
71
mod remove_storage_markers;
70
72
mod remove_uninit_drops;
@@ -74,7 +76,8 @@ mod required_consts;
74
76
mod reveal_all;
75
77
mod separate_const_switch;
76
78
mod shim;
77
- mod simplify;
79
+ // This pass is public to allow external drivers to perform MIR cleanup
80
+ pub mod simplify;
78
81
mod simplify_branches;
79
82
mod simplify_comparison_integral;
80
83
mod simplify_try;
You can’t perform that action at this time.
0 commit comments