Skip to content

Commit b545f1c

Browse files
committed
Add missing // run-pass annotations to ICE tests
compiletest UI tests do not fail when encountering panics and ICEs unless the `// run-pass` flag is used. (This was forgotten in #3743)
1 parent 17e04ac commit b545f1c

30 files changed

+60
-0
lines changed

tests/ui/crashes/associated-constant-ice.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
/// Test for https://github.com/rust-lang/rust-clippy/issues/1698
24
35
pub trait Trait {

tests/ui/crashes/cc_seme.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#[allow(dead_code)]
24

35
/// Test for https://github.com/rust-lang/rust-clippy/issues/478

tests/ui/crashes/enum-glob-import-crate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![deny(clippy::all)]
24
#![allow(unused_imports)]
35

tests/ui/crashes/ice-1588.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(clippy::all)]
24

35
/// Test for https://github.com/rust-lang/rust-clippy/issues/1588

tests/ui/crashes/ice-1782.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code, unused_variables)]
24

35
/// Should not trigger an ICE in `SpanlessEq` / `consts::constant`

tests/ui/crashes/ice-1969.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(clippy::all)]
24

35
/// Test for https://github.com/rust-lang/rust-clippy/issues/1969

tests/ui/crashes/ice-2499.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code, clippy::char_lit_as_u8, clippy::needless_bool)]
24

35
/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`

tests/ui/crashes/ice-2594.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(dead_code, unused_variables)]
24

35
/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`

tests/ui/crashes/ice-2727.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
/// Test for https://github.com/rust-lang/rust-clippy/issues/2727
24
35
pub fn f(new: fn()) {

tests/ui/crashes/ice-2760.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#![allow(
24
unused_variables,
35
clippy::blacklisted_name,

0 commit comments

Comments
 (0)