summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage
AgeCommit message (Expand)AuthorLines
2024-01-30hir: Add non-optional `hir_owner_nodes` for real `OwnerId`sVadim Petrochenkov-6/+1
2024-01-30hir: Simplify `hir_owner_nodes` queryVadim Petrochenkov-1/+1
2024-01-25Rollup merge of #120292 - Zalathar:dismantle, r=oli-obkMatthias Krüger-212/+178
2024-01-24Rollup merge of #120185 - Zalathar:auto-derived, r=wesleywiserLeón Orell Valerian Liehr-0/+11
2024-01-24Rollup merge of #119460 - Zalathar:improper-region, r=wesleywiserLeón Orell Valerian Liehr-1/+34
2024-01-24coverage: Flatten the functions for extracting/refining coverage spansZalathar-74/+53
2024-01-24coverage: Dismantle `Instrumentor` into ordinary functionsZalathar-139/+126
2024-01-22Use debug_assert instead of expanded equivalentWesley Wiser-4/+2
2024-01-22coverage: Don't instrument `#[automatically_derived]` functionsZalathar-0/+11
2024-01-14coverage: Simplify computing successors in the BCB graphZalathar-14/+7
2024-01-14coverage: Move helper `add_basic_coverage_block` into a local closureZalathar-22/+18
2024-01-14coverage: Simplify the loop that combines blocks into BCBsZalathar-57/+33
2024-01-14coverage: Indicate whether a block's successors allow BCB chainingZalathar-28/+62
2024-01-14coverage: Determine a block's successors from just the terminatorZalathar-14/+11
2024-01-11coverage: Add enums to accommodate other kinds of coverage mappingsZalathar-7/+20
2024-01-11coverage: Store extracted spans as a flat list of mappingsZalathar-27/+27
2024-01-11coverage: Extract helper function `term_for_bcb`Zalathar-4/+8
2024-01-10coverage: Discard code regions that might cause fatal errors in `llvm-cov`Zalathar-1/+36
2024-01-08coverage: `llvm-cov` expects column numbers to be bytes, not code pointsZalathar-14/+58
2024-01-08coverage: Allow `make_code_region` to failZalathar-6/+12
2024-01-05coverage: Make the remaining fields of `CoverageSpan` non-publicZalathar-4/+4
2024-01-05coverage: Split out `SpanFromMir` from `CoverageSpan`Zalathar-24/+51
2024-01-05coverage: Hoist the splitting of visible macro invocationsZalathar-34/+36
2024-01-05coverage: Hoist the removal of unwanted macro expansion spansZalathar-26/+27
2024-01-05coverage: Overhaul how "visible macros" are determinedZalathar-66/+58
2024-01-05coverage: Avoid early returns from `mir_to_initial_sorted_coverage_spans`Zalathar-15/+14
2024-01-03Rollup merge of #119444 - compiler-errors:closure-or-coroutine, r=oli-obkLeón Orell Valerian Liehr-3/+3
2023-12-30is_coroutine -> is_coroutine_or_closureMichael Goulet-3/+3
2023-12-30coverage: Make `coverage_counters` a local variableZalathar-31/+37
2023-12-30coverage: Prepare mappings separately from injecting statementsZalathar-29/+44
2023-12-29coverage: Avoid a possible query stability hazard in `CoverageCounters`Zalathar-3/+6
2023-12-28Remove movability from TyKind::CoroutineMichael Goulet-1/+1
2023-12-27coverage: Unexpand spans with `find_ancestor_inside_same_ctxt`Zalathar-22/+6
2023-12-20coverage: Check for `async fn` explicitly, without needing a heuristicZalathar-12/+11
2023-12-20coverage: Pass around `&ExtractedHirInfo` instead of individual fieldsZalathar-29/+16
2023-12-16coverage: Skip instrumenting a function if no spans were extractedZalathar-4/+15
2023-12-15coverage: Check that the function signature span precedes the bodyZalathar-2/+4
2023-12-15coverage: Compare span source files without involving `Lrc<SourceFile>`Zalathar-11/+14
2023-12-15coverage: Inline and simplify `fn_sig_and_body`Zalathar-14/+9
2023-12-15coverage: Use `LocalDefId` in `extract_hir_info`Zalathar-10/+8
2023-12-15coverage: Extract helper for getting HIR info for coverageZalathar-28/+35
2023-12-15coverage: Don't bother storing the source file in `Instrumentor`Zalathar-4/+3
2023-12-15coverage: Extract `is_eligible_for_coverage`Zalathar-14/+25
2023-12-15coverage: Simplify parts of `InstrumentCoverage::run_pass`Zalathar-8/+6
2023-12-15coverage: Assert that the instrumentor never sees promoted MIRZalathar-9/+3
2023-12-12Move some methods from `tcx.hir()` to `tcx`zetanumbers-1/+1
2023-12-10remove redundant importssurechen-3/+3
2023-12-09Rollup merge of #118666 - Zalathar:body-closure, r=cjgillotJubilee-31/+26
2023-12-08coverage: Add `#[track_caller]` to the span generator's unwrap methodsZalathar-14/+12
2023-12-08coverage: Simplify the heuristic for ignoring `async fn` return spansZalathar-17/+14