mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
Update tests to current rustc
This commit is contained in:
parent
23bc6508bb
commit
73d87d966d
@ -1,7 +1,6 @@
|
|||||||
// error-pattern:cargo-clippy
|
// error-pattern:cargo-clippy
|
||||||
|
|
||||||
#![feature(box_syntax)]
|
#![feature(box_syntax)]
|
||||||
#![feature(alloc)]
|
|
||||||
#![feature(custom_attribute)]
|
#![feature(custom_attribute)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
#![feature(i128)]
|
#![feature(i128)]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#![plugin(clippy)]
|
#![plugin(clippy)]
|
||||||
#![warn(useless_attribute)]
|
#![warn(useless_attribute)]
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code, unused_extern_crates)]
|
||||||
extern crate clippy_lints;
|
extern crate clippy_lints;
|
||||||
|
|
||||||
// don't lint on unused_import for `use` items
|
// don't lint on unused_import for `use` items
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
error: useless lint attribute
|
error: useless lint attribute
|
||||||
--> $DIR/useless_attribute.rs:5:1
|
--> $DIR/useless_attribute.rs:5:1
|
||||||
|
|
|
|
||||||
5 | #[allow(dead_code)]
|
5 | #[allow(dead_code, unused_extern_crates)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code, unused_extern_crates)]`
|
||||||
|
|
|
|
||||||
= note: `-D useless-attribute` implied by `-D warnings`
|
= note: `-D useless-attribute` implied by `-D warnings`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user