crash tests: use individual mir opts instead of mir-opt-level where easily possible

This commit is contained in:
Matthias Krüger 2024-12-08 16:52:32 +01:00
parent f415c07494
commit 8d5236fa1c
7 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
//@ known-bug: #121363
//@ compile-flags: -Zmir-opt-level=5 --crate-type lib
//@ compile-flags: -Zmir-enable-passes=+GVN --crate-type lib
#![feature(trivial_bounds)]

View File

@ -1,5 +1,5 @@
//@ known-bug: rust-lang/rust#128094
//@ compile-flags: -Zmir-opt-level=5 --edition=2018
//@ compile-flags: -Zmir-enable-passes=+GVN --edition=2018
pub enum Request {
TestSome(T),

View File

@ -1,5 +1,5 @@
//@ known-bug: rust-lang/rust#129095
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+Inline -Zvalidate-mir
pub fn function_with_bytes<const BYTES: &'static [u8; 4]>() -> &'static [u8] {
BYTES

View File

@ -1,5 +1,5 @@
//@ known-bug: rust-lang/rust#129109
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
//@ compile-flags: -Zmir-enable-passes=+GVN -Zvalidate-mir
extern "C" {
pub static mut symbol: [i8];

View File

@ -1,5 +1,5 @@
//@ known-bug: #130970
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
//@ compile-flags: -Zmir-enable-passes=+GVN -Zvalidate-mir
fn main() {
extern "C" {

View File

@ -1,5 +1,5 @@
//@ known-bug: #131347
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+Inline -Zvalidate-mir
struct S;
static STUFF: [i8] = [0; S::N];

View File

@ -1,5 +1,5 @@
//@ known-bug: #131507
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+Inline -Zvalidate-mir
#![feature(non_lifetime_binders)]
fn brick()