1
1
error: unnecessary structure name repetition
2
- --> $DIR/use_self.rs:14:21
2
+ --> $DIR/use_self.rs:15:13
3
3
|
4
- LL | fn new() -> Foo {
5
- | ^^^ help: use the applicable keyword: `Self`
4
+ LL | Foo {}
5
+ | ^^^ help: use the applicable keyword: `Self`
6
6
|
7
7
= note: `-D clippy::use-self` implied by `-D warnings`
8
8
9
9
error: unnecessary structure name repetition
10
- --> $DIR/use_self.rs:15:13
10
+ --> $DIR/use_self.rs:14:21
11
11
|
12
- LL | Foo {}
13
- | ^^^ help: use the applicable keyword: `Self`
12
+ LL | fn new() -> Foo {
13
+ | ^^^ help: use the applicable keyword: `Self`
14
14
15
15
error: unnecessary structure name repetition
16
16
--> $DIR/use_self.rs:17:22
@@ -19,122 +19,116 @@ LL | fn test() -> Foo {
19
19
| ^^^ help: use the applicable keyword: `Self`
20
20
21
21
error: unnecessary structure name repetition
22
- --> $DIR/use_self.rs:23:25
23
- |
24
- LL | fn default() -> Foo {
25
- | ^^^ help: use the applicable keyword: `Self`
26
-
27
- error: unnecessary structure name repetition
28
- --> $DIR/use_self.rs:94:24
22
+ --> $DIR/use_self.rs:96:24
29
23
|
30
24
LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
31
25
| ^^^ help: use the applicable keyword: `Self`
32
26
33
27
error: unnecessary structure name repetition
34
- --> $DIR/use_self.rs:109 :13
28
+ --> $DIR/use_self.rs:111 :13
35
29
|
36
30
LL | TS(0)
37
31
| ^^ help: use the applicable keyword: `Self`
38
32
39
33
error: unnecessary structure name repetition
40
- --> $DIR/use_self.rs:117:25
34
+ --> $DIR/use_self.rs:120:17
41
35
|
42
- LL | fn new() -> Foo {
43
- | ^^^ help: use the applicable keyword: `Self`
36
+ LL | Foo {}
37
+ | ^^^ help: use the applicable keyword: `Self`
44
38
...
45
39
LL | use_self_expand!(); // Should lint in local macros
46
40
| ------------------- in this macro invocation
47
41
|
48
42
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
49
43
50
44
error: unnecessary structure name repetition
51
- --> $DIR/use_self.rs:118:17
45
+ --> $DIR/use_self.rs:119:25
52
46
|
53
- LL | Foo {}
54
- | ^^^ help: use the applicable keyword: `Self`
47
+ LL | fn new() -> Foo {
48
+ | ^^^ help: use the applicable keyword: `Self`
55
49
...
56
50
LL | use_self_expand!(); // Should lint in local macros
57
51
| ------------------- in this macro invocation
58
52
|
59
53
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60
54
61
55
error: unnecessary structure name repetition
62
- --> $DIR/use_self.rs:141:29
63
- |
64
- LL | fn bar() -> Bar {
65
- | ^^^ help: use the applicable keyword: `Self`
66
-
67
- error: unnecessary structure name repetition
68
- --> $DIR/use_self.rs:142:21
56
+ --> $DIR/use_self.rs:144:21
69
57
|
70
58
LL | Bar { foo: Foo {} }
71
59
| ^^^ help: use the applicable keyword: `Self`
72
60
73
61
error: unnecessary structure name repetition
74
- --> $DIR/use_self.rs:153:21
62
+ --> $DIR/use_self.rs:143:29
75
63
|
76
- LL | fn baz () -> Foo {
77
- | ^^^ help: use the applicable keyword: `Self`
64
+ LL | fn bar () -> Bar {
65
+ | ^^^ help: use the applicable keyword: `Self`
78
66
79
67
error: unnecessary structure name repetition
80
- --> $DIR/use_self.rs:154 :13
68
+ --> $DIR/use_self.rs:156 :13
81
69
|
82
70
LL | Foo {}
83
71
| ^^^ help: use the applicable keyword: `Self`
84
72
85
73
error: unnecessary structure name repetition
86
- --> $DIR/use_self.rs:171:21
74
+ --> $DIR/use_self.rs:155:21
75
+ |
76
+ LL | fn baz() -> Foo {
77
+ | ^^^ help: use the applicable keyword: `Self`
78
+
79
+ error: unnecessary structure name repetition
80
+ --> $DIR/use_self.rs:173:21
87
81
|
88
82
LL | let _ = Enum::B(42);
89
83
| ^^^^ help: use the applicable keyword: `Self`
90
84
91
85
error: unnecessary structure name repetition
92
- --> $DIR/use_self.rs:172 :21
86
+ --> $DIR/use_self.rs:174 :21
93
87
|
94
88
LL | let _ = Enum::C { field: true };
95
89
| ^^^^ help: use the applicable keyword: `Self`
96
90
97
91
error: unnecessary structure name repetition
98
- --> $DIR/use_self.rs:173 :21
92
+ --> $DIR/use_self.rs:175 :21
99
93
|
100
94
LL | let _ = Enum::A;
101
95
| ^^^^ help: use the applicable keyword: `Self`
102
96
103
97
error: unnecessary structure name repetition
104
- --> $DIR/use_self.rs:218 :13
98
+ --> $DIR/use_self.rs:222 :13
105
99
|
106
100
LL | nested::A {};
107
101
| ^^^^^^^^^ help: use the applicable keyword: `Self`
108
102
109
103
error: unnecessary structure name repetition
110
- --> $DIR/use_self.rs:254 :13
104
+ --> $DIR/use_self.rs:258 :13
111
105
|
112
106
LL | S {}
113
107
| ^ help: use the applicable keyword: `Self`
114
108
115
109
error: unnecessary structure name repetition
116
- --> $DIR/use_self.rs:282:29
110
+ --> $DIR/use_self.rs:287:13
117
111
|
118
- LL | fn foo(value: T) -> Foo<T> {
119
- | ^^^ ^^^ help: use the applicable keyword: `Self`
112
+ LL | Foo { value }
113
+ | ^^^ help: use the applicable keyword: `Self`
120
114
121
115
error: unnecessary structure name repetition
122
- --> $DIR/use_self.rs:283:13
116
+ --> $DIR/use_self.rs:286:29
123
117
|
124
- LL | Foo { value }
125
- | ^^^ help: use the applicable keyword: `Self`
118
+ LL | fn foo(value: T) -> Foo<T> {
119
+ | ^^^ ^^^ help: use the applicable keyword: `Self`
126
120
127
121
error: unnecessary structure name repetition
128
- --> $DIR/use_self.rs:320 :21
122
+ --> $DIR/use_self.rs:324 :21
129
123
|
130
124
LL | type From = T::From;
131
125
| ^^^^^^^ help: use the applicable keyword: `Self`
132
126
133
127
error: unnecessary structure name repetition
134
- --> $DIR/use_self.rs:321 :19
128
+ --> $DIR/use_self.rs:325 :19
135
129
|
136
130
LL | type To = T::To;
137
131
| ^^^^^ help: use the applicable keyword: `Self`
138
132
139
- error: aborting due to 21 previous errors
133
+ error: aborting due to 20 previous errors
140
134
0 commit comments