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 @@ -43,7 +43,8 @@ mod add_retag;
43
43
mod check_const_item_mutation;
44
44
mod check_packed_ref;
45
45
pub mod check_unsafety;
46
- mod cleanup_post_borrowck;
46
+ // This pass is public to allow external drivers to perform MIR cleanup
47
+ pub mod cleanup_post_borrowck;
47
48
mod const_debuginfo;
48
49
mod const_goto;
49
50
mod const_prop;
@@ -65,7 +66,8 @@ mod match_branches;
65
66
mod multiple_return_terminators;
66
67
mod normalize_array_len;
67
68
mod nrvo;
68
- mod remove_false_edges;
69
+ // This pass is public to allow external drivers to perform MIR cleanup
70
+ pub mod remove_false_edges;
69
71
mod remove_noop_landing_pads;
70
72
mod remove_storage_markers;
71
73
mod remove_uninit_drops;
@@ -75,7 +77,8 @@ mod required_consts;
75
77
mod reveal_all;
76
78
mod separate_const_switch;
77
79
mod shim;
78
- mod simplify;
80
+ // This pass is public to allow external drivers to perform MIR cleanup
81
+ pub mod simplify;
79
82
mod simplify_branches;
80
83
mod simplify_comparison_integral;
81
84
mod simplify_try;
You can’t perform that action at this time.
0 commit comments