File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
-
1
+ #! [ feature ( tool_lints ) ]
2
2
3
3
4
4
#![ allow( dead_code) ]
5
- #![ allow( single_match) ]
5
+ #![ allow( clippy :: single_match) ]
6
6
#![ allow( unused_variables) ]
7
- #![ warn( blacklisted_name) ]
7
+ #![ warn( clippy :: blacklisted_name) ]
8
8
9
9
fn test ( toto : ( ) ) { }
10
10
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: use of a blacklisted/placeholder name `toto`
4
4
9 | fn test(toto: ()) {}
5
5
| ^^^^
6
6
|
7
- = note: `-D blacklisted-name` implied by `-D warnings`
7
+ = note: `-D clippy:: blacklisted-name` implied by `-D warnings`
8
8
9
9
error: use of a blacklisted/placeholder name `toto`
10
10
--> $DIR/conf_french_blacklisted_name.rs:12:9
Original file line number Diff line number Diff line change 1
- #![ allow( many_single_char_names) ]
1
+ #![ feature( tool_lints) ]
2
+ #![ allow( clippy:: many_single_char_names) ]
2
3
3
4
#[ derive( Copy , Clone ) ]
4
5
struct Foo ( u8 ) ;
Original file line number Diff line number Diff line change 1
1
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
3
3
|
4
- 12 | fn bad(x: &u16, y: &Foo) {
4
+ 13 | fn bad(x: &u16, y: &Foo) {
5
5
| ^^^^ help: consider passing by value instead: `u16`
6
6
|
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`
8
8
9
9
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
11
11
|
12
- 12 | fn bad(x: &u16, y: &Foo) {
12
+ 13 | fn bad(x: &u16, y: &Foo) {
13
13
| ^^^^ help: consider passing by value instead: `Foo`
14
14
15
15
error: aborting due to 2 previous errors
You can’t perform that action at this time.
0 commit comments