@@ -19,43 +19,43 @@ 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:19 :13
22
+ --> $DIR/use_self.rs:18 :13
23
23
|
24
24
LL | Foo::new()
25
25
| ^^^ help: use the applicable keyword: `Self`
26
26
27
27
error: unnecessary structure name repetition
28
- --> $DIR/use_self.rs:25 :25
28
+ --> $DIR/use_self.rs:23 :25
29
29
|
30
30
LL | fn default() -> Foo {
31
31
| ^^^ help: use the applicable keyword: `Self`
32
32
33
33
error: unnecessary structure name repetition
34
- --> $DIR/use_self.rs:27 :13
34
+ --> $DIR/use_self.rs:24 :13
35
35
|
36
36
LL | Foo::new()
37
37
| ^^^ help: use the applicable keyword: `Self`
38
38
39
39
error: unnecessary structure name repetition
40
- --> $DIR/use_self.rs:96 :24
40
+ --> $DIR/use_self.rs:89 :24
41
41
|
42
42
LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
43
43
| ^^^ help: use the applicable keyword: `Self`
44
44
45
45
error: unnecessary structure name repetition
46
- --> $DIR/use_self.rs:96 :55
46
+ --> $DIR/use_self.rs:89 :55
47
47
|
48
48
LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
49
49
| ^^^ help: use the applicable keyword: `Self`
50
50
51
51
error: unnecessary structure name repetition
52
- --> $DIR/use_self.rs:111 :13
52
+ --> $DIR/use_self.rs:104 :13
53
53
|
54
54
LL | TS(0)
55
55
| ^^ help: use the applicable keyword: `Self`
56
56
57
57
error: unnecessary structure name repetition
58
- --> $DIR/use_self.rs:119 :25
58
+ --> $DIR/use_self.rs:112 :25
59
59
|
60
60
LL | fn new() -> Foo {
61
61
| ^^^ help: use the applicable keyword: `Self`
@@ -66,7 +66,7 @@ LL | use_self_expand!(); // Should lint in local macros
66
66
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
67
67
68
68
error: unnecessary structure name repetition
69
- --> $DIR/use_self.rs:120 :17
69
+ --> $DIR/use_self.rs:113 :17
70
70
|
71
71
LL | Foo {}
72
72
| ^^^ help: use the applicable keyword: `Self`
@@ -77,121 +77,121 @@ LL | use_self_expand!(); // Should lint in local macros
77
77
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
78
78
79
79
error: unnecessary structure name repetition
80
- --> $DIR/use_self.rs:143 :29
80
+ --> $DIR/use_self.rs:136 :29
81
81
|
82
82
LL | fn bar() -> Bar {
83
83
| ^^^ help: use the applicable keyword: `Self`
84
84
85
85
error: unnecessary structure name repetition
86
- --> $DIR/use_self.rs:144 :21
86
+ --> $DIR/use_self.rs:137 :21
87
87
|
88
88
LL | Bar { foo: Foo {} }
89
89
| ^^^ help: use the applicable keyword: `Self`
90
90
91
91
error: unnecessary structure name repetition
92
- --> $DIR/use_self.rs:155 :21
92
+ --> $DIR/use_self.rs:148 :21
93
93
|
94
94
LL | fn baz() -> Foo {
95
95
| ^^^ help: use the applicable keyword: `Self`
96
96
97
97
error: unnecessary structure name repetition
98
- --> $DIR/use_self.rs:156 :13
98
+ --> $DIR/use_self.rs:149 :13
99
99
|
100
100
LL | Foo {}
101
101
| ^^^ help: use the applicable keyword: `Self`
102
102
103
103
error: unnecessary structure name repetition
104
- --> $DIR/use_self.rs:173 :21
104
+ --> $DIR/use_self.rs:166 :21
105
105
|
106
106
LL | let _ = Enum::B(42);
107
107
| ^^^^ help: use the applicable keyword: `Self`
108
108
109
109
error: unnecessary structure name repetition
110
- --> $DIR/use_self.rs:174 :21
110
+ --> $DIR/use_self.rs:167 :21
111
111
|
112
112
LL | let _ = Enum::C { field: true };
113
113
| ^^^^ help: use the applicable keyword: `Self`
114
114
115
115
error: unnecessary structure name repetition
116
- --> $DIR/use_self.rs:175 :21
116
+ --> $DIR/use_self.rs:168 :21
117
117
|
118
118
LL | let _ = Enum::A;
119
119
| ^^^^ help: use the applicable keyword: `Self`
120
120
121
121
error: unnecessary structure name repetition
122
- --> $DIR/use_self.rs:218 :13
122
+ --> $DIR/use_self.rs:210 :13
123
123
|
124
124
LL | nested::A::fun_1();
125
125
| ^^^^^^^^^ help: use the applicable keyword: `Self`
126
126
127
127
error: unnecessary structure name repetition
128
- --> $DIR/use_self.rs:220 :13
128
+ --> $DIR/use_self.rs:211 :13
129
129
|
130
130
LL | nested::A::A;
131
131
| ^^^^^^^^^ help: use the applicable keyword: `Self`
132
132
133
133
error: unnecessary structure name repetition
134
- --> $DIR/use_self.rs:222 :13
134
+ --> $DIR/use_self.rs:213 :13
135
135
|
136
136
LL | nested::A {};
137
137
| ^^^^^^^^^ help: use the applicable keyword: `Self`
138
138
139
139
error: unnecessary structure name repetition
140
- --> $DIR/use_self.rs:242 :13
140
+ --> $DIR/use_self.rs:232 :13
141
141
|
142
142
LL | TestStruct::from_something()
143
143
| ^^^^^^^^^^ help: use the applicable keyword: `Self`
144
144
145
145
error: unnecessary structure name repetition
146
- --> $DIR/use_self.rs:257 :25
146
+ --> $DIR/use_self.rs:246 :25
147
147
|
148
148
LL | async fn g() -> S {
149
149
| ^ help: use the applicable keyword: `Self`
150
150
151
151
error: unnecessary structure name repetition
152
- --> $DIR/use_self.rs:258 :13
152
+ --> $DIR/use_self.rs:247 :13
153
153
|
154
154
LL | S {}
155
155
| ^ help: use the applicable keyword: `Self`
156
156
157
157
error: unnecessary structure name repetition
158
- --> $DIR/use_self.rs:263 :16
158
+ --> $DIR/use_self.rs:251 :16
159
159
|
160
160
LL | &p[S::A..S::B]
161
161
| ^ help: use the applicable keyword: `Self`
162
162
163
163
error: unnecessary structure name repetition
164
- --> $DIR/use_self.rs:263 :22
164
+ --> $DIR/use_self.rs:251 :22
165
165
|
166
166
LL | &p[S::A..S::B]
167
167
| ^ help: use the applicable keyword: `Self`
168
168
169
169
error: unnecessary structure name repetition
170
- --> $DIR/use_self.rs:286 :29
170
+ --> $DIR/use_self.rs:274 :29
171
171
|
172
172
LL | fn foo(value: T) -> Foo<T> {
173
173
| ^^^^^^ help: use the applicable keyword: `Self`
174
174
175
175
error: unnecessary structure name repetition
176
- --> $DIR/use_self.rs:287 :13
176
+ --> $DIR/use_self.rs:275 :13
177
177
|
178
178
LL | Foo { value }
179
179
| ^^^ help: use the applicable keyword: `Self`
180
180
181
181
error: unnecessary structure name repetition
182
- --> $DIR/use_self.rs:324 :21
182
+ --> $DIR/use_self.rs:312 :21
183
183
|
184
184
LL | type From = T::From;
185
185
| ^^^^^^^ help: use the applicable keyword: `Self`
186
186
187
187
error: unnecessary structure name repetition
188
- --> $DIR/use_self.rs:325 :19
188
+ --> $DIR/use_self.rs:313 :19
189
189
|
190
190
LL | type To = T::To;
191
191
| ^^^^^ help: use the applicable keyword: `Self`
192
192
193
193
error: unnecessary structure name repetition
194
- --> $DIR/use_self.rs:464 :13
194
+ --> $DIR/use_self.rs:451 :13
195
195
|
196
196
LL | A::new::<submod::B>(submod::B {})
197
197
| ^ help: use the applicable keyword: `Self`
0 commit comments