]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/use_self.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / use_self.stderr
CommitLineData
f20569fa 1error: unnecessary structure name repetition
3c0e092e 2 --> $DIR/use_self.rs:22:21
f20569fa
XL
3 |
4LL | fn new() -> Foo {
5 | ^^^ help: use the applicable keyword: `Self`
6 |
7 = note: `-D clippy::use-self` implied by `-D warnings`
8
9error: unnecessary structure name repetition
3c0e092e 10 --> $DIR/use_self.rs:23:13
f20569fa
XL
11 |
12LL | Foo {}
13 | ^^^ help: use the applicable keyword: `Self`
14
15error: unnecessary structure name repetition
3c0e092e 16 --> $DIR/use_self.rs:25:22
f20569fa
XL
17 |
18LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
20
21error: unnecessary structure name repetition
3c0e092e 22 --> $DIR/use_self.rs:26:13
f20569fa
XL
23 |
24LL | Foo::new()
25 | ^^^ help: use the applicable keyword: `Self`
26
27error: unnecessary structure name repetition
3c0e092e 28 --> $DIR/use_self.rs:31:25
f20569fa
XL
29 |
30LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
32
33error: unnecessary structure name repetition
3c0e092e 34 --> $DIR/use_self.rs:32:13
f20569fa
XL
35 |
36LL | Foo::new()
37 | ^^^ help: use the applicable keyword: `Self`
38
39error: unnecessary structure name repetition
3c0e092e 40 --> $DIR/use_self.rs:97:24
f20569fa
XL
41 |
42LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
43 | ^^^ help: use the applicable keyword: `Self`
44
45error: unnecessary structure name repetition
3c0e092e 46 --> $DIR/use_self.rs:97:55
f20569fa
XL
47 |
48LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
49 | ^^^ help: use the applicable keyword: `Self`
50
51error: unnecessary structure name repetition
3c0e092e 52 --> $DIR/use_self.rs:112:13
f20569fa
XL
53 |
54LL | TS(0)
55 | ^^ help: use the applicable keyword: `Self`
56
57error: unnecessary structure name repetition
3c0e092e 58 --> $DIR/use_self.rs:147:29
f20569fa
XL
59 |
60LL | fn bar() -> Bar {
61 | ^^^ help: use the applicable keyword: `Self`
62
63error: unnecessary structure name repetition
3c0e092e 64 --> $DIR/use_self.rs:148:21
f20569fa
XL
65 |
66LL | Bar { foo: Foo {} }
67 | ^^^ help: use the applicable keyword: `Self`
68
69error: unnecessary structure name repetition
3c0e092e 70 --> $DIR/use_self.rs:159:21
f20569fa
XL
71 |
72LL | fn baz() -> Foo {
73 | ^^^ help: use the applicable keyword: `Self`
74
75error: unnecessary structure name repetition
3c0e092e 76 --> $DIR/use_self.rs:160:13
f20569fa
XL
77 |
78LL | Foo {}
79 | ^^^ help: use the applicable keyword: `Self`
80
81error: unnecessary structure name repetition
3c0e092e 82 --> $DIR/use_self.rs:177:21
f20569fa
XL
83 |
84LL | let _ = Enum::B(42);
85 | ^^^^ help: use the applicable keyword: `Self`
86
87error: unnecessary structure name repetition
3c0e092e 88 --> $DIR/use_self.rs:178:21
f20569fa
XL
89 |
90LL | let _ = Enum::C { field: true };
91 | ^^^^ help: use the applicable keyword: `Self`
92
93error: unnecessary structure name repetition
3c0e092e 94 --> $DIR/use_self.rs:179:21
f20569fa
XL
95 |
96LL | let _ = Enum::A;
97 | ^^^^ help: use the applicable keyword: `Self`
98
99error: unnecessary structure name repetition
3c0e092e 100 --> $DIR/use_self.rs:221:13
f20569fa
XL
101 |
102LL | nested::A::fun_1();
103 | ^^^^^^^^^ help: use the applicable keyword: `Self`
104
105error: unnecessary structure name repetition
3c0e092e 106 --> $DIR/use_self.rs:222:13
f20569fa
XL
107 |
108LL | nested::A::A;
109 | ^^^^^^^^^ help: use the applicable keyword: `Self`
110
111error: unnecessary structure name repetition
3c0e092e 112 --> $DIR/use_self.rs:224:13
f20569fa
XL
113 |
114LL | nested::A {};
115 | ^^^^^^^^^ help: use the applicable keyword: `Self`
116
117error: unnecessary structure name repetition
3c0e092e 118 --> $DIR/use_self.rs:243:13
f20569fa
XL
119 |
120LL | TestStruct::from_something()
121 | ^^^^^^^^^^ help: use the applicable keyword: `Self`
122
123error: unnecessary structure name repetition
3c0e092e 124 --> $DIR/use_self.rs:257:25
f20569fa
XL
125 |
126LL | async fn g() -> S {
127 | ^ help: use the applicable keyword: `Self`
128
129error: unnecessary structure name repetition
3c0e092e 130 --> $DIR/use_self.rs:258:13
f20569fa
XL
131 |
132LL | S {}
133 | ^ help: use the applicable keyword: `Self`
134
135error: unnecessary structure name repetition
3c0e092e 136 --> $DIR/use_self.rs:262:16
f20569fa
XL
137 |
138LL | &p[S::A..S::B]
139 | ^ help: use the applicable keyword: `Self`
140
141error: unnecessary structure name repetition
3c0e092e 142 --> $DIR/use_self.rs:262:22
f20569fa
XL
143 |
144LL | &p[S::A..S::B]
145 | ^ help: use the applicable keyword: `Self`
146
147error: unnecessary structure name repetition
3c0e092e 148 --> $DIR/use_self.rs:285:29
f20569fa
XL
149 |
150LL | fn foo(value: T) -> Foo<T> {
151 | ^^^^^^ help: use the applicable keyword: `Self`
152
153error: unnecessary structure name repetition
3c0e092e 154 --> $DIR/use_self.rs:286:13
f20569fa 155 |
136023e0
XL
156LL | Foo::<T> { value }
157 | ^^^^^^^^ help: use the applicable keyword: `Self`
f20569fa
XL
158
159error: unnecessary structure name repetition
3c0e092e 160 --> $DIR/use_self.rs:458:13
f20569fa
XL
161 |
162LL | A::new::<submod::B>(submod::B {})
163 | ^ help: use the applicable keyword: `Self`
164
17df50a5 165error: unnecessary structure name repetition
3c0e092e 166 --> $DIR/use_self.rs:495:13
17df50a5
XL
167 |
168LL | S2::new()
169 | ^^ help: use the applicable keyword: `Self`
170
5e7ed085
FG
171error: unnecessary structure name repetition
172 --> $DIR/use_self.rs:532:17
173 |
174LL | Foo::Bar => unimplemented!(),
175 | ^^^ help: use the applicable keyword: `Self`
176
177error: unnecessary structure name repetition
178 --> $DIR/use_self.rs:533:17
179 |
180LL | Foo::Baz => unimplemented!(),
181 | ^^^ help: use the applicable keyword: `Self`
182
183error: unnecessary structure name repetition
184 --> $DIR/use_self.rs:539:20
185 |
186LL | if let Foo::Bar = self {
187 | ^^^ help: use the applicable keyword: `Self`
188
923072b8
FG
189error: unnecessary structure name repetition
190 --> $DIR/use_self.rs:563:17
191 |
192LL | Something::Num(n) => *n,
193 | ^^^^^^^^^ help: use the applicable keyword: `Self`
194
195error: unnecessary structure name repetition
196 --> $DIR/use_self.rs:564:17
197 |
198LL | Something::TupleNums(n, _m) => *n,
199 | ^^^^^^^^^ help: use the applicable keyword: `Self`
200
201error: unnecessary structure name repetition
202 --> $DIR/use_self.rs:565:17
203 |
204LL | Something::StructNums { one, two: _ } => *one,
205 | ^^^^^^^^^ help: use the applicable keyword: `Self`
206
207error: unnecessary structure name repetition
208 --> $DIR/use_self.rs:571:17
209 |
210LL | crate::issue8845::Something::Num(n) => *n,
211 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
212
213error: unnecessary structure name repetition
214 --> $DIR/use_self.rs:572:17
215 |
216LL | crate::issue8845::Something::TupleNums(n, _m) => *n,
217 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
218
219error: unnecessary structure name repetition
220 --> $DIR/use_self.rs:573:17
221 |
222LL | crate::issue8845::Something::StructNums { one, two: _ } => *one,
223 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
224
225error: unnecessary structure name repetition
226 --> $DIR/use_self.rs:589:17
227 |
228LL | let Foo(x) = self;
229 | ^^^ help: use the applicable keyword: `Self`
230
231error: unnecessary structure name repetition
232 --> $DIR/use_self.rs:594:17
233 |
234LL | let crate::issue8845::Foo(x) = self;
235 | ^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
236
237error: unnecessary structure name repetition
238 --> $DIR/use_self.rs:601:17
239 |
240LL | let Bar { x, .. } = self;
241 | ^^^ help: use the applicable keyword: `Self`
242
243error: unnecessary structure name repetition
244 --> $DIR/use_self.rs:606:17
245 |
246LL | let crate::issue8845::Bar { x, .. } = self;
247 | ^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
248
249error: aborting due to 41 previous errors
f20569fa 250