tests: ignore-debug -> ignore-std-debug-assertions

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-10-19 10:20:40 +08:00
parent 3870022986
commit 0d5cc8ee96
13 changed files with 16 additions and 13 deletions

View File

@ -1,5 +1,5 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ ignore-debug //@ ignore-std-debug-assertions
#![crate_type = "lib"] #![crate_type = "lib"]
use std::collections::binary_heap::PeekMut; use std::collections::binary_heap::PeekMut;

View File

@ -4,7 +4,8 @@
// known to be `1` after inlining). // known to be `1` after inlining).
//@ 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-std-debug-assertions
// Reason: precondition checks in ptr::read make them a bad candidate for MIR inlining
//@ needs-deterministic-layouts //@ needs-deterministic-layouts
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,6 +1,7 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -O -C no-prepopulate-passes
//@ only-x86_64 (to not worry about usize differing) //@ only-x86_64 (to not worry about usize differing)
//@ ignore-debug: precondition checks make mem::replace not a candidate for MIR inlining //@ ignore-std-debug-assertions
// Reason: precondition checks make mem::replace not a candidate for MIR inlining
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,6 +1,6 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ only-x86_64 //@ only-x86_64
//@ ignore-debug: debug assertions prevent generating shufflevector //@ ignore-std-debug-assertions (debug assertions prevent generating shufflevector)
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,4 +1,4 @@
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata //@ ignore-std-debug-assertions (FIXME: checks for call detect scoped noalias metadata)
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -O -Z merge-functions=disabled
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,7 +1,7 @@
// LLVM 17 realizes double panic is not possible and doesn't generate calls // LLVM 17 realizes double panic is not possible and doesn't generate calls
// to panic_cannot_unwind. // to panic_cannot_unwind.
//@ compile-flags: -O //@ compile-flags: -O
//@ ignore-debug: plain old debug assertions //@ ignore-std-debug-assertions (plain old debug assertions)
//@ needs-unwind //@ needs-unwind
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(shrink_to)] #![feature(shrink_to)]

View File

@ -1,5 +1,5 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ ignore-debug //@ ignore-std-debug-assertions
// (with debug assertions turned on, `assert_unchecked` generates a real assertion) // (with debug assertions turned on, `assert_unchecked` generates a real assertion)
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -2,7 +2,7 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ needs-deterministic-layouts //@ needs-deterministic-layouts
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata //@ ignore-std-debug-assertions (FIXME: checks for call detect scoped noalias metadata)
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,7 +1,7 @@
// This test checks that `VecDeque::front[_mut]()` and `VecDeque::back[_mut]()` can't panic. // This test checks that `VecDeque::front[_mut]()` and `VecDeque::back[_mut]()` can't panic.
//@ compile-flags: -O //@ compile-flags: -O
//@ ignore-debug: plain old debug assertions //@ ignore-std-debug-assertions (plain old debug assertions)
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,6 +1,7 @@
// skip-filecheck // skip-filecheck
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir //@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir
//@ ignore-debug: precondition checks on ptr::read/write are under cfg(debug_assertions) //@ ignore-std-debug-assertions
// Reason: precondition checks on ptr::read/write are under cfg(debug_assertions)
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,6 +1,6 @@
// skip-filecheck // skip-filecheck
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir //@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir
//@ ignore-debug: precondition checks are under cfg(debug_assertions) //@ ignore-std-debug-assertions (precondition checks are under cfg(debug_assertions))
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -1,7 +1,7 @@
// skip-filecheck // skip-filecheck
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 //@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
//@ only-64bit (constants for `None::<&T>` show in the output) //@ only-64bit (constants for `None::<&T>` show in the output)
//@ ignore-debug: precondition checks on ptr::add are under cfg(debug_assertions) //@ ignore-std-debug-assertions (precondition checks on ptr::add are under cfg(debug_assertions))
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"] #![crate_type = "lib"]

View File

@ -9,7 +9,7 @@
//! padding and overall computed sizes can be quite different. //! padding and overall computed sizes can be quite different.
//! //!
//@ compile-flags: -Z print-type-sizes --crate-type lib //@ compile-flags: -Z print-type-sizes --crate-type lib
//@ ignore-debug: debug assertions will print more types //@ ignore-std-debug-assertions (debug assertions will print more types)
//@ build-pass //@ build-pass
//@ ignore-pass //@ ignore-pass
// ^-- needed because `--pass check` does not emit the output needed. // ^-- needed because `--pass check` does not emit the output needed.