Adapt ui-toml-tests to the tool_lints

This commit is contained in:
flip1995 2018-08-01 22:38:04 +02:00 committed by Manish Goregaokar
parent ea43fedf9e
commit cfd4c538d4
4 changed files with 11 additions and 10 deletions

View file

@ -1,10 +1,10 @@
#![feature(tool_lints)]
#![allow(dead_code)]
#![allow(single_match)]
#![allow(clippy::single_match)]
#![allow(unused_variables)]
#![warn(blacklisted_name)]
#![warn(clippy::blacklisted_name)]
fn test(toto: ()) {}

View file

@ -4,7 +4,7 @@ error: use of a blacklisted/placeholder name `toto`
9 | fn test(toto: ()) {}
| ^^^^
|
= note: `-D blacklisted-name` implied by `-D warnings`
= note: `-D clippy::blacklisted-name` implied by `-D warnings`
error: use of a blacklisted/placeholder name `toto`
--> $DIR/conf_french_blacklisted_name.rs:12:9

View file

@ -1,4 +1,5 @@
#![allow(many_single_char_names)]
#![feature(tool_lints)]
#![allow(clippy::many_single_char_names)]
#[derive(Copy, Clone)]
struct Foo(u8);

View file

@ -1,15 +1,15 @@
error: this argument is passed by reference, but would be more efficient if passed by value
--> $DIR/test.rs:12:11
--> $DIR/test.rs:13:11
|
12 | fn bad(x: &u16, y: &Foo) {
13 | fn bad(x: &u16, y: &Foo) {
| ^^^^ help: consider passing by value instead: `u16`
|
= note: `-D trivially-copy-pass-by-ref` implied by `-D warnings`
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
error: this argument is passed by reference, but would be more efficient if passed by value
--> $DIR/test.rs:12:20
--> $DIR/test.rs:13:20
|
12 | fn bad(x: &u16, y: &Foo) {
13 | fn bad(x: &u16, y: &Foo) {
| ^^^^ help: consider passing by value instead: `Foo`
error: aborting due to 2 previous errors