diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-01 17:10:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-01 17:10:24 +0200 |
| commit | 0a2562bf4de82b897beacf788e153f5738458325 (patch) | |
| tree | 86d653b537a79b7f14be61e22cc34f3cf987b6fd /compiler/rustc_parse/src | |
| parent | f835b13812e505830370f5dde863d4ff9cabe2a6 (diff) | |
| parent | 77af67ab64ffd3daaa255d6afff1f02bb1f5faa2 (diff) | |
| download | rust-0a2562bf4de82b897beacf788e153f5738458325.tar.gz rust-0a2562bf4de82b897beacf788e153f5738458325.zip | |
Rollup merge of #111042 - Zalathar:no-coverage, r=wesleywiser
Add `#[no_coverage]` to the test harness's `fn main` There are two main motivations for adding `#[no_coverage]` to the test harness's entry point: - The entry point is trivial compiler-generated code that doesn't correspond to user source, and it always runs, so there's no value in instrumenting it for coverage. - Because it has dummy spans, it causes the instrumentor implementation to emit invalid coverage mappings that confuse `llvm-cov` and result in strange coverage reports. Fixes #110749.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
