diff options
| author | bors <bors@rust-lang.org> | 2024-03-27 09:32:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-27 09:32:38 +0000 |
| commit | 10a7aa14fed9b528b74b0f098c4899c37c09a9c7 (patch) | |
| tree | 56f72b4171dcfd8e7028f0d359d0e3d3a7642634 /compiler/rustc_mir_transform | |
| parent | 0dcc1309d0e56f2121d46e20c19d332233533530 (diff) | |
| parent | c0945f0c9ead2d64c1ce3e149df48f7d4a4bf746 (diff) | |
| download | rust-10a7aa14fed9b528b74b0f098c4899c37c09a9c7.tar.gz rust-10a7aa14fed9b528b74b0f098c4899c37c09a9c7.zip | |
Auto merge of #123128 - GuillaumeGomez:rollup-3l3zu6s, r=GuillaumeGomez
Rollup of 6 pull requests Successful merges: - #121843 (Implement `-L KIND=`@RUSTC_BUILTIN/...`)` - #122860 (coverage: Re-enable `UnreachablePropagation` for coverage builds) - #123021 (Make `TyCtxt::coroutine_layout` take coroutine's kind parameter) - #123024 (CFI: Enable KCFI testing of run-pass tests) - #123083 (lib: fix some unnecessary_cast clippy lint) - #123116 (rustdoc: Swap fields and variant documentations) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/unreachable_prop.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_mir_transform/src/unreachable_prop.rs b/compiler/rustc_mir_transform/src/unreachable_prop.rs index bff59aa6023..8ad7bc394c5 100644 --- a/compiler/rustc_mir_transform/src/unreachable_prop.rs +++ b/compiler/rustc_mir_transform/src/unreachable_prop.rs @@ -14,11 +14,7 @@ pub struct UnreachablePropagation; impl MirPass<'_> for UnreachablePropagation { fn is_enabled(&self, sess: &rustc_session::Session) -> bool { // Enable only under -Zmir-opt-level=2 as this can make programs less debuggable. - - // FIXME(#116171) Coverage gets confused by MIR passes that can remove all - // coverage statements from an instrumented function. This pass can be - // re-enabled when coverage codegen is robust against that happening. - sess.mir_opt_level() >= 2 && !sess.instrument_coverage() + sess.mir_opt_level() >= 2 } fn run_pass<'tcx>(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { |
