Commit 8a59eed
committed
test(smir): reproduce _projected_ty Subslice drop-glue pruning bug
Add unit test demonstrating that _projected_ty() returns the original
array type for Subslice projections, causing call_edges to miss the
drop_in_place::<[T; M]> edge and reduce_to() to incorrectly prune
the required drop glue.
Add integration test subslice-drop-partial-move.rs that generates
Drop(arr.Subslice(1,3,false)) in the MIR — the exact pattern
described in the Codex review comment.1 parent 662427f commit 8a59eed
3 files changed
Lines changed: 3992 additions & 0 deletions
File tree
- kmir/src/tests
- integration/data/prove-rs
- unit
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments