Skip to content

Commit cfd4c53

Browse files
flip1995Manishearth
authored andcommitted
Adapt ui-toml-tests to the tool_lints
1 parent ea43fed commit cfd4c53

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

tests/ui-toml/toml_blacklist/conf_french_blacklisted_name.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
1+
#![feature(tool_lints)]
22

33

44
#![allow(dead_code)]
5-
#![allow(single_match)]
5+
#![allow(clippy::single_match)]
66
#![allow(unused_variables)]
7-
#![warn(blacklisted_name)]
7+
#![warn(clippy::blacklisted_name)]
88

99
fn test(toto: ()) {}
1010

tests/ui-toml/toml_blacklist/conf_french_blacklisted_name.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: use of a blacklisted/placeholder name `toto`
44
9 | fn test(toto: ()) {}
55
| ^^^^
66
|
7-
= note: `-D blacklisted-name` implied by `-D warnings`
7+
= note: `-D clippy::blacklisted-name` implied by `-D warnings`
88

99
error: use of a blacklisted/placeholder name `toto`
1010
--> $DIR/conf_french_blacklisted_name.rs:12:9

tests/ui-toml/toml_trivially_copy/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![allow(many_single_char_names)]
1+
#![feature(tool_lints)]
2+
#![allow(clippy::many_single_char_names)]
23

34
#[derive(Copy, Clone)]
45
struct Foo(u8);

tests/ui-toml/toml_trivially_copy/test.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
error: this argument is passed by reference, but would be more efficient if passed by value
2-
--> $DIR/test.rs:12:11
2+
--> $DIR/test.rs:13:11
33
|
4-
12 | fn bad(x: &u16, y: &Foo) {
4+
13 | fn bad(x: &u16, y: &Foo) {
55
| ^^^^ help: consider passing by value instead: `u16`
66
|
7-
= note: `-D trivially-copy-pass-by-ref` implied by `-D warnings`
7+
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
88

99
error: this argument is passed by reference, but would be more efficient if passed by value
10-
--> $DIR/test.rs:12:20
10+
--> $DIR/test.rs:13:20
1111
|
12-
12 | fn bad(x: &u16, y: &Foo) {
12+
13 | fn bad(x: &u16, y: &Foo) {
1313
| ^^^^ help: consider passing by value instead: `Foo`
1414

1515
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)