Commit 28a0922
committed
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^1 parent 18dcae0 commit 28a0922
File tree
6 files changed
+69
-60
lines changed- test_suite
- no_std/src
- tests
6 files changed
+69
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
| 425 | + | |
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
| |||
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
551 | | - | |
| 550 | + | |
552 | 551 | | |
553 | 552 | | |
554 | 553 | | |
555 | 554 | | |
556 | 555 | | |
557 | | - | |
| 556 | + | |
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
562 | 561 | | |
563 | | - | |
| 562 | + | |
564 | 563 | | |
565 | 564 | | |
566 | | - | |
| 565 | + | |
567 | 566 | | |
568 | 567 | | |
569 | | - | |
| 568 | + | |
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
| |||
640 | 639 | | |
641 | 640 | | |
642 | 641 | | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
| 665 | + | |
667 | 666 | | |
668 | 667 | | |
669 | 668 | | |
670 | 669 | | |
671 | 670 | | |
672 | | - | |
| 671 | + | |
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
| |||
679 | 678 | | |
680 | 679 | | |
681 | 680 | | |
682 | | - | |
| 681 | + | |
683 | 682 | | |
684 | 683 | | |
685 | 684 | | |
| |||
701 | 700 | | |
702 | 701 | | |
703 | 702 | | |
704 | | - | |
705 | | - | |
| 703 | + | |
706 | 704 | | |
707 | | - | |
708 | 705 | | |
709 | 706 | | |
710 | 707 | | |
711 | 708 | | |
712 | | - | |
| 709 | + | |
713 | 710 | | |
714 | 711 | | |
715 | 712 | | |
716 | 713 | | |
717 | 714 | | |
718 | 715 | | |
719 | | - | |
| 716 | + | |
720 | 717 | | |
721 | 718 | | |
722 | 719 | | |
723 | 720 | | |
724 | 721 | | |
725 | | - | |
| 722 | + | |
726 | 723 | | |
727 | 724 | | |
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | 728 | | |
732 | | - | |
| 729 | + | |
733 | 730 | | |
734 | 731 | | |
735 | 732 | | |
| |||
748 | 745 | | |
749 | 746 | | |
750 | 747 | | |
751 | | - | |
752 | | - | |
| 748 | + | |
753 | 749 | | |
754 | 750 | | |
755 | 751 | | |
| |||
764 | 760 | | |
765 | 761 | | |
766 | 762 | | |
767 | | - | |
| 763 | + | |
768 | 764 | | |
769 | | - | |
770 | | - | |
| 765 | + | |
771 | 766 | | |
772 | 767 | | |
773 | 768 | | |
774 | | - | |
775 | | - | |
| 769 | + | |
776 | 770 | | |
777 | | - | |
| 771 | + | |
778 | 772 | | |
779 | 773 | | |
780 | 774 | | |
781 | 775 | | |
782 | | - | |
| 776 | + | |
783 | 777 | | |
784 | 778 | | |
785 | 779 | | |
| |||
866 | 860 | | |
867 | 861 | | |
868 | 862 | | |
869 | | - | |
| 863 | + | |
870 | 864 | | |
871 | 865 | | |
872 | 866 | | |
| |||
0 commit comments