We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UnreachableProp
1 parent 20f298d commit 7be968bCopy full SHA for 7be968b
compiler/rustc_mir_transform/src/unreachable_prop.rs
@@ -13,11 +13,7 @@ pub struct UnreachablePropagation;
13
impl MirPass<'_> for UnreachablePropagation {
14
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
15
// Enable only under -Zmir-opt-level=2 as this can make programs less debuggable.
16
-
17
- // FIXME(#116171) Coverage gets confused by MIR passes that can remove all
18
- // coverage statements from an instrumented function. This pass can be
19
- // re-enabled when coverage codegen is robust against that happening.
20
- sess.mir_opt_level() >= 2 && !sess.instrument_coverage()
+ sess.mir_opt_level() >= 2
21
}
22
23
fn run_pass<'tcx>(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
0 commit comments