diff options
| author | Xavier Denis <xldenis@gmail.com> | 2022-02-09 16:17:42 +0100 |
|---|---|---|
| committer | Xavier Denis <xldenis@gmail.com> | 2022-02-09 17:27:58 +0100 |
| commit | c97302efade33d55d4e1ead74947996fed3fa5da (patch) | |
| tree | c36cc77c93754efc854bfaa562636ca6188bfaaa | |
| parent | 128417f40f80ce585414bf5a017540447e6be775 (diff) | |
| download | rust-c97302efade33d55d4e1ead74947996fed3fa5da.tar.gz rust-c97302efade33d55d4e1ead74947996fed3fa5da.zip | |
Make a few cleanup MIR passes public
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index 93cc24b879d..ca5c72e6b50 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -42,7 +42,8 @@ mod add_retag; mod check_const_item_mutation; mod check_packed_ref; pub mod check_unsafety; -mod cleanup_post_borrowck; +// This pass is public to allow external drivers to perform MIR cleanup +pub mod cleanup_post_borrowck; mod const_debuginfo; mod const_goto; mod const_prop; @@ -64,7 +65,8 @@ mod match_branches; mod multiple_return_terminators; mod normalize_array_len; mod nrvo; -mod remove_false_edges; +// This pass is public to allow external drivers to perform MIR cleanup +pub mod remove_false_edges; mod remove_noop_landing_pads; mod remove_storage_markers; mod remove_uninit_drops; @@ -74,7 +76,8 @@ mod required_consts; mod reveal_all; mod separate_const_switch; mod shim; -mod simplify; +// This pass is public to allow external drivers to perform MIR cleanup +pub mod simplify; mod simplify_branches; mod simplify_comparison_integral; mod simplify_try; |
