mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
ignore/fix layout-sensitive tests
This commit is contained in:
parent
121e9f4cc8
commit
f3bc08adbd
@ -1,5 +1,6 @@
|
||||
//@ only-64bit llvm appears to use stores instead of memset on 32bit
|
||||
//@ 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()`
|
||||
// produce the identical code.
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
//@ compile-flags: -C no-prepopulate-passes -Zinline-mir=no
|
||||
//@ ignore-debug: precondition checks in ptr::read make them a bad candidate for MIR inlining
|
||||
//@ needs-deterministic-layouts
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
//@ compile-flags: -O
|
||||
//@ needs-deterministic-layouts
|
||||
#![crate_type = "lib"]
|
||||
#![feature(exact_size_is_empty)]
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Check that draining at the front or back doesn't copy memory.
|
||||
|
||||
//@ compile-flags: -O
|
||||
//@ needs-deterministic-layouts
|
||||
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
@ -1,3 +1,4 @@
|
||||
//@needs-deterministic-layouts
|
||||
// Verify that we do not ICE when printing an invalid constant.
|
||||
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||
|
@ -1,12 +1,15 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags: -Zhir-stats
|
||||
//@ only-x86_64
|
||||
// layout randomization affects the hir stat output
|
||||
//@ needs-deterministic-layouts
|
||||
|
||||
// Type layouts sometimes change. When that happens, until the next bootstrap
|
||||
// bump occurs, stage1 and stage2 will give different outputs for this test.
|
||||
// Add an `ignore-stage1` comment marker to work around that problem during
|
||||
// that time.
|
||||
|
||||
|
||||
// The aim here is to include at least one of every different type of top-level
|
||||
// AST/HIR node reported by `-Zhir-stats`.
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ needs-deterministic-layouts
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
Loading…
Reference in New Issue
Block a user