ignore/fix layout-sensitive tests

This commit is contained in:
The 8472 2022-09-02 20:15:53 +02:00
parent 121e9f4cc8
commit f3bc08adbd
7 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
//@ only-64bit llvm appears to use stores instead of memset on 32bit //@ only-64bit llvm appears to use stores instead of memset on 32bit
//@ compile-flags: -C opt-level=3 -Z merge-functions=disabled //@ compile-flags: -C opt-level=3 -Z merge-functions=disabled
//@ needs-deterministic-layouts
// The below two functions ensure that both `String::new()` and `"".to_string()` // The below two functions ensure that both `String::new()` and `"".to_string()`
// produce the identical code. // produce the identical code.

View File

@ -5,6 +5,7 @@
//@ compile-flags: -C no-prepopulate-passes -Zinline-mir=no //@ compile-flags: -C no-prepopulate-passes -Zinline-mir=no
//@ ignore-debug: precondition checks in ptr::read make them a bad candidate for MIR inlining //@ ignore-debug: precondition checks in ptr::read make them a bad candidate for MIR inlining
//@ needs-deterministic-layouts
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,4 +1,5 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ needs-deterministic-layouts
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(exact_size_is_empty)] #![feature(exact_size_is_empty)]

View File

@ -1,6 +1,7 @@
// Check that draining at the front or back doesn't copy memory. // Check that draining at the front or back doesn't copy memory.
//@ compile-flags: -O //@ compile-flags: -O
//@ needs-deterministic-layouts
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata //@ ignore-debug: FIXME: checks for call detect scoped noalias metadata
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,3 +1,4 @@
//@needs-deterministic-layouts
// Verify that we do not ICE when printing an invalid constant. // Verify that we do not ICE when printing an invalid constant.
// EMIT_MIR_FOR_EACH_BIT_WIDTH // EMIT_MIR_FOR_EACH_BIT_WIDTH
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // EMIT_MIR_FOR_EACH_PANIC_STRATEGY

View File

@ -1,12 +1,15 @@
//@ check-pass //@ check-pass
//@ compile-flags: -Zhir-stats //@ compile-flags: -Zhir-stats
//@ only-x86_64 //@ only-x86_64
// layout randomization affects the hir stat output
//@ needs-deterministic-layouts
// Type layouts sometimes change. When that happens, until the next bootstrap // Type layouts sometimes change. When that happens, until the next bootstrap
// bump occurs, stage1 and stage2 will give different outputs for this test. // bump occurs, stage1 and stage2 will give different outputs for this test.
// Add an `ignore-stage1` comment marker to work around that problem during // Add an `ignore-stage1` comment marker to work around that problem during
// that time. // that time.
// The aim here is to include at least one of every different type of top-level // The aim here is to include at least one of every different type of top-level
// AST/HIR node reported by `-Zhir-stats`. // AST/HIR node reported by `-Zhir-stats`.

View File

@ -1,4 +1,5 @@
//@ run-pass //@ run-pass
//@ needs-deterministic-layouts
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(dead_code)] #![allow(dead_code)]