This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 20006b1
authored
Rollup merge of rust-lang#83356 - camelid:rustdoc-option-to-enum, r=GuillaumeGomez
rustdoc: Replace pair of `Option`s with an enum
They are never both `None` or both `Some`, so it makes more sense to use
an enum so that we "make impossible states impossible".1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
| 693 | + | |
695 | 694 | | |
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
699 | 703 | | |
700 | 704 | | |
701 | | - | |
| 705 | + | |
702 | 706 | | |
703 | 707 | | |
704 | 708 | | |
705 | | - | |
| 709 | + | |
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
709 | | - | |
710 | | - | |
711 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
712 | 716 | | |
713 | 717 | | |
714 | 718 | | |
| |||
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
720 | | - | |
721 | 724 | | |
722 | 725 | | |
723 | 726 | | |
| |||
0 commit comments