|
1 |
| -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
| 1 | +warning: unused variable: `Foo` |
2 | 2 | --> $DIR/lint-uppercase-variables.rs:22:9
|
3 | 3 | |
|
4 | 4 | LL | Foo => {}
|
5 |
| - | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
| 5 | + | ^^^ help: consider prefixing with an underscore: `_Foo` |
6 | 6 | |
|
7 |
| - = note: `#[warn(bindings_with_variant_name)]` on by default |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/lint-uppercase-variables.rs:1:9 |
| 9 | + | |
| 10 | +LL | #![warn(unused)] |
| 11 | + | ^^^^^^ |
| 12 | + = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` |
8 | 13 |
|
9 |
| -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
| 14 | +warning: unused variable: `Foo` |
10 | 15 | --> $DIR/lint-uppercase-variables.rs:28:9
|
11 | 16 | |
|
12 | 17 | LL | let Foo = foo::Foo::Foo;
|
13 |
| - | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
| 18 | + | ^^^ help: consider prefixing with an underscore: `_Foo` |
14 | 19 |
|
15 |
| -warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
| 20 | +warning: unused variable: `Foo` |
16 | 21 | --> $DIR/lint-uppercase-variables.rs:33:17
|
17 | 22 | |
|
18 | 23 | LL | fn in_param(Foo: foo::Foo) {}
|
19 |
| - | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
| 24 | + | ^^^ help: consider prefixing with an underscore: `_Foo` |
20 | 25 |
|
21 |
| -warning: unused variable: `Foo` |
| 26 | +warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
22 | 27 | --> $DIR/lint-uppercase-variables.rs:22:9
|
23 | 28 | |
|
24 | 29 | LL | Foo => {}
|
25 |
| - | ^^^ help: consider prefixing with an underscore: `_Foo` |
26 |
| - | |
27 |
| -note: the lint level is defined here |
28 |
| - --> $DIR/lint-uppercase-variables.rs:1:9 |
| 30 | + | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
29 | 31 | |
|
30 |
| -LL | #![warn(unused)] |
31 |
| - | ^^^^^^ |
32 |
| - = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` |
| 32 | + = note: `#[warn(bindings_with_variant_name)]` on by default |
33 | 33 |
|
34 |
| -warning: unused variable: `Foo` |
| 34 | +warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
35 | 35 | --> $DIR/lint-uppercase-variables.rs:28:9
|
36 | 36 | |
|
37 | 37 | LL | let Foo = foo::Foo::Foo;
|
38 |
| - | ^^^ help: consider prefixing with an underscore: `_Foo` |
| 38 | + | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
39 | 39 |
|
40 |
| -warning: unused variable: `Foo` |
| 40 | +warning[E0170]: pattern binding `Foo` is named the same as one of the variants of the type `foo::Foo` |
41 | 41 | --> $DIR/lint-uppercase-variables.rs:33:17
|
42 | 42 | |
|
43 | 43 | LL | fn in_param(Foo: foo::Foo) {}
|
44 |
| - | ^^^ help: consider prefixing with an underscore: `_Foo` |
| 44 | + | ^^^ help: to match on the variant, qualify the path: `foo::Foo::Foo` |
45 | 45 |
|
46 | 46 | error: structure field `X` should have a snake case name
|
47 | 47 | --> $DIR/lint-uppercase-variables.rs:10:5
|
|
0 commit comments