Skip to content

Commit 73d87d9

Browse files
committed
Update tests to current rustc
1 parent 23bc650 commit 73d87d9

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

clippy_lints/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// error-pattern:cargo-clippy
22

33
#![feature(box_syntax)]
4-
#![feature(alloc)]
54
#![feature(custom_attribute)]
65
#![feature(i128_type)]
76
#![feature(i128)]

rls.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build_lib = true
1+
workspace_mode=true

tests/ui/useless_attribute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![plugin(clippy)]
33
#![warn(useless_attribute)]
44

5-
#[allow(dead_code)]
5+
#[allow(dead_code, unused_extern_crates)]
66
extern crate clippy_lints;
77

88
// don't lint on unused_import for `use` items

tests/ui/useless_attribute.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: useless lint attribute
22
--> $DIR/useless_attribute.rs:5:1
33
|
4-
5 | #[allow(dead_code)]
5-
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
4+
5 | #[allow(dead_code, unused_extern_crates)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code, unused_extern_crates)]`
66
|
77
= note: `-D useless-attribute` implied by `-D warnings`
88

0 commit comments

Comments
 (0)