diff options
| author | Rich Kadel <richkadel@google.com> | 2020-08-27 14:13:04 -0700 |
|---|---|---|
| committer | Rich Kadel <richkadel@google.com> | 2020-09-03 00:20:29 -0700 |
| commit | 51d692cf7709de563cac6b5ee0080b8adf96f1df (patch) | |
| tree | c557be235c6ef828d1517ca31d3a248d0d8e162b /compiler/rustc_lint/src | |
| parent | e36e4bd0f7e722d3c97d1ca45387e58f81e4e8ea (diff) | |
| download | rust-51d692cf7709de563cac6b5ee0080b8adf96f1df.tar.gz rust-51d692cf7709de563cac6b5ee0080b8adf96f1df.zip | |
Tools, tests, and experimenting with MIR-derived coverage counters
Adds a new mir_dump output file in HTML/CSS to visualize code regions and the MIR features that they came from (including overlapping spans). See example below: Includes a basic, MIR-block-based implementation of coverage injection, available via `-Zexperimental-coverage`. This implementation has known flaws and omissions, but is simple enough to validate the new tools and tests. The existing `-Zinstrument-coverage` option currently enables function-level coverage only, which at least appears to generate accurate coverage reports at that level. Experimental coverage is not accurate at this time. When branch coverage works as intended, the `-Zexperimental-coverage` option should be removed. This PR replaces the bulk of PR #75828, with the remaining parts of that PR distributed among other separate and indentpent PRs. This PR depends on three of those other PRs: #76000, #76002, and Rust compiler MCP rust-lang/compiler-team#278 Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation 
Diffstat (limited to 'compiler/rustc_lint/src')
0 files changed, 0 insertions, 0 deletions
