about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-04 02:31:11 +0000
committerbors <bors@rust-lang.org>2020-12-04 02:31:11 +0000
commit6513f5029183471993bab4b05ae5f5433f461b08 (patch)
treea48631b29803f165a91ddb32b3dece84503e9dc8 /compiler/rustc_mir/src/transform/coverage/debug.rs
parent5be3f9f10e9fd59ea03816840a6051413fbdefae (diff)
parentdc4bd9067eda1df118fc48cb6b828d72e916e1bb (diff)
downloadrust-6513f5029183471993bab4b05ae5f5433f461b08.tar.gz
rust-6513f5029183471993bab4b05ae5f5433f461b08.zip
Auto merge of #79109 - richkadel:llvm-coverage-counters-2.0.5, r=tmandry
Coverage tests for remaining TerminatorKinds and async, improve Assert

Tested and validate results for panic unwind, panic abort, assert!()
macro, TerminatorKind::Assert (for example, numeric overflow), and
async/await.

Implemented a previous documented idea to change Assert handling to be
the same as FalseUnwind and Goto, so it doesn't get its own
BasicCoverageBlock anymore. This changed a couple of coverage regions,
but I validated those changes are not any worse than the prior results,
and probably help assure some consistency (even if some people might
disagree with how the code region is consistently computed).

Fixed issue with async/await. AggregateKind::Generator needs to be
handled like AggregateKind::Closure; coverage span for the outer async
function should not "cover" the async body, which is actually executed
in a separate "closure" MIR.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions