|
1 | 1 | error: calling `std::string::String::default()` is more clear than this expression |
2 | | - --> $DIR/default_trait_access.rs:8:22 |
| 2 | + --> $DIR/default_trait_access.rs:11:22 |
3 | 3 | | |
4 | 4 | LL | let s1: String = Default::default(); |
5 | 5 | | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` |
6 | 6 | | |
7 | | - = note: `-D clippy::default-trait-access` implied by `-D warnings` |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/default_trait_access.rs:4:9 |
| 9 | + | |
| 10 | +LL | #![deny(clippy::default_trait_access)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
8 | 12 |
|
9 | 13 | error: calling `std::string::String::default()` is more clear than this expression |
10 | | - --> $DIR/default_trait_access.rs:12:22 |
| 14 | + --> $DIR/default_trait_access.rs:15:22 |
11 | 15 | | |
12 | 16 | LL | let s3: String = D2::default(); |
13 | 17 | | ^^^^^^^^^^^^^ help: try: `std::string::String::default()` |
14 | 18 |
|
15 | 19 | error: calling `std::string::String::default()` is more clear than this expression |
16 | | - --> $DIR/default_trait_access.rs:14:22 |
| 20 | + --> $DIR/default_trait_access.rs:17:22 |
17 | 21 | | |
18 | 22 | LL | let s4: String = std::default::Default::default(); |
19 | 23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` |
20 | 24 |
|
21 | 25 | error: calling `std::string::String::default()` is more clear than this expression |
22 | | - --> $DIR/default_trait_access.rs:18:22 |
| 26 | + --> $DIR/default_trait_access.rs:21:22 |
23 | 27 | | |
24 | 28 | LL | let s6: String = default::Default::default(); |
25 | 29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()` |
26 | 30 |
|
27 | | -error: calling `GenericDerivedDefault<std::string::String>::default()` is more clear than this expression |
28 | | - --> $DIR/default_trait_access.rs:28:46 |
| 31 | +error: calling `GenericDerivedDefault::default()` is more clear than this expression |
| 32 | + --> $DIR/default_trait_access.rs:31:46 |
29 | 33 | | |
30 | 34 | LL | let s11: GenericDerivedDefault<String> = Default::default(); |
31 | | - | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()` |
| 35 | + | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()` |
32 | 36 |
|
33 | 37 | error: calling `TupleDerivedDefault::default()` is more clear than this expression |
34 | | - --> $DIR/default_trait_access.rs:34:36 |
| 38 | + --> $DIR/default_trait_access.rs:37:36 |
35 | 39 | | |
36 | 40 | LL | let s14: TupleDerivedDefault = Default::default(); |
37 | 41 | | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()` |
38 | 42 |
|
39 | 43 | error: calling `ArrayDerivedDefault::default()` is more clear than this expression |
40 | | - --> $DIR/default_trait_access.rs:36:36 |
| 44 | + --> $DIR/default_trait_access.rs:39:36 |
41 | 45 | | |
42 | 46 | LL | let s15: ArrayDerivedDefault = Default::default(); |
43 | 47 | | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()` |
44 | 48 |
|
45 | 49 | error: calling `TupleStructDerivedDefault::default()` is more clear than this expression |
46 | | - --> $DIR/default_trait_access.rs:40:42 |
| 50 | + --> $DIR/default_trait_access.rs:43:42 |
47 | 51 | | |
48 | 52 | LL | let s17: TupleStructDerivedDefault = Default::default(); |
49 | 53 | | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()` |
|
0 commit comments