Skip to content

Commit 699f686

Browse files
committed
Adapting run-pass tests to the new tool_lints
1 parent 1a85098 commit 699f686

17 files changed

+18
-36
lines changed

tests/run-pass/associated-constant-ice.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
3-
41
pub trait Trait {
52
const CONSTANT: u8;
63
}

tests/run-pass/enum-glob-import-crate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![deny(clippy)]
1+
#![deny(clippy::all)]
42
#![allow(unused_imports)]
53

64
use std::*;

tests/run-pass/ice-1588.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![allow(clippy)]
1+
#![allow(clippy::all)]
42

53
fn main() {
64
match 1 {

tests/run-pass/ice-1969.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![allow(clippy)]
1+
#![allow(clippy::all)]
42

53
fn main() { }
64

tests/run-pass/ice-2499.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(dead_code, char_lit_as_u8, needless_bool)]
1+
#![allow(dead_code, clippy::char_lit_as_u8, clippy::needless_bool)]
22

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

tests/run-pass/ice-2760.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![allow(unused_variables, blacklisted_name, needless_pass_by_value, dead_code)]
1+
#![allow(unused_variables, clippy::blacklisted_name,
2+
clippy::needless_pass_by_value, dead_code)]
23

34
// This should not compile-fail with:
45
//

tests/run-pass/ice-2774.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct Bar {
1010
#[derive(Eq, PartialEq, Debug, Hash)]
1111
pub struct Foo {}
1212

13-
#[allow(implicit_hasher)]
13+
#[allow(clippy::implicit_hasher)]
1414
// This should not cause a 'cannot relate bound region' ICE
1515
pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
1616
let mut foos = HashSet::new();
@@ -19,7 +19,7 @@ pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
1919
);
2020
}
2121

22-
#[allow(implicit_hasher)]
22+
#[allow(clippy::implicit_hasher)]
2323
// Also this should not cause a 'cannot relate bound region' ICE
2424
pub fn add_barfoos_to_foos2(bars: &HashSet<&Bar>) {
2525
let mut foos = HashSet::new();

tests/run-pass/ice-700.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![deny(clippy)]
1+
#![deny(clippy::all)]
42

53
fn core() {}
64

tests/run-pass/ice_exacte_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(clippy)]
1+
#![deny(clippy::all)]
22

33
#[allow(dead_code)]
44
struct Foo;

tests/run-pass/if_same_then_else.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(if_same_then_else)]
1+
#![deny(clippy::if_same_then_else)]
22

33
fn main() {}
44

tests/run-pass/match_same_arms_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(match_same_arms)]
1+
#![deny(clippy::match_same_arms)]
22

33
const PRICE_OF_SWEETS: u32 = 5;
44
const PRICE_OF_KINDNESS: u32 = 0;

tests/run-pass/mut_mut_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(mut_mut, zero_ptr, cmp_nan)]
1+
#![deny(clippy::mut_mut, clippy::zero_ptr, clippy::cmp_nan)]
22
#![allow(dead_code)]
33

44
// compiletest + extern crates doesn't work together

tests/run-pass/needless_borrow_fp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[deny(clippy)]
1+
#[deny(clippy::all)]
22

33
#[derive(Debug)]
44
pub enum Error {

tests/run-pass/needless_lifetimes_impl_trait.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
#![deny(needless_lifetimes)]
1+
#![deny(clippy::needless_lifetimes)]
32
#![allow(dead_code)]
43

54
trait Foo {}

tests/run-pass/regressions.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![allow(blacklisted_name)]
1+
#![allow(clippy::blacklisted_name)]
42

53
pub fn foo(bar: *const u8) {
64
println!("{:#p}", bar);

tests/run-pass/single-match-else.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
3-
#![warn(single_match_else)]
1+
#![warn(clippy::single_match_else)]
42

53
fn main() {
64
let n = match (42, 43) {

tests/run-pass/used_underscore_binding_macro.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
2-
3-
41
#[macro_use]
52
extern crate serde_derive;
63

74
/// Test that we do not lint for unused underscores in a `MacroAttribute`
85
/// expansion
9-
#[deny(used_underscore_binding)]
6+
#[deny(clippy::used_underscore_binding)]
107
#[derive(Deserialize)]
118
struct MacroAttributesTest {
129
_foo: u32,

0 commit comments

Comments
 (0)