rust/compiler/rustc_mir_transform/src
Dylan DPC 6e3dd69e36
Rollup merge of #98868 - tmiasko:unreachable-coverage, r=wesleywiser
Fix unreachable coverage generation for inlined functions

To generate a function coverage we need at least one coverage counter,
so a coverage from unreachable blocks is retained only when some live
counters remain.

The previous implementation incorrectly retained unreachable coverage,
because it didn't account for the fact that those live counters can
belong to another function due to inlining.

Fixes #98833.
2022-07-22 11:53:40 +05:30
..
coverage Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
inline consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
abort_unwinding_calls.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
add_call_guards.rs
add_moves_for_packed_drops.rs
add_retag.rs Revert "Rollup merge of #98582 - oli-obk:unconstrained_opaque_type, r=estebank" 2022-07-20 07:55:58 +00:00
check_const_item_mutation.rs
check_packed_ref.rs avoid some &str to String conversions 2022-07-10 03:18:56 +09:00
check_unsafety.rs use body's param-env when checking if type needs drop 2022-07-17 10:56:12 -07:00
cleanup_post_borrowck.rs
const_debuginfo.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
const_goto.rs
const_prop_lint.rs interpret: rename Tag/PointerTag to Prov/Provenance 2022-07-19 15:38:32 -04:00
const_prop.rs interpret: rename Tag/PointerTag to Prov/Provenance 2022-07-19 15:38:32 -04:00
dead_store_elimination.rs
deaggregator.rs
deduplicate_blocks.rs
deref_separator.rs add new rval, pull deref early 2022-07-12 14:26:41 +03:00
dest_prop.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
dump_mir.rs
early_otherwise_branch.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
elaborate_box_derefs.rs
elaborate_drops.rs add new rval, pull deref early 2022-07-12 14:26:41 +03:00
ffi_unwind_calls.rs
function_item_references.rs
generator.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
inline.rs consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
instcombine.rs
lib.rs Stabilize let_chains 2022-07-16 20:17:58 -03:00
lower_intrinsics.rs
lower_slice_len.rs
marker.rs
match_branches.rs
multiple_return_terminators.rs
normalize_array_len.rs
nrvo.rs
pass_manager.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
remove_false_edges.rs
remove_noop_landing_pads.rs
remove_storage_markers.rs
remove_uninit_drops.rs lower let-else in MIR instead 2022-07-11 23:20:36 +02:00
remove_unneeded_drops.rs
remove_zsts.rs
required_consts.rs
reveal_all.rs
separate_const_switch.rs add new rval, pull deref early 2022-07-12 14:26:41 +03:00
shim.rs consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
simplify_branches.rs
simplify_comparison_integral.rs
simplify_try.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
simplify.rs Update compiler/rustc_mir_transform/src/simplify.rs 2022-07-21 11:51:40 -04:00
uninhabited_enum_branching.rs Remove unused StableMap and StableSet types from rustc_data_structures 2022-07-20 13:11:39 +02:00
unreachable_prop.rs