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