Skip to content

Commit f3bc08a

Browse files
committed
ignore/fix layout-sensitive tests
1 parent 121e9f4 commit f3bc08a

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

tests/codegen/issues/issue-86106.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ only-64bit llvm appears to use stores instead of memset on 32bit
22
//@ compile-flags: -C opt-level=3 -Z merge-functions=disabled
3+
//@ needs-deterministic-layouts
34

45
// The below two functions ensure that both `String::new()` and `"".to_string()`
56
// produce the identical code.

tests/codegen/mem-replace-big-type.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
//@ compile-flags: -C no-prepopulate-passes -Zinline-mir=no
77
//@ ignore-debug: precondition checks in ptr::read make them a bad candidate for MIR inlining
8+
//@ needs-deterministic-layouts
89

910
#![crate_type = "lib"]
1011

tests/codegen/slice-iter-nonnull.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ compile-flags: -O
2+
//@ needs-deterministic-layouts
23
#![crate_type = "lib"]
34
#![feature(exact_size_is_empty)]
45

tests/codegen/vecdeque-drain.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Check that draining at the front or back doesn't copy memory.
22

33
//@ compile-flags: -O
4+
//@ needs-deterministic-layouts
45
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata
56

67
#![crate_type = "lib"]

tests/mir-opt/pre-codegen/issue_117368_print_invalid_constant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@needs-deterministic-layouts
12
// Verify that we do not ICE when printing an invalid constant.
23
// EMIT_MIR_FOR_EACH_BIT_WIDTH
34
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY

tests/ui/stats/hir-stats.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
//@ check-pass
22
//@ compile-flags: -Zhir-stats
33
//@ only-x86_64
4+
// layout randomization affects the hir stat output
5+
//@ needs-deterministic-layouts
46

57
// Type layouts sometimes change. When that happens, until the next bootstrap
68
// bump occurs, stage1 and stage2 will give different outputs for this test.
79
// Add an `ignore-stage1` comment marker to work around that problem during
810
// that time.
911

12+
1013
// The aim here is to include at least one of every different type of top-level
1114
// AST/HIR node reported by `-Zhir-stats`.
1215

tests/ui/structs-enums/type-sizes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ run-pass
2+
//@ needs-deterministic-layouts
23

34
#![allow(non_camel_case_types)]
45
#![allow(dead_code)]

0 commit comments

Comments
 (0)