rust/compiler/rustc_mir_transform/src/coverage
Matthias Krüger f7c892e323
Rollup merge of #118695 - Zalathar:push-refined, r=davidtwco
coverage: Merge refined spans in a separate final pass

Pulling this merge step out of `push_refined_span` and into a separate pass lets us push directly to `refined_spans` instead of calling a helper method.

Because the compiler can now see partial borrows of `refined_spans`, we can remove some extra code that was jumping through hoops to satisfy the borrow checker.

---

``@rustbot`` label +A-code-coverage
2023-12-08 06:44:43 +01:00
..
spans coverage: Skip spans that can't be un-expanded back to the function body 2023-12-03 12:35:33 +11:00
counters.rs coverage: Eliminate BcbBranch 2023-11-25 12:29:20 +11:00
graph.rs coverage: Assert that bcb0 starts with bb0 and has no in-edges 2023-11-25 12:29:21 +11:00
mod.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
query.rs coverage: Store all of a function's mappings in function coverage info 2023-10-18 23:42:39 +11:00
spans.rs coverage: Simplify code that pushes to refined_spans 2023-12-07 17:41:04 +11:00
tests.rs coverage: Avoid unnecessary macros in unit tests 2023-12-07 11:12:48 +11:00