Update tests to current rustc

This commit is contained in:
Oliver Schneider 2017-08-28 18:16:16 +02:00
parent 23bc6508bb
commit 73d87d966d
No known key found for this signature in database
GPG Key ID: A69F8D225B3AD7D9
4 changed files with 4 additions and 5 deletions

View File

@ -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)]

View File

@ -1 +1 @@
build_lib = true workspace_mode=true

View File

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

View File

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