mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 02:56:52 +00:00
crash tests: use individual mir opts instead of mir-opt-level where easily possible
This commit is contained in:
parent
f415c07494
commit
8d5236fa1c
@ -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)]
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
@ -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" {
|
||||
|
@ -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];
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user