Commit 8648405
Auto merge of rust-lang#134258 - bjorn3:no_public_specialization, r=petrochenkov
Remove support for specializing ToString outside the standard library
This is the only trait specializable outside of the standard library. Before stabilizing specialization we will probably want to remove support for this. It was originally made specializable to allow a more efficient ToString in libproc_macro back when this way the only way to get any data out of a TokenStream. We now support getting individual tokens, so proc macros no longer need to call it as often.3 files changed
+43
-109
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2675 | 2675 | | |
2676 | 2676 | | |
2677 | 2677 | | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
2678 | 2691 | | |
2679 | 2692 | | |
2680 | 2693 | | |
2681 | 2694 | | |
2682 | 2695 | | |
2683 | | - | |
| 2696 | + | |
2684 | 2697 | | |
2685 | 2698 | | |
2686 | 2699 | | |
| |||
2691 | 2704 | | |
2692 | 2705 | | |
2693 | 2706 | | |
2694 | | - | |
2695 | 2707 | | |
2696 | | - | |
2697 | | - | |
| 2708 | + | |
2698 | 2709 | | |
2699 | | - | |
| 2710 | + | |
2700 | 2711 | | |
2701 | 2712 | | |
2702 | 2713 | | |
2703 | 2714 | | |
2704 | | - | |
2705 | 2715 | | |
2706 | | - | |
2707 | | - | |
| 2716 | + | |
2708 | 2717 | | |
2709 | | - | |
| 2718 | + | |
2710 | 2719 | | |
2711 | 2720 | | |
2712 | 2721 | | |
2713 | 2722 | | |
2714 | | - | |
2715 | 2723 | | |
2716 | | - | |
2717 | | - | |
| 2724 | + | |
2718 | 2725 | | |
2719 | | - | |
| 2726 | + | |
2720 | 2727 | | |
2721 | 2728 | | |
2722 | 2729 | | |
2723 | 2730 | | |
2724 | | - | |
2725 | 2731 | | |
2726 | | - | |
2727 | | - | |
| 2732 | + | |
2728 | 2733 | | |
2729 | | - | |
| 2734 | + | |
2730 | 2735 | | |
2731 | 2736 | | |
2732 | 2737 | | |
| |||
2742 | 2747 | | |
2743 | 2748 | | |
2744 | 2749 | | |
2745 | | - | |
2746 | 2750 | | |
2747 | | - | |
2748 | | - | |
| 2751 | + | |
2749 | 2752 | | |
2750 | | - | |
| 2753 | + | |
2751 | 2754 | | |
2752 | 2755 | | |
2753 | 2756 | | |
| |||
2788 | 2791 | | |
2789 | 2792 | | |
2790 | 2793 | | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
| 2794 | + | |
2794 | 2795 | | |
2795 | | - | |
| 2796 | + | |
2796 | 2797 | | |
2797 | 2798 | | |
2798 | 2799 | | |
| |||
2816 | 2817 | | |
2817 | 2818 | | |
2818 | 2819 | | |
2819 | | - | |
2820 | 2820 | | |
2821 | | - | |
2822 | | - | |
| 2821 | + | |
2823 | 2822 | | |
2824 | | - | |
| 2823 | + | |
2825 | 2824 | | |
2826 | 2825 | | |
2827 | 2826 | | |
2828 | 2827 | | |
2829 | | - | |
2830 | 2828 | | |
2831 | | - | |
2832 | | - | |
| 2829 | + | |
2833 | 2830 | | |
2834 | | - | |
| 2831 | + | |
2835 | 2832 | | |
2836 | 2833 | | |
2837 | 2834 | | |
2838 | 2835 | | |
2839 | | - | |
2840 | 2836 | | |
2841 | | - | |
2842 | | - | |
| 2837 | + | |
2843 | 2838 | | |
2844 | | - | |
| 2839 | + | |
2845 | 2840 | | |
2846 | 2841 | | |
2847 | 2842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
33 | | - | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| |||
185 | 181 | | |
186 | 182 | | |
187 | 183 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 184 | | |
199 | 185 | | |
200 | 186 | | |
| |||
210 | 196 | | |
211 | 197 | | |
212 | 198 | | |
213 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
214 | 203 | | |
215 | 204 | | |
216 | 205 | | |
| |||
756 | 745 | | |
757 | 746 | | |
758 | 747 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | 748 | | |
775 | 749 | | |
776 | 750 | | |
| |||
786 | 760 | | |
787 | 761 | | |
788 | 762 | | |
789 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
790 | 769 | | |
791 | 770 | | |
792 | 771 | | |
| |||
912 | 891 | | |
913 | 892 | | |
914 | 893 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | 894 | | |
926 | 895 | | |
927 | 896 | | |
928 | 897 | | |
929 | 898 | | |
930 | 899 | | |
931 | 900 | | |
932 | | - | |
| 901 | + | |
933 | 902 | | |
934 | 903 | | |
935 | 904 | | |
| |||
1035 | 1004 | | |
1036 | 1005 | | |
1037 | 1006 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | 1007 | | |
1047 | 1008 | | |
1048 | 1009 | | |
| |||
1138 | 1099 | | |
1139 | 1100 | | |
1140 | 1101 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | 1102 | | |
1150 | 1103 | | |
1151 | 1104 | | |
| |||
1520 | 1473 | | |
1521 | 1474 | | |
1522 | 1475 | | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
1531 | 1476 | | |
1532 | 1477 | | |
1533 | 1478 | | |
| |||
0 commit comments