Skip to content

Commit 636ddcb

Browse files
committed
Ignore allocation bytes in one more mir-opt test
Following on PR #126502, add `rustc -Zdump-mir-exclude-alloc-bytes` to tests/mir-opt/dataflow-const-prop/aggregate_copy.rs as well to skip writing allocation bytes in MIR dumps. Fixes #126261
1 parent 0da95bd commit 636ddcb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: tests/mir-opt/dataflow-const-prop/aggregate_copy.foo.DataflowConstProp.diff

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@
5757
StorageDead(_1);
5858
return;
5959
}
60-
+ }
61-
+
62-
+ ALLOC0 (size: 8, align: 4) {
63-
+ 05 00 00 00 03 00 00 00 │ ........
6460
}
61+
+
62+
+ ALLOC0 (size: 8, align: 4) { .. }
6563

Diff for: tests/mir-opt/dataflow-const-prop/aggregate_copy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Verify that we manage to propagate the value of aggregate `a` even without directly mentioning
22
//! the contained scalars.
33
//@ test-mir-pass: DataflowConstProp
4+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
45

56
const Foo: (u32, u32) = (5, 3);
67

0 commit comments

Comments
 (0)