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