rust/tests/pretty
Matthias Krüger 0a2562bf4d
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.
2023-05-01 17:10:24 +02:00
..
auxiliary
asm.pp
asm.rs
ast-stmt-expr-attr.rs
async.rs
attr-derive.rs
attr-fn-inner.rs
attr-literals.rs
attr-tokens-raw-ident.rs
auto-trait.rs
blank-lines.rs
block-comment-multiple-asterisks.rs
block-comment-trailing-whitespace2.rs
block-comment-trailing-whitespace.rs
block-comment-wchar.pp
block-comment-wchar.rs
block-disambig.rs
cast-lt.pp
cast-lt.rs
closure-reform-pretty.rs
delimited-token-groups.rs
disamb-stmt-expr.rs
do1.rs
doc-comments.rs
dollar-crate.pp
dollar-crate.rs
empty-impl.rs
empty-lines.rs
enum-variant-vis.rs
example1.rs
example2.pp
example2.rs
expanded-and-path-remap-80832.pp
expanded-and-path-remap-80832.rs
fn-return.rs
fn-types.rs
fn-variadic.rs
for-comment.rs
gat-bounds.rs
hir-pretty-loop.pp
hir-pretty-loop.rs
if-attr.rs
import-renames.rs
issue-4264.pp Bless pretty tests. 2023-03-16 11:21:50 +01:00
issue-4264.rs
issue-12590-a.rs
issue-12590-b.rs
issue-12590-c.pp
issue-12590-c.rs
issue-19077.rs
issue-25031.rs
issue-30731.rs
issue-31073.pp
issue-31073.rs
issue-68710-field-attr-proc-mac-lost.rs
issue-73626.rs
issue-74745.rs
issue-85089.pp
issue-85089.rs
let.rs
lifetime.rs
macro_rules.rs
macro.rs
match-block-expr.rs
match-naked-expr-medium.rs
match-naked-expr.rs
nested-item-vis-defaultness.rs
offset_of.rs Close parentheses for offset_of in AST pretty printing 2023-04-30 23:29:40 +02:00
path-type-bounds.rs
qpath-associated-type-bound.rs
raw-address-of.rs
raw-str-nonexpr.rs
stmt_expr_attributes.rs
struct-pattern.rs
struct-tuple.rs
tag-blank-lines.rs
tests-are-sorted.pp Add #[no_coverage] to the test harness's fn main 2023-05-01 11:01:12 +10:00
tests-are-sorted.rs
top-level-doc-comments.rs
trait-inner-attr.rs
trait-polarity.rs
trait-safety.rs
unary-op-disambig.rs
use-tree.rs
vec-comments.pp
vec-comments.rs
where-clauses.rs
yeet-expr.rs