about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-30 11:08:12 +0000
committerbors <bors@rust-lang.org>2024-04-30 11:08:12 +0000
commita7431167e0b8d6ae9fd60650694fbefc3d0fac2f (patch)
treeae7ef64b20f13a45cc3419cf71f23b37f15a0af3 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent47314eb427e1a9fb4f347cbeb44729486b6dbf53 (diff)
parentba87e5bb3e2d6f086d0f5a6155fffc127be0da4e (diff)
downloadrust-a7431167e0b8d6ae9fd60650694fbefc3d0fac2f.tar.gz
rust-a7431167e0b8d6ae9fd60650694fbefc3d0fac2f.zip
Auto merge of #124545 - Zalathar:mappings, r=oli-obk
coverage: Split off `mappings.rs` from `spans.rs` and `from_mir.rs`

Originally, `spans.rs` was mainly concerned with extracting and post-processing spans from MIR, so that they could be used for block coverage instrumentation.

Over time it has organically expanded to include more responsibilities, especially relating to branch coverage and MC/DC coverage, that don't really fit its current name.

This PR therefore takes all the extra code that is *not* part of the old span-refinement engine, and moves it out into a new `mappings.rs` file.

---

No functional changes. I have deliberately avoided doing any follow-up (such as renaming types or functions), because this particular change is very rot-prone, and I want it to be as simple and self-contained as possible.

`@rustbot` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions