1
Fork 0
rust/compiler/rustc_codegen_ssa/src/mir
Matthias Krüger 19d3827efe
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
2024-03-24 17:08:16 +01:00
..
analyze.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
block.rs CFI: Use Instance at callsites 2024-03-23 18:30:39 +00:00
constant.rs Avoid various uses of Option<Span> in favor of using DUMMY_SP in the few cases that used None 2024-03-18 09:34:08 +00:00
coverageinfo.rs Unbox and unwrap the contents of StatementKind::Coverage 2024-03-23 22:05:11 +11:00
debuginfo.rs Eagerly convert some ctors to use their specialized ctors 2024-03-22 11:12:01 -04:00
intrinsic.rs Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obk 2024-03-23 13:57:55 +00:00
locals.rs Implement async gen blocks 2023-12-08 17:23:25 +00:00
mod.rs Rollup merge of #122212 - erikdesjardins:byval-align2, r=wesleywiser 2024-03-14 20:00:18 +01:00
operand.rs only set noalias on Box with the global allocator 2024-03-05 15:03:33 +01:00
place.rs use GEP inbounds for ZST and DST field offsets 2024-03-04 09:32:33 -05:00
rvalue.rs Rollup merge of #122879 - maurer:callsite-instances, r=workingjubilee 2024-03-23 22:59:42 -07:00
statement.rs Unbox and unwrap the contents of StatementKind::Coverage 2024-03-23 22:05:11 +11:00