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 https://github.com/rust-lang/rust-clippy/pull/3743)
This commit is contained in:
Philipp Hansch 2019-04-05 07:22:36 +02:00
parent 17e04ac751
commit b545f1c3bb
No known key found for this signature in database
GPG key ID: B6FA06A6E0E2665B
30 changed files with 60 additions and 0 deletions

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/1698
pub trait Trait {

View file

@ -1,3 +1,5 @@
// run-pass
#[allow(dead_code)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/478

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::all)]
#![allow(unused_imports)]

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(clippy::all)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/1588

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code, unused_variables)]
/// Should not trigger an ICE in `SpanlessEq` / `consts::constant`

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(clippy::all)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/1969

View file

@ -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`

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code, unused_variables)]
/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/2727
pub fn f(new: fn()) {

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(
unused_variables,
clippy::blacklisted_name,

View file

@ -1,3 +1,5 @@
// run-pass
use std::collections::HashSet;
// See rust-lang/rust-clippy#2774.

View file

@ -1,3 +1,5 @@
// run-pass
#[allow(dead_code)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/2865

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/2865
#[derive(Clone)]

View file

@ -1,3 +1,5 @@
// run-pass
#![warn(clippy::all)]
#![allow(clippy::blacklisted_name)]
#![allow(unused)]

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/3747
macro_rules! a {

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::all)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/700

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::all)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/1336

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::if_same_then_else)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/2426

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/2826
pub trait FooMap {

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(warnings)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/825

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(dead_code)]
/// Issue: https://github.com/rust-lang/rust-clippy/issues/2596

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::match_same_arms)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/2427

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::mut_mut, clippy::zero_ptr, clippy::cmp_nan)]
#![allow(dead_code)]

View file

@ -1,3 +1,5 @@
// run-pass
#[deny(clippy::all)]
#[derive(Debug)]
pub enum Error {

View file

@ -1,3 +1,5 @@
// run-pass
#![deny(clippy::needless_lifetimes)]
#![allow(dead_code)]

View file

@ -1,3 +1,5 @@
// run-pass
#[macro_use]
extern crate clippy_mini_macro_test;

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(clippy::blacklisted_name)]
pub fn foo(bar: *const u8) {

View file

@ -1,3 +1,5 @@
// run-pass
/// Test for https://github.com/rust-lang/rust-clippy/issues/1346
#[deny(warnings)]

View file

@ -1,3 +1,5 @@
// run-pass
#![warn(clippy::single_match_else)]
//! Test for https://github.com/rust-lang/rust-clippy/issues/1588

View file

@ -1,3 +1,5 @@
// run-pass
#![allow(clippy::useless_attribute)] //issue #2910
#[macro_use]