Skip to content

Commit

Permalink
Ignore allocation bytes in one more mir-opt test
Browse files Browse the repository at this point in the history
Following on PR rust-lang#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 rust-lang#126261
  • Loading branch information
uweigand committed Jul 15, 2024
1 parent 0da95bd commit 636ddcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
StorageDead(_1);
return;
}
+ }
+
+ ALLOC0 (size: 8, align: 4) {
+ 05 00 00 00 03 00 00 00 │ ........
}
+
+ ALLOC0 (size: 8, align: 4) { .. }

1 change: 1 addition & 0 deletions tests/mir-opt/dataflow-const-prop/aggregate_copy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Verify that we manage to propagate the value of aggregate `a` even without directly mentioning
//! the contained scalars.
//@ test-mir-pass: DataflowConstProp
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes

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

Expand Down

0 comments on commit 636ddcb

Please sign in to comment.