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

Add missing // run-pass annotations to ICE tests #3922

Merged
merged 1 commit into from Apr 6, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -1,3 +1,5 @@
// run-pass

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

pub trait Trait {
@@ -1,3 +1,5 @@
// run-pass

#[allow(dead_code)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/478
@@ -1,3 +1,5 @@
// run-pass

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

@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1588
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code, unused_variables)]

/// Should not trigger an ICE in `SpanlessEq` / `consts::constant`
@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1969
@@ -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`
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code, unused_variables)]

/// Should not trigger an ICE in `SpanlessHash` / `consts::constant`
@@ -1,3 +1,5 @@
// run-pass

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

pub fn f(new: fn()) {
@@ -1,3 +1,5 @@
// run-pass

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

use std::collections::HashSet;

// See rust-lang/rust-clippy#2774.
@@ -1,3 +1,5 @@
// run-pass

#[allow(dead_code)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2865
@@ -1,3 +1,5 @@
// run-pass

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

#[derive(Clone)]
@@ -1,3 +1,5 @@
// run-pass

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

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

macro_rules! a {
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/700
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1336
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::if_same_then_else)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2426
@@ -1,3 +1,5 @@
// run-pass

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

pub trait FooMap {
@@ -1,3 +1,5 @@
// run-pass

#![allow(warnings)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/825
@@ -1,3 +1,5 @@
// run-pass

#![allow(dead_code)]

/// Issue: https://github.com/rust-lang/rust-clippy/issues/2596
@@ -1,3 +1,5 @@
// run-pass

#![deny(clippy::match_same_arms)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/2427
@@ -1,3 +1,5 @@
// run-pass

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

@@ -1,3 +1,5 @@
// run-pass

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

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

@@ -1,3 +1,5 @@
// run-pass

#[macro_use]
extern crate clippy_mini_macro_test;

@@ -1,3 +1,5 @@
// run-pass

#![allow(clippy::blacklisted_name)]

pub fn foo(bar: *const u8) {
@@ -1,3 +1,5 @@
// run-pass

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

#[deny(warnings)]
@@ -1,3 +1,5 @@
// run-pass

#![warn(clippy::single_match_else)]

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

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

#[macro_use]