From 94f3095774ffd7c7d6df4a6b9eb74c6566328234 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Thu, 4 Jul 2024 11:57:23 -0700 Subject: [PATCH] Updates for the crashes tests --- tests/crashes/101962.rs | 11 ----------- tests/crashes/79409.rs | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 tests/crashes/101962.rs diff --git a/tests/crashes/101962.rs b/tests/crashes/101962.rs deleted file mode 100644 index b6a78ce053af0..0000000000000 --- a/tests/crashes/101962.rs +++ /dev/null @@ -1,11 +0,0 @@ -//@ known-bug: #101962 - -#![feature(core_intrinsics)] - -pub fn wrapping(a: T, b: T) { - let _z = core::intrinsics::wrapping_mul(a, b); -} - -fn main() { - wrapping(1,2); -} diff --git a/tests/crashes/79409.rs b/tests/crashes/79409.rs index 98b5f60633627..b5466f55b7d76 100644 --- a/tests/crashes/79409.rs +++ b/tests/crashes/79409.rs @@ -1,4 +1,6 @@ //@ known-bug: #79409 +//@ compile-flags: -Z mir-opt-level=0 +// (Only fails if the use of the place isn't optimized out) #![feature(extern_types)] #![feature(unsized_locals)]