Skip to content

Commit

Permalink
Merge pull request #3922 from rust-lang/run-pass
Browse files Browse the repository at this point in the history
Add missing `// run-pass` annotations to ICE tests
  • Loading branch information
oli-obk authored Apr 6, 2019
2 parents 17e04ac + b545f1c commit b996fd5
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/crashes/associated-constant-ice.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/1698
pub trait Trait {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/cc_seme.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#[allow(dead_code)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/478
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/enum-glob-import-crate.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::all)]
#![allow(unused_imports)]

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-1588.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1588
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-1782.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code, unused_variables)]

/// Should not trigger an ICE in `SpanlessEq` / `consts::constant`
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-1969.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1969
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2499.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code, clippy::char_lit_as_u8, clippy::needless_bool)]

/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2594.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code, unused_variables)]

/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2727.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/2727
pub fn f(new: fn()) {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2760.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(
unused_variables,
clippy::blacklisted_name,
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2774.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

use std::collections::HashSet;

// See rust-lang/rust-clippy#2774.
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-2865.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#[allow(dead_code)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2865
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-3151.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/2865
#[derive(Clone)]
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-3462.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![warn(clippy::all)]
#![allow(clippy::blacklisted_name)]
#![allow(unused)]
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-3747.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/3747
macro_rules! a {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice-700.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/700
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/ice_exacte_size.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1336
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/if_same_then_else.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::if_same_then_else)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2426
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/issue-2862.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/2826
pub trait FooMap {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/issue-825.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(warnings)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/825
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/issues_loop_mut_cond.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code)]

/// Issue: https://github.com/rust-lang/rust-clippy/issues/2596
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/match_same_arms_const.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::match_same_arms)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2427
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/mut_mut_macro.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::mut_mut, clippy::zero_ptr, clippy::cmp_nan)]
#![allow(dead_code)]

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/needless_borrow_fp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#[deny(clippy::all)]
#[derive(Debug)]
pub enum Error {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/needless_lifetimes_impl_trait.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::needless_lifetimes)]
#![allow(dead_code)]

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/procedural_macro.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#[macro_use]
extern crate clippy_mini_macro_test;

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/regressions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::blacklisted_name)]

pub fn foo(bar: *const u8) {
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/returns.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

/// Test for https://github.com/rust-lang/rust-clippy/issues/1346
#[deny(warnings)]
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/single-match-else.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![warn(clippy::single_match_else)]

//! Test for https://github.com/rust-lang/rust-clippy/issues/1588
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/crashes/used_underscore_binding_macro.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::useless_attribute)] //issue #2910

#[macro_use]
Expand Down

0 comments on commit b996fd5

Please sign in to comment.