Skip to content

Commit 33e8232

Browse files
committed
Auto merge of rust-lang#3196 - RalfJung:provenance-gc, r=RalfJung
explain tests that disable the provenance GC
2 parents eaaf7e7 + 1620865 commit 33e8232

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

src/tools/miri/tests/fail/tree_borrows/reserved/cell-protected-write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
// Check how a Reserved with interior mutability

src/tools/miri/tests/fail/tree_borrows/reserved/int-protected-write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
#[path = "../../../utils/mod.rs"]

src/tools/miri/tests/pass/tree_borrows/cell-alternate-writes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23
#[path = "../../utils/mod.rs"]
34
#[macro_use]

src/tools/miri/tests/pass/tree_borrows/end-of-protector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
// Check that a protector goes back to normal behavior when the function

src/tools/miri/tests/pass/tree_borrows/formatting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
#[path = "../../utils/mod.rs"]

src/tools/miri/tests/pass/tree_borrows/reborrow-is-read.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
#[path = "../../utils/mod.rs"]

src/tools/miri/tests/pass/tree_borrows/reserved.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// We disable the GC for this test because it would change what is printed.
12
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
23

34
#[path = "../../utils/mod.rs"]

src/tools/miri/tests/pass/tree_borrows/unique.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@revisions: default uniq
2+
// We disable the GC for this test because it would change what is printed.
23
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
34
//@[uniq]compile-flags: -Zmiri-unique-is-unique
45

src/tools/miri/tests/pass/tree_borrows/vec_unique.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@revisions: default uniq
2+
// We disable the GC for this test because it would change what is printed.
23
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
34
//@[uniq]compile-flags: -Zmiri-unique-is-unique
45

0 commit comments

Comments
 (0)