Skip to content

Commit b996fd5

Browse files
authored
Merge pull request #3922 from rust-lang/run-pass
Add missing `// run-pass` annotations to ICE tests
2 parents 17e04ac + b545f1c commit b996fd5

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,

tests/ui/crashes/ice-2774.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
use std::collections::HashSet;
24

35
// See rust-lang/rust-clippy#2774.

tests/ui/crashes/ice-2865.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/2865

tests/ui/crashes/ice-3151.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/2865
24
35
#[derive(Clone)]

tests/ui/crashes/ice-3462.rs

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

tests/ui/crashes/ice-3747.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/3747
24
35
macro_rules! a {

tests/ui/crashes/ice-700.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

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

tests/ui/crashes/ice_exacte_size.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

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

tests/ui/crashes/if_same_then_else.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::if_same_then_else)]
24

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

tests/ui/crashes/issue-2862.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/2826
24
35
pub trait FooMap {

tests/ui/crashes/issue-825.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(warnings)]
24

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

tests/ui/crashes/issues_loop_mut_cond.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
/// Issue: https://github.com/rust-lang/rust-clippy/issues/2596

tests/ui/crashes/match_same_arms_const.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::match_same_arms)]
24

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

tests/ui/crashes/mut_mut_macro.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::mut_mut, clippy::zero_ptr, clippy::cmp_nan)]
24
#![allow(dead_code)]
35

tests/ui/crashes/needless_borrow_fp.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
#[derive(Debug)]
35
pub enum Error {

tests/ui/crashes/needless_lifetimes_impl_trait.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::needless_lifetimes)]
24
#![allow(dead_code)]
35

tests/ui/crashes/procedural_macro.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-pass
2+
13
#[macro_use]
24
extern crate clippy_mini_macro_test;
35

tests/ui/crashes/regressions.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::blacklisted_name)]
24

35
pub fn foo(bar: *const u8) {

tests/ui/crashes/returns.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/1346
24
35
#[deny(warnings)]

tests/ui/crashes/single-match-else.rs

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

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

tests/ui/crashes/used_underscore_binding_macro.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::useless_attribute)] //issue #2910
24

35
#[macro_use]

0 commit comments

Comments
 (0)