rust/src/test
Yuki Okushi 3c1eef2e91
Rollup merge of #99711 - tmiasko:coverage, r=wesleywiser
Remove reachable coverage without counters

Remove reachable coverage without counters to maintain invariant that
either there is no coverage at all or there is a live coverage counter
left that provides the function source hash.

The motivating example would be a following closure:

```rust
    let f = |x: bool| {
        debug_assert!(x);
    };
```

Which, with span changes from #93967, with disabled debug assertions,
after the final CFG simplifications but before removal of dead blocks,
gives rise to MIR:

```rust
fn main::{closure#0}(_1: &[closure@a.rs:2:13: 2:22], _2: bool) -> () {
    debug x => _2;
    let mut _0: ();

    bb0: {
        Coverage::Expression(4294967295) = 1 - 2;
        return;
    }

    ...
}
```

Which also makes the initial instrumentation quite suspect, although
this pull request doesn't attempt to address that aspect directly.

Fixes #98833.

r? ``@wesleywiser`` ``@richkadel``
2022-07-26 13:12:22 +09:00
..
assembly adapt assembly/static-relocation-model test for LLVM change 2022-07-20 12:56:42 +00:00
auxiliary
codegen Auto merge of #97581 - AngelicosPhosphoros:improve_calloc_check_in_vec_macro_for_tuples, r=Mark-Simulacrum 2022-07-25 00:20:43 +00:00
codegen-units Fix/bless tests broken by DSE 2022-05-24 22:50:21 -04:00
debuginfo Use revision support to remove near identical debuginfo test. 2022-07-20 00:23:38 -07:00
incremental Rollup merge of #98901 - davidtwco:split-dwarf-incr-workproduct, r=michaelwoerister 2022-07-07 18:06:52 +05:30
mir-opt ignore wasm=32 & bless 2022-07-12 16:02:17 +03:00
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make feat: impl export-executable-symbols 2022-07-25 05:20:23 +00:00
run-make-fulldeps Remove reachable coverage without counters 2022-07-25 14:14:49 +02:00
run-pass-valgrind Change enum->int casts to not go through MIR casts. 2022-06-30 07:47:07 +00:00
rustdoc Rollup merge of #99393 - Logarithmus:feature/99255-omit-const-generic-suffixes, r=petrochenkov 2022-07-22 11:53:40 +05:30
rustdoc-gui Add GUI test to prevent sidebar background regression 2022-07-25 14:35:06 +02:00
rustdoc-js rustdoc: also index raw pointers 2022-05-31 11:21:55 -07:00
rustdoc-js-std Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha 2022-05-11 13:16:31 +09:00
rustdoc-json Add tests for JSON non-inlining 2022-07-16 13:39:38 +02:00
rustdoc-ui feat: impl export-executable-symbols 2022-07-25 05:20:23 +00:00
ui Rollup merge of #99593 - TaKO8Ki:suggest-removing-tuple-struct-field, r=compiler-errors 2022-07-26 13:12:20 +09:00
ui-fulldeps Rollup merge of #99298 - ChrisDenton:ignore-plugins-stage1, r=Mark-Simulacrum 2022-07-23 23:34:28 +02:00
COMPILER_TESTS.md