properly mark tests that require panic=abort

This commit is contained in:
Pietro Albini 2023-06-08 09:18:34 +02:00
parent a4e8904ce8
commit 070cc836e9
No known key found for this signature in database
GPG Key ID: CD76B35F7734769E
108 changed files with 108 additions and 104 deletions

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Retagging (from Stacked Borrows) relies on the array index being a fresh
// temporary, so that side-effects cannot change it.
// Test that this is indeed the case.

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(rustc_attrs, stmt_expr_attributes)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: InstSimplify
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff

View File

@ -1,5 +1,5 @@
// unit-test: InstSimplify
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR combine_clone_of_primitives.{impl#0}-clone.InstSimplify.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -O

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// EMIT_MIR_FOR_EACH_BIT_WIDTH

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
#[allow(unconditional_panic)]

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff
#[allow(unconditional_panic)]
fn main() {

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
// EMIT_MIR_FOR_EACH_BIT_WIDTH

View File

@ -1,7 +1,7 @@
// unit-test: ConstProp
// compile-flags: -O
// ignore-emscripten compiled with panic=abort by default
// ignore-wasm32
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// ignore-wasm64
#![feature(rustc_attrs, stmt_expr_attributes)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
#[inline(never)]
fn read(_: usize) { }

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Zmir-opt-level=1

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Zmir-enable-passes=+Inline

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Z mir-opt-level=3

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Z mir-opt-level=3

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
// EMIT_MIR_FOR_EACH_BIT_WIDTH

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// EMIT_MIR mutable_variable_aggregate_partial_read.main.ConstProp.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// EMIT_MIR mutable_variable_unprop_assign.main.ConstProp.diff

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
// EMIT_MIR_FOR_EACH_BIT_WIDTH

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -C overflow-checks=on
// EMIT_MIR return_place.add.ConstProp.diff

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff
fn main() {
let x = 1;

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Zmir-enable-passes=+InstSimplify
// EMIT_MIR_FOR_EACH_BIT_WIDTH

View File

@ -1,6 +1,6 @@
// unit-test: ConstProp
// compile-flags: -Zmir-enable-passes=+SimplifyConstCondition-after-const-prop
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#[inline(never)]
fn foo(_: i32) { }

View File

@ -1,5 +1,5 @@
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR tuple_literal_propagation.main.ConstProp.diff
fn main() {
let x = (1, 2);

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: CopyProp
#![feature(custom_mir, core_intrinsics)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that we bail out when there are multiple assignments to the same local.
// unit-test: CopyProp
fn val() -> i32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that CopyProp does not propagate an assignment to a function argument
// (doing so can break usages of the original argument value)
// unit-test: CopyProp

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: CopyProp
#![feature(custom_mir, core_intrinsics)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that cyclic assignments don't hang CopyProp, and result in reasonable code.
// unit-test: CopyProp
fn val() -> i32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: CopyProp
fn id<T>(x: T) -> T {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// This is a copy of the `dead_stores_79191` test, except that we turn on DSE. This demonstrates
// that that pass enables this one to do more optimizations.

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: CopyProp
// EMIT_MIR issue_107511.main.CopyProp.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Test that we do not move multiple times from the same local.
// unit-test: CopyProp

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: CopyProp
#![feature(custom_mir, core_intrinsics)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that CopyProp considers reborrows as not mutating the pointer.
// unit-test: CopyProp

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DataflowConstProp
// compile-flags: -Coverflow-checks=on

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DataflowConstProp
// compile-flags: -Zmir-enable-passes=+Inline

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DataflowConstProp
#[inline(never)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// This attempts to modify `x.1` via a pointer derived from `addr_of_mut!(x.0)`.
// According to Miri, that is UB. However, T-opsem has not finalized that
// decision and as such we cannot rely on it in optimizations. Consequently,

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DataflowConstProp
fn foo(n: i32) {}

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DeadStoreElimination
#[inline(never)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DeduplicateBlocks
// EMIT_MIR deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff

View File

@ -1,6 +1,6 @@
// unit-test: Derefer
// EMIT_MIR derefer_complex_case.main.Derefer.diff
// ignore-wasm32
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
fn main() {
for &foo in &[42, 43] { drop(foo) }

View File

@ -1,6 +1,6 @@
// unit-test: Derefer
// EMIT_MIR derefer_inline_test.main.Derefer.diff
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#[inline]
fn f() -> Box<u32> {

View File

@ -1,6 +1,6 @@
// unit-test: Derefer
// EMIT_MIR derefer_terminator_test.main.Derefer.diff
// ignore-wasm32
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
fn main() {
let b = foo();

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that assignment in both branches of an `if` are eliminated.
// unit-test: DestinationPropagation
fn val() -> i32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that DestinationPropagation does not propagate an assignment to a function argument
// (doing so can break usages of the original argument value)
// unit-test: DestinationPropagation

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that cyclic assignments don't hang DestinationPropagation, and result in reasonable code.
// unit-test: DestinationPropagation
fn val() -> i32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: DestinationPropagation
fn id<T>(x: T) -> T {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// This is a copy of the `dead_stores_79191` test, except that we turn on DSE. This demonstrates
// that that pass enables this one to do more optimizations.

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Copy of `nrvo-simple.rs`, to ensure that full dest-prop handles it too.
// unit-test: DestinationPropagation
// EMIT_MIR simple.nrvo.DestinationPropagation.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//! Tests that we can propagate into places that are projections into unions
// compile-flags: -Zunsound-mir-opts
fn val() -> u32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that unreachable code is removed after the destination propagation.
// Regression test for issue #105428.
//

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: --crate-type lib -Cdebug-assertions=no
#![feature(flt2dec)]

View File

@ -1,6 +1,6 @@
#![feature(generators, generator_trait)]
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Regression test for #58892, generator drop shims should not have blocks
// spuriously marked as cleanup

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Test that we generate StorageDead on unwind paths for generators.
//

View File

@ -1,6 +1,6 @@
// Tests inlining of `may_unwind` inline assembly.
//
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// needs-asm-support
#![feature(asm_unwind)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// needs-unwind
#![crate_type = "lib"]

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR cycle.f.Inline.diff
#[inline(always)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
use std::fmt::Debug;

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Checks that code with exponential runtime does not have exponential behavior in inlining.
trait A {

View File

@ -1,6 +1,7 @@
// Checks that only functions with compatible attributes are inlined.
//
// only-x86_64
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
#![feature(no_sanitize)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that inliner handles various forms of recursion and doesn't fall into
// an infinite inlining cycle. The particular outcome of inlining is not
// crucial otherwise.

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Check that inliner handles various forms of recursion and doesn't fall into
// an infinite inlining cycle. The particular outcome of inlining is not
// crucial otherwise.

View File

@ -1,6 +1,6 @@
// Tests inlining of diverging calls.
//
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
// EMIT_MIR inline_diverging.f.Inline.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(generators, generator_trait)]
use std::ops::Generator;

View File

@ -1,5 +1,5 @@
// ignore-endian-big
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// ignore-debug MIR alignment checks in std alter the diff, breaking the test
// compile-flags: -Z mir-opt-level=4

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Checks that inlining threshold can be controlled with
// inline-mir-threshold and inline-hint-threshold options.
//

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
// EMIT_MIR inline_shims.clone.Inline.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(specialization)]
// EMIT_MIR inline_specialization.main.Inline.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Z span_free_formats
fn main() {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Z span_free_formats -Z mir-opt-level=4
// EMIT_MIR inline_trait_method_2.test2.Inline.after.mir

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
pub fn outer() -> usize {
inner()
}

View File

@ -1,5 +1,5 @@
// compile-flags: -Z mir-opt-level=3 -Z inline-mir
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
// EMIT_MIR issue_78442.bar.RevealAll.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]
#![feature(unchecked_math)]

View File

@ -1,6 +1,6 @@
#![crate_type = "lib"]
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// ignore-debug: the debug assertions prevent the inlining we are testing for
// compile-flags: -Zmir-opt-level=2 -Zinline-mir

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -O -C debug-assertions=on
// This needs inlining followed by ConstProp to reproduce, so we cannot use "unit-test".

View File

@ -1,5 +1,5 @@
// Check that `UnwindAction::Unreachable` is not generated for unwindable intrinsics.
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(core_intrinsics)]
// EMIT_MIR issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.mir

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// check that we don't emit multiple drop flags when they are not needed.

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// check that we clear the "ADT master drop flag" even when there are
// no fields to be dropped.

View File

@ -1,6 +1,6 @@
// check that we don't forget to drop the Box if we early return before
// initializing it
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(rustc_attrs)]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Zmir-enable-passes=-NormalizeArrayLen
// Check that we do not insert StorageDead at each target if StorageDead was never seen

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// This test is a mirror of codegen/issue-59352.rs.
// The LLVM inliner doesn't inline `char::method::is_digit()` and so it doesn't recognize this case
// as effectively `if x.is_some() { x.unwrap() } else { 0 }`.

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: NormalizeArrayLen
// compile-flags: -Zmir-enable-passes=+LowerSliceLenCalls

View File

@ -1,5 +1,5 @@
// unit-test: LowerIntrinsics
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![feature(core_intrinsics, intrinsics, rustc_attrs)]
#![crate_type = "lib"]

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: LowerSliceLenCalls
// EMIT_MIR lower_slice_len.bound.LowerSliceLenCalls.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Test that StorageDead and Drops are generated properly for bindings in
// matches:
// * The MIR should only contain a single drop of `s` and `t`: at the end

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Ensure that there are no drop terminators in `unwrap<T>` (except the one along the cleanup
// path).

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// Test that after the call to `std::mem::drop` we do not generate a
// MIR drop of the argument. (We used to have a `DROP(_2)` in the code

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: RenameReturnPlace
// EMIT_MIR nrvo_simple.nrvo.RenameReturnPlace.diff

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -C overflow-checks=on
struct Point {

View File

@ -1,6 +1,7 @@
// compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
// only-64bit
// ignore-debug
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]

View File

@ -1,6 +1,7 @@
// compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
// only-64bit
// ignore-debug
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]

View File

@ -1,6 +1,7 @@
// compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
// only-64bit
// ignore-debug
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]

View File

@ -1,6 +1,6 @@
// Test that the fake borrows for matches are removed after borrow checking.
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR remove_fake_borrows.match_guard.CleanupPostBorrowck.diff
fn match_guard(x: Option<&&i32>, c: bool) -> i32 {

View File

@ -1,4 +1,4 @@
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: RemoveStorageMarkers
// Checks that storage markers are removed at opt-level=0.

View File

@ -1,4 +1,4 @@
// ignore-wasm32-bare compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR remove_unneeded_drops.opt.RemoveUnneededDrops.diff
fn opt(x: bool) {
drop(x);

Some files were not shown because too many files have changed in this diff Show More