about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-24 17:08:16 +0100
committerGitHub <noreply@github.com>2024-03-24 17:08:16 +0100
commit19d3827efe2f4d78f806f9a2736116d48d615234 (patch)
treecd509cacc1bf3c821f7bfd7f5c9e340df4546800 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent702261dce66c6376beba8727563bc2e0b631c9be (diff)
parentab92699f4a4bce54675012112693e9919ab19f54 (diff)
downloadrust-19d3827efe2f4d78f806f9a2736116d48d615234.tar.gz
rust-19d3827efe2f4d78f806f9a2736116d48d615234.zip
Rollup merge of #122937 - Zalathar:unbox, r=oli-obk
Unbox and unwrap the contents of `StatementKind::Coverage`

The payload of coverage statements was historically a structure with several fields, so it was boxed to avoid bloating `StatementKind`.

Now that the payload is a single relatively-small enum, we can replace `Box<Coverage>` with just `CoverageKind`.

This patch also adds a size assertion for `StatementKind`, to avoid accidentally bloating it in the future.

``@rustbot`` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions