rust/compiler/rustc_mir_transform
Matthias Krüger adf9b5fcd1
Rollup merge of #133418 - Zalathar:spans, r=jieyouxu
coverage: Store coverage source regions as `Span` until codegen

Historically, coverage spans were converted into line/column coordinates during the MIR instrumentation pass.

This PR moves that conversion step into codegen, so that coverage spans spend most of their time stored as `Span` instead.

In addition to being conceptually nicer, this also reduces the size of coverage mappings in MIR, because `Span` is smaller than 4x u32.

---

There should be no changes to coverage output.
2024-11-27 22:23:25 +01:00
..
src Rollup merge of #133418 - Zalathar:spans, r=jieyouxu 2024-11-27 22:23:25 +01:00
Cargo.toml compiler: Add is_uninhabited and use LayoutS accessors 2024-10-28 09:58:30 -07:00
messages.ftl reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00