about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
AgeCommit message (Expand)AuthorLines
2024-03-28Replace `RemapFileNameExt::for_codegen` with explicit callsUrgau-2/+5
2024-03-23Unbox and unwrap the contents of `StatementKind::Coverage`Zalathar-5/+2
2024-03-18Deduplicate `associated_body` and `body_id`Oli Scherer-3/+1
2024-03-14coverage: Include recorded branch info in coverage instrumentationZalathar-0/+4
2024-03-13coverage: Make `is_eligible_for_coverage` a hook methodZalathar-33/+1
2024-02-07Rollup merge of #120564 - Zalathar:increment-site, r=oli-obkGuillaume Boisseau-49/+40
2024-02-05coverage: Make `fn_sig_span` optional, and note its quirksZalathar-8/+9
2024-02-05coverage: Make unexpansion of closure bodies more preciseZalathar-18/+12
2024-02-02coverage: Split out counter increment sites from BCB node/edge countersZalathar-49/+40
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-139/+126
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-1/+1
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-11coverage: Add enums to accommodate other kinds of coverage mappingsZalathar-4/+6
2024-01-11coverage: Store extracted spans as a flat list of mappingsZalathar-10/+3
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-03Rollup merge of #119444 - compiler-errors:closure-or-coroutine, r=oli-obkLeón Orell Valerian Liehr-1/+1
2023-12-30is_coroutine -> is_coroutine_or_closureMichael Goulet-1/+1
2023-12-30coverage: Make `coverage_counters` a local variableZalathar-14/+18
2023-12-30coverage: Prepare mappings separately from injecting statementsZalathar-27/+37
2023-12-27coverage: Unexpand spans with `find_ancestor_inside_same_ctxt`Zalathar-16/+5
2023-12-20coverage: Check for `async fn` explicitly, without needing a heuristicZalathar-1/+3
2023-12-20coverage: Pass around `&ExtractedHirInfo` instead of individual fieldsZalathar-18/+6
2023-12-16coverage: Skip instrumenting a function if no spans were extractedZalathar-2/+5
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-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-2/+2
2023-10-31coverage: Replace impossible `coverage::Error` with assertionsZalathar-16/+1
2023-10-21coverage: Simplify the injection of coverage statementsZalathar-123/+72
2023-10-19Auto merge of #115214 - Urgau:rfc-3127-trim-paths, r=compiler-errorsbors-1/+4
2023-10-18coverage: Store expression data in function coverage infoZalathar-38/+4
2023-10-18coverage: Store all of a function's mappings in function coverage infoZalathar-21/+13
2023-10-18coverage: Store the number of counters/expressions in function coverage infoZalathar-0/+2
2023-10-18coverage: Attach an optional `FunctionCoverageInfo` to `mir::Body`Zalathar-3/+5