Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading