Skip to content

Commit

Permalink
Rollup merge of #134036 - matthiaskrgr:opppt, r=saethlin
Browse files Browse the repository at this point in the history
crash tests: use individual mir opts instead of mir-opt-level where easily possible

r? `@saethlin`
  • Loading branch information
matthiaskrgr authored Dec 9, 2024
2 parents fd7183c + 8d5236f commit 273a359
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/crashes/121363.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/128094.rs
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/129095.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/129109.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/130970.rs
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/131347.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
2 changes: 1 addition & 1 deletion tests/crashes/131507.rs
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 273a359

Please sign in to comment.