Add tests

This commit is contained in:
flip1995 2018-09-03 15:34:33 +02:00 committed by flip1995
parent e1cf160e2a
commit 7bd8c303d3
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#![feature(tool_lints)]
#![warn(clippy::deprecated_cfg_attr)]
// This doesn't get linted, see known problems
#![cfg_attr(rustfmt, rustfmt_skip)]
#[cfg_attr(rustfmt, rustfmt_skip)]
fn main() {}

View file

@ -0,0 +1,10 @@
error: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes
--> $DIR/cfg_attr_lint.rs:8:1
|
8 | #[cfg_attr(rustfmt, rustfmt_skip)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]`
|
= note: `-D clippy::deprecated-cfg-attr` implied by `-D warnings`
error: aborting due to previous error