1 error: use of deprecated function `deprecation_lint::deprecated`: text
2 --> $DIR/deprecation-lint.rs:16:9
7 note: the lint level is defined here
8 --> $DIR/deprecation-lint.rs:3:9
10 LL | #![deny(deprecated)]
13 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
14 --> $DIR/deprecation-lint.rs:21:16
16 LL | Trait::trait_deprecated(&foo);
19 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
20 --> $DIR/deprecation-lint.rs:23:25
22 LL | <Foo as Trait>::trait_deprecated(&foo);
25 error: use of deprecated function `deprecation_lint::deprecated_text`: text
26 --> $DIR/deprecation-lint.rs:25:9
28 LL | deprecated_text();
31 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
32 --> $DIR/deprecation-lint.rs:30:16
34 LL | ... Trait::trait_deprecated_text(&foo);
35 | ^^^^^^^^^^^^^^^^^^^^^
37 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
38 --> $DIR/deprecation-lint.rs:32:25
40 LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
41 | ^^^^^^^^^^^^^^^^^^^^^
43 error: use of deprecated struct `deprecation_lint::DeprecatedStruct`: text
44 --> $DIR/deprecation-lint.rs:34:17
46 LL | let _ = DeprecatedStruct {
49 error: use of deprecated unit struct `deprecation_lint::DeprecatedUnitStruct`: text
50 --> $DIR/deprecation-lint.rs:38:17
52 LL | let _ = DeprecatedUnitStruct;
53 | ^^^^^^^^^^^^^^^^^^^^
55 error: use of deprecated unit variant `deprecation_lint::Enum::DeprecatedVariant`: text
56 --> $DIR/deprecation-lint.rs:40:23
58 LL | let _ = Enum::DeprecatedVariant;
61 error: use of deprecated tuple struct `deprecation_lint::DeprecatedTupleStruct`: text
62 --> $DIR/deprecation-lint.rs:42:17
64 LL | let _ = DeprecatedTupleStruct (1);
65 | ^^^^^^^^^^^^^^^^^^^^^
67 error: use of deprecated struct `deprecation_lint::nested::DeprecatedStruct`: text
68 --> $DIR/deprecation-lint.rs:44:25
70 LL | let _ = nested::DeprecatedStruct {
73 error: use of deprecated unit struct `deprecation_lint::nested::DeprecatedUnitStruct`: text
74 --> $DIR/deprecation-lint.rs:48:25
76 LL | let _ = nested::DeprecatedUnitStruct;
77 | ^^^^^^^^^^^^^^^^^^^^
79 error: use of deprecated unit variant `deprecation_lint::nested::Enum::DeprecatedVariant`: text
80 --> $DIR/deprecation-lint.rs:50:31
82 LL | ... let _ = nested::Enum::DeprecatedVariant;
85 error: use of deprecated tuple struct `deprecation_lint::nested::DeprecatedTupleStruct`: text
86 --> $DIR/deprecation-lint.rs:52:25
88 LL | ... let _ = nested::DeprecatedTupleStruct (1);
89 | ^^^^^^^^^^^^^^^^^^^^^
91 error: use of deprecated function `deprecation_lint::deprecated_text`: text
92 --> $DIR/deprecation-lint.rs:59:25
94 LL | macro_test_arg!(deprecated_text());
97 error: use of deprecated function `deprecation_lint::deprecated_text`: text
98 --> $DIR/deprecation-lint.rs:60:41
100 LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
103 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
104 --> $DIR/deprecation-lint.rs:65:16
106 LL | Trait::trait_deprecated(&foo);
109 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
110 --> $DIR/deprecation-lint.rs:67:25
112 LL | <Foo as Trait>::trait_deprecated(&foo);
115 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
116 --> $DIR/deprecation-lint.rs:69:16
118 LL | ... Trait::trait_deprecated_text(&foo);
119 | ^^^^^^^^^^^^^^^^^^^^^
121 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
122 --> $DIR/deprecation-lint.rs:71:25
124 LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
125 | ^^^^^^^^^^^^^^^^^^^^^
127 error: use of deprecated trait `deprecation_lint::DeprecatedTrait`: text
128 --> $DIR/deprecation-lint.rs:81:10
130 LL | impl DeprecatedTrait for S {}
133 error: use of deprecated trait `deprecation_lint::DeprecatedTrait`: text
134 --> $DIR/deprecation-lint.rs:82:24
136 LL | trait LocalTrait : DeprecatedTrait { }
139 error: use of deprecated struct `deprecation_lint::Deprecated`: text
140 --> $DIR/deprecation-lint.rs:113:17
142 LL | let x = Deprecated {
145 error: use of deprecated struct `deprecation_lint::Deprecated`: text
146 --> $DIR/deprecation-lint.rs:122:13
148 LL | let Deprecated {
151 error: use of deprecated struct `deprecation_lint::Deprecated`: text
152 --> $DIR/deprecation-lint.rs:128:13
157 error: use of deprecated tuple struct `deprecation_lint::Deprecated2`: text
158 --> $DIR/deprecation-lint.rs:132:17
160 LL | let x = Deprecated2(1, 2, 3);
163 error: use of deprecated tuple struct `deprecation_lint::Deprecated2`: text
164 --> $DIR/deprecation-lint.rs:142:13
169 error: use of deprecated tuple struct `deprecation_lint::Deprecated2`: text
170 --> $DIR/deprecation-lint.rs:151:13
175 error: use of deprecated function `deprecation_lint::deprecated_mod::deprecated`: text
176 --> $DIR/deprecation-lint.rs:162:25
178 LL | deprecated_mod::deprecated();
181 error: use of deprecated function `this_crate::deprecated`: text
182 --> $DIR/deprecation-lint.rs:245:9
187 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
188 --> $DIR/deprecation-lint.rs:250:16
190 LL | Trait::trait_deprecated(&foo);
193 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
194 --> $DIR/deprecation-lint.rs:252:25
196 LL | <Foo as Trait>::trait_deprecated(&foo);
199 error: use of deprecated function `this_crate::deprecated_text`: text
200 --> $DIR/deprecation-lint.rs:254:9
202 LL | deprecated_text();
205 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
206 --> $DIR/deprecation-lint.rs:259:16
208 LL | Trait::trait_deprecated_text(&foo);
209 | ^^^^^^^^^^^^^^^^^^^^^
211 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
212 --> $DIR/deprecation-lint.rs:261:25
214 LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
215 | ^^^^^^^^^^^^^^^^^^^^^
217 error: use of deprecated function `this_crate::deprecated_future`: text
218 --> $DIR/deprecation-lint.rs:264:9
220 LL | deprecated_future();
223 error: use of deprecated function `this_crate::deprecated_future_text`: text
224 --> $DIR/deprecation-lint.rs:265:9
226 LL | deprecated_future_text();
227 | ^^^^^^^^^^^^^^^^^^^^^^
229 error: use of deprecated struct `this_crate::DeprecatedStruct`: text
230 --> $DIR/deprecation-lint.rs:267:17
232 LL | let _ = DeprecatedStruct {
235 error: use of deprecated unit struct `this_crate::DeprecatedUnitStruct`: text
236 --> $DIR/deprecation-lint.rs:272:17
238 LL | let _ = DeprecatedUnitStruct;
239 | ^^^^^^^^^^^^^^^^^^^^
241 error: use of deprecated unit variant `this_crate::Enum::DeprecatedVariant`: text
242 --> $DIR/deprecation-lint.rs:274:23
244 LL | let _ = Enum::DeprecatedVariant;
247 error: use of deprecated tuple struct `this_crate::DeprecatedTupleStruct`: text
248 --> $DIR/deprecation-lint.rs:276:17
250 LL | let _ = DeprecatedTupleStruct (1);
251 | ^^^^^^^^^^^^^^^^^^^^^
253 error: use of deprecated struct `this_crate::nested::DeprecatedStruct`: text
254 --> $DIR/deprecation-lint.rs:278:25
256 LL | let _ = nested::DeprecatedStruct {
259 error: use of deprecated unit struct `this_crate::nested::DeprecatedUnitStruct`: text
260 --> $DIR/deprecation-lint.rs:284:25
262 LL | let _ = nested::DeprecatedUnitStruct;
263 | ^^^^^^^^^^^^^^^^^^^^
265 error: use of deprecated unit variant `this_crate::nested::Enum::DeprecatedVariant`: text
266 --> $DIR/deprecation-lint.rs:286:31
268 LL | ... let _ = nested::Enum::DeprecatedVariant;
271 error: use of deprecated tuple struct `this_crate::nested::DeprecatedTupleStruct`: text
272 --> $DIR/deprecation-lint.rs:288:25
274 LL | ... let _ = nested::DeprecatedTupleStruct (1);
275 | ^^^^^^^^^^^^^^^^^^^^^
277 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
278 --> $DIR/deprecation-lint.rs:293:16
280 LL | Trait::trait_deprecated(&foo);
283 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
284 --> $DIR/deprecation-lint.rs:295:25
286 LL | <Foo as Trait>::trait_deprecated(&foo);
289 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
290 --> $DIR/deprecation-lint.rs:297:16
292 LL | Trait::trait_deprecated_text(&foo);
293 | ^^^^^^^^^^^^^^^^^^^^^
295 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
296 --> $DIR/deprecation-lint.rs:299:25
298 LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
299 | ^^^^^^^^^^^^^^^^^^^^^
301 error: use of deprecated function `this_crate::test_fn_closure_body::{closure#0}::bar`
302 --> $DIR/deprecation-lint.rs:317:13
307 error: use of deprecated trait `this_crate::DeprecatedTrait`: text
308 --> $DIR/deprecation-lint.rs:336:10
310 LL | impl DeprecatedTrait for S { }
313 error: use of deprecated trait `this_crate::DeprecatedTrait`: text
314 --> $DIR/deprecation-lint.rs:338:24
316 LL | trait LocalTrait : DeprecatedTrait { }
319 error: use of deprecated struct `this_crate2::Deprecated`: text
320 --> $DIR/deprecation-lint.rs:390:17
322 LL | let x = Deprecated {
325 error: use of deprecated struct `this_crate2::Deprecated`: text
326 --> $DIR/deprecation-lint.rs:399:13
328 LL | let Deprecated {
331 error: use of deprecated struct `this_crate2::Deprecated`: text
332 --> $DIR/deprecation-lint.rs:405:13
337 error: use of deprecated tuple struct `this_crate2::Deprecated2`: text
338 --> $DIR/deprecation-lint.rs:410:17
340 LL | let x = Deprecated2(1, 2, 3);
343 error: use of deprecated tuple struct `this_crate2::Deprecated2`: text
344 --> $DIR/deprecation-lint.rs:420:13
349 error: use of deprecated tuple struct `this_crate2::Deprecated2`: text
350 --> $DIR/deprecation-lint.rs:429:13
355 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated`: text
356 --> $DIR/deprecation-lint.rs:17:13
358 LL | foo.method_deprecated();
361 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated`: text
362 --> $DIR/deprecation-lint.rs:18:14
364 LL | Foo::method_deprecated(&foo);
367 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated`: text
368 --> $DIR/deprecation-lint.rs:19:16
370 LL | <Foo>::method_deprecated(&foo);
373 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
374 --> $DIR/deprecation-lint.rs:20:13
376 LL | foo.trait_deprecated();
379 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
380 --> $DIR/deprecation-lint.rs:22:16
382 LL | <Foo>::trait_deprecated(&foo);
385 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated_text`: text
386 --> $DIR/deprecation-lint.rs:26:13
388 LL | ... foo.method_deprecated_text();
389 | ^^^^^^^^^^^^^^^^^^^^^^
391 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated_text`: text
392 --> $DIR/deprecation-lint.rs:27:14
394 LL | ... Foo::method_deprecated_text(&foo);
395 | ^^^^^^^^^^^^^^^^^^^^^^
397 error: use of deprecated associated function `deprecation_lint::MethodTester::method_deprecated_text`: text
398 --> $DIR/deprecation-lint.rs:28:16
400 LL | ... <Foo>::method_deprecated_text(&foo);
401 | ^^^^^^^^^^^^^^^^^^^^^^
403 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
404 --> $DIR/deprecation-lint.rs:29:13
406 LL | foo.trait_deprecated_text();
407 | ^^^^^^^^^^^^^^^^^^^^^
409 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
410 --> $DIR/deprecation-lint.rs:31:16
412 LL | ... <Foo>::trait_deprecated_text(&foo);
413 | ^^^^^^^^^^^^^^^^^^^^^
415 error: use of deprecated field `deprecation_lint::DeprecatedStruct::i`: text
416 --> $DIR/deprecation-lint.rs:35:13
421 error: use of deprecated field `deprecation_lint::nested::DeprecatedStruct::i`: text
422 --> $DIR/deprecation-lint.rs:45:13
427 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
428 --> $DIR/deprecation-lint.rs:64:13
430 LL | foo.trait_deprecated();
433 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
434 --> $DIR/deprecation-lint.rs:66:16
436 LL | <Foo>::trait_deprecated(&foo);
439 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
440 --> $DIR/deprecation-lint.rs:68:13
442 LL | foo.trait_deprecated_text();
443 | ^^^^^^^^^^^^^^^^^^^^^
445 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
446 --> $DIR/deprecation-lint.rs:70:16
448 LL | ... <Foo>::trait_deprecated_text(&foo);
449 | ^^^^^^^^^^^^^^^^^^^^^
451 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
452 --> $DIR/deprecation-lint.rs:75:13
454 LL | foo.trait_deprecated();
457 error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
458 --> $DIR/deprecation-lint.rs:76:13
460 LL | foo.trait_deprecated_text();
461 | ^^^^^^^^^^^^^^^^^^^^^
463 error: use of deprecated field `deprecation_lint::Stable::override2`: text
464 --> $DIR/deprecation-lint.rs:86:13
469 error: use of deprecated field `deprecation_lint::Stable::override2`: text
470 --> $DIR/deprecation-lint.rs:90:17
472 LL | let _ = x.override2;
475 error: use of deprecated field `deprecation_lint::Stable::override2`: text
476 --> $DIR/deprecation-lint.rs:94:13
481 error: use of deprecated field `deprecation_lint::Stable2::2`: text
482 --> $DIR/deprecation-lint.rs:102:17
487 error: use of deprecated field `deprecation_lint::Stable2::2`: text
488 --> $DIR/deprecation-lint.rs:107:20
493 error: use of deprecated field `deprecation_lint::Deprecated::inherit`: text
494 --> $DIR/deprecation-lint.rs:115:13
499 error: use of deprecated field `deprecation_lint::Deprecated::inherit`: text
500 --> $DIR/deprecation-lint.rs:119:17
502 LL | let _ = x.inherit;
505 error: use of deprecated field `deprecation_lint::Deprecated::inherit`: text
506 --> $DIR/deprecation-lint.rs:124:13
511 error: use of deprecated field `deprecation_lint::Deprecated2::0`: text
512 --> $DIR/deprecation-lint.rs:135:17
517 error: use of deprecated field `deprecation_lint::Deprecated2::1`: text
518 --> $DIR/deprecation-lint.rs:137:17
523 error: use of deprecated field `deprecation_lint::Deprecated2::2`: text
524 --> $DIR/deprecation-lint.rs:139:17
529 error: use of deprecated field `deprecation_lint::Deprecated2::0`: text
530 --> $DIR/deprecation-lint.rs:144:14
535 error: use of deprecated field `deprecation_lint::Deprecated2::1`: text
536 --> $DIR/deprecation-lint.rs:146:14
541 error: use of deprecated field `deprecation_lint::Deprecated2::2`: text
542 --> $DIR/deprecation-lint.rs:148:14
547 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated`: text
548 --> $DIR/deprecation-lint.rs:246:13
550 LL | foo.method_deprecated();
553 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated`: text
554 --> $DIR/deprecation-lint.rs:247:14
556 LL | Foo::method_deprecated(&foo);
559 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated`: text
560 --> $DIR/deprecation-lint.rs:248:16
562 LL | <Foo>::method_deprecated(&foo);
565 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
566 --> $DIR/deprecation-lint.rs:249:13
568 LL | foo.trait_deprecated();
571 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
572 --> $DIR/deprecation-lint.rs:251:16
574 LL | <Foo>::trait_deprecated(&foo);
577 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated_text`: text
578 --> $DIR/deprecation-lint.rs:255:13
580 LL | ... foo.method_deprecated_text();
581 | ^^^^^^^^^^^^^^^^^^^^^^
583 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated_text`: text
584 --> $DIR/deprecation-lint.rs:256:14
586 LL | ... Foo::method_deprecated_text(&foo);
587 | ^^^^^^^^^^^^^^^^^^^^^^
589 error: use of deprecated associated function `this_crate::MethodTester::method_deprecated_text`: text
590 --> $DIR/deprecation-lint.rs:257:16
592 LL | ... <Foo>::method_deprecated_text(&foo);
593 | ^^^^^^^^^^^^^^^^^^^^^^
595 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
596 --> $DIR/deprecation-lint.rs:258:13
598 LL | foo.trait_deprecated_text();
599 | ^^^^^^^^^^^^^^^^^^^^^
601 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
602 --> $DIR/deprecation-lint.rs:260:16
604 LL | <Foo>::trait_deprecated_text(&foo);
605 | ^^^^^^^^^^^^^^^^^^^^^
607 error: use of deprecated field `this_crate::DeprecatedStruct::i`: text
608 --> $DIR/deprecation-lint.rs:269:13
613 error: use of deprecated field `this_crate::nested::DeprecatedStruct::i`: text
614 --> $DIR/deprecation-lint.rs:280:13
619 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
620 --> $DIR/deprecation-lint.rs:292:13
622 LL | foo.trait_deprecated();
625 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
626 --> $DIR/deprecation-lint.rs:294:16
628 LL | <Foo>::trait_deprecated(&foo);
631 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
632 --> $DIR/deprecation-lint.rs:296:13
634 LL | foo.trait_deprecated_text();
635 | ^^^^^^^^^^^^^^^^^^^^^
637 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
638 --> $DIR/deprecation-lint.rs:298:16
640 LL | <Foo>::trait_deprecated_text(&foo);
641 | ^^^^^^^^^^^^^^^^^^^^^
643 error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
644 --> $DIR/deprecation-lint.rs:303:13
646 LL | foo.trait_deprecated();
649 error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
650 --> $DIR/deprecation-lint.rs:304:13
652 LL | foo.trait_deprecated_text();
653 | ^^^^^^^^^^^^^^^^^^^^^
655 error: use of deprecated field `this_crate2::Stable::override2`: text
656 --> $DIR/deprecation-lint.rs:363:13
661 error: use of deprecated field `this_crate2::Stable::override2`: text
662 --> $DIR/deprecation-lint.rs:367:17
664 LL | let _ = x.override2;
667 error: use of deprecated field `this_crate2::Stable::override2`: text
668 --> $DIR/deprecation-lint.rs:371:13
673 error: use of deprecated field `this_crate2::Stable2::2`: text
674 --> $DIR/deprecation-lint.rs:379:17
679 error: use of deprecated field `this_crate2::Stable2::2`: text
680 --> $DIR/deprecation-lint.rs:384:20
685 error: use of deprecated field `this_crate2::Deprecated::inherit`: text
686 --> $DIR/deprecation-lint.rs:392:13
691 error: use of deprecated field `this_crate2::Deprecated::inherit`: text
692 --> $DIR/deprecation-lint.rs:396:17
694 LL | let _ = x.inherit;
697 error: use of deprecated field `this_crate2::Deprecated::inherit`: text
698 --> $DIR/deprecation-lint.rs:401:13
703 error: use of deprecated field `this_crate2::Deprecated2::0`: text
704 --> $DIR/deprecation-lint.rs:413:17
709 error: use of deprecated field `this_crate2::Deprecated2::1`: text
710 --> $DIR/deprecation-lint.rs:415:17
715 error: use of deprecated field `this_crate2::Deprecated2::2`: text
716 --> $DIR/deprecation-lint.rs:417:17
721 error: use of deprecated field `this_crate2::Deprecated2::0`: text
722 --> $DIR/deprecation-lint.rs:422:14
727 error: use of deprecated field `this_crate2::Deprecated2::1`: text
728 --> $DIR/deprecation-lint.rs:424:14
733 error: use of deprecated field `this_crate2::Deprecated2::2`: text
734 --> $DIR/deprecation-lint.rs:426:14
739 error[E0451]: field `i` of struct `this_crate::nested::DeprecatedStruct` is private
740 --> $DIR/deprecation-lint.rs:280:13
745 error: aborting due to 123 previous errors
747 For more information about this error, try `rustc --explain E0451`.