fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
23.2 KiB740 linesraw
1error: use of deprecated item 'deprecation_lint::deprecated': text
2  --> $DIR/deprecation-lint.rs:17:9
3   |
4LL |         deprecated();
5   |         ^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/deprecation-lint.rs:4:9
9   |
10LL | #![deny(deprecated)]
11   |         ^^^^^^^^^^
12
13error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
14  --> $DIR/deprecation-lint.rs:22:9
15   |
16LL |         Trait::trait_deprecated(&foo);
17   |         ^^^^^^^^^^^^^^^^^^^^^^^
18
19error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
20  --> $DIR/deprecation-lint.rs:24:9
21   |
22LL |         <Foo as Trait>::trait_deprecated(&foo);
23   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25error: use of deprecated item 'deprecation_lint::deprecated_text': text
26  --> $DIR/deprecation-lint.rs:26:9
27   |
28LL |         deprecated_text();
29   |         ^^^^^^^^^^^^^^^
30
31error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
32  --> $DIR/deprecation-lint.rs:31:9
33   |
34LL |         Trait::trait_deprecated_text(&foo);
35   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
38  --> $DIR/deprecation-lint.rs:33:9
39   |
40LL |         <Foo as Trait>::trait_deprecated_text(&foo);
41   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43error: use of deprecated item 'deprecation_lint::DeprecatedStruct': text
44  --> $DIR/deprecation-lint.rs:35:17
45   |
46LL |         let _ = DeprecatedStruct {
47   |                 ^^^^^^^^^^^^^^^^
48
49error: use of deprecated item 'deprecation_lint::DeprecatedUnitStruct': text
50  --> $DIR/deprecation-lint.rs:39:17
51   |
52LL |         let _ = DeprecatedUnitStruct;
53   |                 ^^^^^^^^^^^^^^^^^^^^
54
55error: use of deprecated item 'deprecation_lint::Enum::DeprecatedVariant': text
56  --> $DIR/deprecation-lint.rs:41:17
57   |
58LL |         let _ = Enum::DeprecatedVariant;
59   |                 ^^^^^^^^^^^^^^^^^^^^^^^
60
61error: use of deprecated item 'deprecation_lint::DeprecatedTupleStruct': text
62  --> $DIR/deprecation-lint.rs:43:17
63   |
64LL |         let _ = DeprecatedTupleStruct (1);
65   |                 ^^^^^^^^^^^^^^^^^^^^^
66
67error: use of deprecated item 'deprecation_lint::nested::DeprecatedStruct': text
68  --> $DIR/deprecation-lint.rs:45:17
69   |
70LL |         let _ = nested::DeprecatedStruct {
71   |                 ^^^^^^^^^^^^^^^^^^^^^^^^
72
73error: use of deprecated item 'deprecation_lint::nested::DeprecatedUnitStruct': text
74  --> $DIR/deprecation-lint.rs:49:17
75   |
76LL |         let _ = nested::DeprecatedUnitStruct;
77   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79error: use of deprecated item 'deprecation_lint::nested::Enum::DeprecatedVariant': text
80  --> $DIR/deprecation-lint.rs:51:17
81   |
82LL |         let _ = nested::Enum::DeprecatedVariant;
83   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
85error: use of deprecated item 'deprecation_lint::nested::DeprecatedTupleStruct': text
86  --> $DIR/deprecation-lint.rs:53:17
87   |
88LL |         let _ = nested::DeprecatedTupleStruct (1);
89   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
91error: use of deprecated item 'deprecation_lint::deprecated_text': text
92  --> $DIR/deprecation-lint.rs:60:25
93   |
94LL |         macro_test_arg!(deprecated_text());
95   |                         ^^^^^^^^^^^^^^^
96
97error: use of deprecated item 'deprecation_lint::deprecated_text': text
98  --> $DIR/deprecation-lint.rs:61:41
99   |
100LL |         macro_test_arg!(macro_test_arg!(deprecated_text()));
101   |                                         ^^^^^^^^^^^^^^^
102
103error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
104  --> $DIR/deprecation-lint.rs:66:9
105   |
106LL |         Trait::trait_deprecated(&foo);
107   |         ^^^^^^^^^^^^^^^^^^^^^^^
108
109error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
110  --> $DIR/deprecation-lint.rs:68:9
111   |
112LL |         <Foo as Trait>::trait_deprecated(&foo);
113   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
115error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
116  --> $DIR/deprecation-lint.rs:70:9
117   |
118LL |         Trait::trait_deprecated_text(&foo);
119   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
122  --> $DIR/deprecation-lint.rs:72:9
123   |
124LL |         <Foo as Trait>::trait_deprecated_text(&foo);
125   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126
127error: use of deprecated item 'deprecation_lint::DeprecatedTrait': text
128  --> $DIR/deprecation-lint.rs:82:10
129   |
130LL |     impl DeprecatedTrait for S {}
131   |          ^^^^^^^^^^^^^^^
132
133error: use of deprecated item 'deprecation_lint::DeprecatedTrait': text
134  --> $DIR/deprecation-lint.rs:83:24
135   |
136LL |     trait LocalTrait : DeprecatedTrait { }
137   |                        ^^^^^^^^^^^^^^^
138
139error: use of deprecated item 'deprecation_lint::Deprecated': text
140  --> $DIR/deprecation-lint.rs:114:17
141   |
142LL |         let x = Deprecated {
143   |                 ^^^^^^^^^^
144
145error: use of deprecated item 'deprecation_lint::Deprecated': text
146  --> $DIR/deprecation-lint.rs:123:13
147   |
148LL |         let Deprecated {
149   |             ^^^^^^^^^^
150
151error: use of deprecated item 'deprecation_lint::Deprecated': text
152  --> $DIR/deprecation-lint.rs:129:13
153   |
154LL |         let Deprecated
155   |             ^^^^^^^^^^
156
157error: use of deprecated item 'deprecation_lint::Deprecated2': text
158  --> $DIR/deprecation-lint.rs:133:17
159   |
160LL |         let x = Deprecated2(1, 2, 3);
161   |                 ^^^^^^^^^^^
162
163error: use of deprecated item 'deprecation_lint::Deprecated2': text
164  --> $DIR/deprecation-lint.rs:143:13
165   |
166LL |         let Deprecated2
167   |             ^^^^^^^^^^^
168
169error: use of deprecated item 'deprecation_lint::Deprecated2': text
170  --> $DIR/deprecation-lint.rs:152:13
171   |
172LL |         let Deprecated2
173   |             ^^^^^^^^^^^
174
175error: use of deprecated item 'deprecation_lint::deprecated_mod::deprecated': text
176  --> $DIR/deprecation-lint.rs:163:9
177   |
178LL |         deprecated_mod::deprecated();
179   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
180
181error: use of deprecated item 'this_crate::deprecated': text
182  --> $DIR/deprecation-lint.rs:246:9
183   |
184LL |         deprecated();
185   |         ^^^^^^^^^^
186
187error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
188  --> $DIR/deprecation-lint.rs:251:9
189   |
190LL |         Trait::trait_deprecated(&foo);
191   |         ^^^^^^^^^^^^^^^^^^^^^^^
192
193error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
194  --> $DIR/deprecation-lint.rs:253:9
195   |
196LL |         <Foo as Trait>::trait_deprecated(&foo);
197   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
198
199error: use of deprecated item 'this_crate::deprecated_text': text
200  --> $DIR/deprecation-lint.rs:255:9
201   |
202LL |         deprecated_text();
203   |         ^^^^^^^^^^^^^^^
204
205error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
206  --> $DIR/deprecation-lint.rs:260:9
207   |
208LL |         Trait::trait_deprecated_text(&foo);
209   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210
211error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
212  --> $DIR/deprecation-lint.rs:262:9
213   |
214LL |         <Foo as Trait>::trait_deprecated_text(&foo);
215   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216
217error: use of deprecated item 'this_crate::deprecated_future': text
218  --> $DIR/deprecation-lint.rs:265:9
219   |
220LL |         deprecated_future();
221   |         ^^^^^^^^^^^^^^^^^
222
223error: use of deprecated item 'this_crate::deprecated_future_text': text
224  --> $DIR/deprecation-lint.rs:266:9
225   |
226LL |         deprecated_future_text();
227   |         ^^^^^^^^^^^^^^^^^^^^^^
228
229error: use of deprecated item 'this_crate::DeprecatedStruct': text
230  --> $DIR/deprecation-lint.rs:268:17
231   |
232LL |         let _ = DeprecatedStruct {
233   |                 ^^^^^^^^^^^^^^^^
234
235error: use of deprecated item 'this_crate::DeprecatedUnitStruct': text
236  --> $DIR/deprecation-lint.rs:273:17
237   |
238LL |         let _ = DeprecatedUnitStruct;
239   |                 ^^^^^^^^^^^^^^^^^^^^
240
241error: use of deprecated item 'this_crate::Enum::DeprecatedVariant': text
242  --> $DIR/deprecation-lint.rs:275:17
243   |
244LL |         let _ = Enum::DeprecatedVariant;
245   |                 ^^^^^^^^^^^^^^^^^^^^^^^
246
247error: use of deprecated item 'this_crate::DeprecatedTupleStruct': text
248  --> $DIR/deprecation-lint.rs:277:17
249   |
250LL |         let _ = DeprecatedTupleStruct (1);
251   |                 ^^^^^^^^^^^^^^^^^^^^^
252
253error: use of deprecated item 'this_crate::nested::DeprecatedStruct': text
254  --> $DIR/deprecation-lint.rs:279:17
255   |
256LL |         let _ = nested::DeprecatedStruct {
257   |                 ^^^^^^^^^^^^^^^^^^^^^^^^
258
259error: use of deprecated item 'this_crate::nested::DeprecatedUnitStruct': text
260  --> $DIR/deprecation-lint.rs:284:17
261   |
262LL |         let _ = nested::DeprecatedUnitStruct;
263   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
264
265error: use of deprecated item 'this_crate::nested::Enum::DeprecatedVariant': text
266  --> $DIR/deprecation-lint.rs:286:17
267   |
268LL |         let _ = nested::Enum::DeprecatedVariant;
269   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
270
271error: use of deprecated item 'this_crate::nested::DeprecatedTupleStruct': text
272  --> $DIR/deprecation-lint.rs:288:17
273   |
274LL |         let _ = nested::DeprecatedTupleStruct (1);
275   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
276
277error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
278  --> $DIR/deprecation-lint.rs:293:9
279   |
280LL |         Trait::trait_deprecated(&foo);
281   |         ^^^^^^^^^^^^^^^^^^^^^^^
282
283error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
284  --> $DIR/deprecation-lint.rs:295:9
285   |
286LL |         <Foo as Trait>::trait_deprecated(&foo);
287   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288
289error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
290  --> $DIR/deprecation-lint.rs:297:9
291   |
292LL |         Trait::trait_deprecated_text(&foo);
293   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294
295error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
296  --> $DIR/deprecation-lint.rs:299:9
297   |
298LL |         <Foo as Trait>::trait_deprecated_text(&foo);
299   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
300
301error: use of deprecated item 'this_crate::test_fn_closure_body::{{closure}}#0::bar'
302  --> $DIR/deprecation-lint.rs:317:13
303   |
304LL |             bar();
305   |             ^^^
306
307error: use of deprecated item 'this_crate::DeprecatedTrait': text
308  --> $DIR/deprecation-lint.rs:336:10
309   |
310LL |     impl DeprecatedTrait for S { }
311   |          ^^^^^^^^^^^^^^^
312
313error: use of deprecated item 'this_crate::DeprecatedTrait': text
314  --> $DIR/deprecation-lint.rs:338:24
315   |
316LL |     trait LocalTrait : DeprecatedTrait { }
317   |                        ^^^^^^^^^^^^^^^
318
319error: use of deprecated item 'this_crate2::Deprecated': text
320  --> $DIR/deprecation-lint.rs:390:17
321   |
322LL |         let x = Deprecated {
323   |                 ^^^^^^^^^^
324
325error: use of deprecated item 'this_crate2::Deprecated': text
326  --> $DIR/deprecation-lint.rs:399:13
327   |
328LL |         let Deprecated {
329   |             ^^^^^^^^^^
330
331error: use of deprecated item 'this_crate2::Deprecated': text
332  --> $DIR/deprecation-lint.rs:405:13
333   |
334LL |         let Deprecated
335   |             ^^^^^^^^^^
336
337error: use of deprecated item 'this_crate2::Deprecated2': text
338  --> $DIR/deprecation-lint.rs:410:17
339   |
340LL |         let x = Deprecated2(1, 2, 3);
341   |                 ^^^^^^^^^^^
342
343error: use of deprecated item 'this_crate2::Deprecated2': text
344  --> $DIR/deprecation-lint.rs:420:13
345   |
346LL |         let Deprecated2
347   |             ^^^^^^^^^^^
348
349error: use of deprecated item 'this_crate2::Deprecated2': text
350  --> $DIR/deprecation-lint.rs:429:13
351   |
352LL |         let Deprecated2
353   |             ^^^^^^^^^^^
354
355error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated': text
356  --> $DIR/deprecation-lint.rs:18:13
357   |
358LL |         foo.method_deprecated();
359   |             ^^^^^^^^^^^^^^^^^
360
361error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated': text
362  --> $DIR/deprecation-lint.rs:19:9
363   |
364LL |         Foo::method_deprecated(&foo);
365   |         ^^^^^^^^^^^^^^^^^^^^^^
366
367error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated': text
368  --> $DIR/deprecation-lint.rs:20:9
369   |
370LL |         <Foo>::method_deprecated(&foo);
371   |         ^^^^^^^^^^^^^^^^^^^^^^^^
372
373error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
374  --> $DIR/deprecation-lint.rs:21:13
375   |
376LL |         foo.trait_deprecated();
377   |             ^^^^^^^^^^^^^^^^
378
379error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
380  --> $DIR/deprecation-lint.rs:23:9
381   |
382LL |         <Foo>::trait_deprecated(&foo);
383   |         ^^^^^^^^^^^^^^^^^^^^^^^
384
385error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated_text': text
386  --> $DIR/deprecation-lint.rs:27:13
387   |
388LL |         foo.method_deprecated_text();
389   |             ^^^^^^^^^^^^^^^^^^^^^^
390
391error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated_text': text
392  --> $DIR/deprecation-lint.rs:28:9
393   |
394LL |         Foo::method_deprecated_text(&foo);
395   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
396
397error: use of deprecated item 'deprecation_lint::MethodTester::method_deprecated_text': text
398  --> $DIR/deprecation-lint.rs:29:9
399   |
400LL |         <Foo>::method_deprecated_text(&foo);
401   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
402
403error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
404  --> $DIR/deprecation-lint.rs:30:13
405   |
406LL |         foo.trait_deprecated_text();
407   |             ^^^^^^^^^^^^^^^^^^^^^
408
409error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
410  --> $DIR/deprecation-lint.rs:32:9
411   |
412LL |         <Foo>::trait_deprecated_text(&foo);
413   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
414
415error: use of deprecated item 'deprecation_lint::DeprecatedStruct::i': text
416  --> $DIR/deprecation-lint.rs:36:13
417   |
418LL |             i: 0
419   |             ^^^^
420
421error: use of deprecated item 'deprecation_lint::nested::DeprecatedStruct::i': text
422  --> $DIR/deprecation-lint.rs:46:13
423   |
424LL |             i: 0
425   |             ^^^^
426
427error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
428  --> $DIR/deprecation-lint.rs:65:13
429   |
430LL |         foo.trait_deprecated();
431   |             ^^^^^^^^^^^^^^^^
432
433error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
434  --> $DIR/deprecation-lint.rs:67:9
435   |
436LL |         <Foo>::trait_deprecated(&foo);
437   |         ^^^^^^^^^^^^^^^^^^^^^^^
438
439error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
440  --> $DIR/deprecation-lint.rs:69:13
441   |
442LL |         foo.trait_deprecated_text();
443   |             ^^^^^^^^^^^^^^^^^^^^^
444
445error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
446  --> $DIR/deprecation-lint.rs:71:9
447   |
448LL |         <Foo>::trait_deprecated_text(&foo);
449   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
450
451error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated': text
452  --> $DIR/deprecation-lint.rs:76:13
453   |
454LL |         foo.trait_deprecated();
455   |             ^^^^^^^^^^^^^^^^
456
457error: use of deprecated item 'deprecation_lint::Trait::trait_deprecated_text': text
458  --> $DIR/deprecation-lint.rs:77:13
459   |
460LL |         foo.trait_deprecated_text();
461   |             ^^^^^^^^^^^^^^^^^^^^^
462
463error: use of deprecated item 'deprecation_lint::Stable::override2': text
464  --> $DIR/deprecation-lint.rs:87:13
465   |
466LL |             override2: 3,
467   |             ^^^^^^^^^^^^
468
469error: use of deprecated item 'deprecation_lint::Stable::override2': text
470  --> $DIR/deprecation-lint.rs:91:17
471   |
472LL |         let _ = x.override2;
473   |                 ^^^^^^^^^^^
474
475error: use of deprecated item 'deprecation_lint::Stable::override2': text
476  --> $DIR/deprecation-lint.rs:95:13
477   |
478LL |             override2: _
479   |             ^^^^^^^^^^^^
480
481error: use of deprecated item 'deprecation_lint::Stable2::2': text
482  --> $DIR/deprecation-lint.rs:103:17
483   |
484LL |         let _ = x.2;
485   |                 ^^^
486
487error: use of deprecated item 'deprecation_lint::Stable2::2': text
488  --> $DIR/deprecation-lint.rs:108:20
489   |
490LL |                    _)
491   |                    ^
492
493error: use of deprecated item 'deprecation_lint::Deprecated::inherit': text
494  --> $DIR/deprecation-lint.rs:116:13
495   |
496LL |             inherit: 1,
497   |             ^^^^^^^^^^
498
499error: use of deprecated item 'deprecation_lint::Deprecated::inherit': text
500  --> $DIR/deprecation-lint.rs:120:17
501   |
502LL |         let _ = x.inherit;
503   |                 ^^^^^^^^^
504
505error: use of deprecated item 'deprecation_lint::Deprecated::inherit': text
506  --> $DIR/deprecation-lint.rs:125:13
507   |
508LL |             inherit: _,
509   |             ^^^^^^^^^^
510
511error: use of deprecated item 'deprecation_lint::Deprecated2::0': text
512  --> $DIR/deprecation-lint.rs:136:17
513   |
514LL |         let _ = x.0;
515   |                 ^^^
516
517error: use of deprecated item 'deprecation_lint::Deprecated2::1': text
518  --> $DIR/deprecation-lint.rs:138:17
519   |
520LL |         let _ = x.1;
521   |                 ^^^
522
523error: use of deprecated item 'deprecation_lint::Deprecated2::2': text
524  --> $DIR/deprecation-lint.rs:140:17
525   |
526LL |         let _ = x.2;
527   |                 ^^^
528
529error: use of deprecated item 'deprecation_lint::Deprecated2::0': text
530  --> $DIR/deprecation-lint.rs:145:14
531   |
532LL |             (_,
533   |              ^
534
535error: use of deprecated item 'deprecation_lint::Deprecated2::1': text
536  --> $DIR/deprecation-lint.rs:147:14
537   |
538LL |              _,
539   |              ^
540
541error: use of deprecated item 'deprecation_lint::Deprecated2::2': text
542  --> $DIR/deprecation-lint.rs:149:14
543   |
544LL |              _)
545   |              ^
546
547error: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
548  --> $DIR/deprecation-lint.rs:247:13
549   |
550LL |         foo.method_deprecated();
551   |             ^^^^^^^^^^^^^^^^^
552
553error: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
554  --> $DIR/deprecation-lint.rs:248:9
555   |
556LL |         Foo::method_deprecated(&foo);
557   |         ^^^^^^^^^^^^^^^^^^^^^^
558
559error: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
560  --> $DIR/deprecation-lint.rs:249:9
561   |
562LL |         <Foo>::method_deprecated(&foo);
563   |         ^^^^^^^^^^^^^^^^^^^^^^^^
564
565error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
566  --> $DIR/deprecation-lint.rs:250:13
567   |
568LL |         foo.trait_deprecated();
569   |             ^^^^^^^^^^^^^^^^
570
571error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
572  --> $DIR/deprecation-lint.rs:252:9
573   |
574LL |         <Foo>::trait_deprecated(&foo);
575   |         ^^^^^^^^^^^^^^^^^^^^^^^
576
577error: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
578  --> $DIR/deprecation-lint.rs:256:13
579   |
580LL |         foo.method_deprecated_text();
581   |             ^^^^^^^^^^^^^^^^^^^^^^
582
583error: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
584  --> $DIR/deprecation-lint.rs:257:9
585   |
586LL |         Foo::method_deprecated_text(&foo);
587   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
588
589error: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
590  --> $DIR/deprecation-lint.rs:258:9
591   |
592LL |         <Foo>::method_deprecated_text(&foo);
593   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
594
595error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
596  --> $DIR/deprecation-lint.rs:259:13
597   |
598LL |         foo.trait_deprecated_text();
599   |             ^^^^^^^^^^^^^^^^^^^^^
600
601error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
602  --> $DIR/deprecation-lint.rs:261:9
603   |
604LL |         <Foo>::trait_deprecated_text(&foo);
605   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
606
607error: use of deprecated item 'this_crate::DeprecatedStruct::i': text
608  --> $DIR/deprecation-lint.rs:270:13
609   |
610LL |             i: 0
611   |             ^^^^
612
613error: use of deprecated item 'this_crate::nested::DeprecatedStruct::i': text
614  --> $DIR/deprecation-lint.rs:281:13
615   |
616LL |             i: 0
617   |             ^^^^
618
619error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
620  --> $DIR/deprecation-lint.rs:292:13
621   |
622LL |         foo.trait_deprecated();
623   |             ^^^^^^^^^^^^^^^^
624
625error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
626  --> $DIR/deprecation-lint.rs:294:9
627   |
628LL |         <Foo>::trait_deprecated(&foo);
629   |         ^^^^^^^^^^^^^^^^^^^^^^^
630
631error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
632  --> $DIR/deprecation-lint.rs:296:13
633   |
634LL |         foo.trait_deprecated_text();
635   |             ^^^^^^^^^^^^^^^^^^^^^
636
637error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
638  --> $DIR/deprecation-lint.rs:298:9
639   |
640LL |         <Foo>::trait_deprecated_text(&foo);
641   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
642
643error: use of deprecated item 'this_crate::Trait::trait_deprecated': text
644  --> $DIR/deprecation-lint.rs:303:13
645   |
646LL |         foo.trait_deprecated();
647   |             ^^^^^^^^^^^^^^^^
648
649error: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
650  --> $DIR/deprecation-lint.rs:304:13
651   |
652LL |         foo.trait_deprecated_text();
653   |             ^^^^^^^^^^^^^^^^^^^^^
654
655error: use of deprecated item 'this_crate2::Stable::override2': text
656  --> $DIR/deprecation-lint.rs:363:13
657   |
658LL |             override2: 3,
659   |             ^^^^^^^^^^^^
660
661error: use of deprecated item 'this_crate2::Stable::override2': text
662  --> $DIR/deprecation-lint.rs:367:17
663   |
664LL |         let _ = x.override2;
665   |                 ^^^^^^^^^^^
666
667error: use of deprecated item 'this_crate2::Stable::override2': text
668  --> $DIR/deprecation-lint.rs:371:13
669   |
670LL |             override2: _
671   |             ^^^^^^^^^^^^
672
673error: use of deprecated item 'this_crate2::Stable2::2': text
674  --> $DIR/deprecation-lint.rs:379:17
675   |
676LL |         let _ = x.2;
677   |                 ^^^
678
679error: use of deprecated item 'this_crate2::Stable2::2': text
680  --> $DIR/deprecation-lint.rs:384:20
681   |
682LL |                    _)
683   |                    ^
684
685error: use of deprecated item 'this_crate2::Deprecated::inherit': text
686  --> $DIR/deprecation-lint.rs:392:13
687   |
688LL |             inherit: 1,
689   |             ^^^^^^^^^^
690
691error: use of deprecated item 'this_crate2::Deprecated::inherit': text
692  --> $DIR/deprecation-lint.rs:396:17
693   |
694LL |         let _ = x.inherit;
695   |                 ^^^^^^^^^
696
697error: use of deprecated item 'this_crate2::Deprecated::inherit': text
698  --> $DIR/deprecation-lint.rs:401:13
699   |
700LL |             inherit: _,
701   |             ^^^^^^^^^^
702
703error: use of deprecated item 'this_crate2::Deprecated2::0': text
704  --> $DIR/deprecation-lint.rs:413:17
705   |
706LL |         let _ = x.0;
707   |                 ^^^
708
709error: use of deprecated item 'this_crate2::Deprecated2::1': text
710  --> $DIR/deprecation-lint.rs:415:17
711   |
712LL |         let _ = x.1;
713   |                 ^^^
714
715error: use of deprecated item 'this_crate2::Deprecated2::2': text
716  --> $DIR/deprecation-lint.rs:417:17
717   |
718LL |         let _ = x.2;
719   |                 ^^^
720
721error: use of deprecated item 'this_crate2::Deprecated2::0': text
722  --> $DIR/deprecation-lint.rs:422:14
723   |
724LL |             (_,
725   |              ^
726
727error: use of deprecated item 'this_crate2::Deprecated2::1': text
728  --> $DIR/deprecation-lint.rs:424:14
729   |
730LL |              _,
731   |              ^
732
733error: use of deprecated item 'this_crate2::Deprecated2::2': text
734  --> $DIR/deprecation-lint.rs:426:14
735   |
736LL |              _)
737   |              ^
738
739error: aborting due to 122 previous errors
740