diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-12-28 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-12-28 15:32:54 +0100 |
| commit | 8d77c2eab8b74d6731c6811a1df54f444559cb04 (patch) | |
| tree | d2858eb2945558d716cf5751386831e26fd0963c /compiler/rustc_mir_transform/src | |
| parent | 928b3dac574ef371ccfa282e7d31819d121e13b8 (diff) | |
| download | rust-8d77c2eab8b74d6731c6811a1df54f444559cb04.tar.gz rust-8d77c2eab8b74d6731c6811a1df54f444559cb04.zip | |
Don't validate / lint MIR before each pass
To avoid redundant work and verbose output in case of failures.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/pass_manager.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_mir_transform/src/pass_manager.rs b/compiler/rustc_mir_transform/src/pass_manager.rs index 1da1c1920b2..82074f1960d 100644 --- a/compiler/rustc_mir_transform/src/pass_manager.rs +++ b/compiler/rustc_mir_transform/src/pass_manager.rs @@ -129,12 +129,6 @@ fn run_passes_inner<'tcx>( if dump_enabled { dump_mir_for_pass(tcx, body, name, false); } - if validate { - validate_body(tcx, body, format!("before pass {name}")); - } - if lint { - lint_body(tcx, body, format!("before pass {name}")); - } if let Some(prof_arg) = &prof_arg { tcx.sess |
