Commit d223250
authored
Rollup merge of rust-lang#81860 - osa1:issue81800, r=estebank
Fix SourceMap::start_point
`start_point` needs to return the *first* character's span, but it would
previously call `find_width_of_character_at_span` which returns the span
of the *last* character. The implementation is now fixed.
Other changes:
- Docs for start_point, end_point, find_width_of_character_at_span
updated
- Minor simplification in find_width_of_character_at_span code
Fixes rust-lang#81800File tree
3 files changed
+51
-12
lines changed- compiler/rustc_span/src
- src/test/ui/span
3 files changed
+51
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
| 781 | + | |
782 | 782 | | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
788 | 807 | | |
789 | 808 | | |
790 | | - | |
| 809 | + | |
791 | 810 | | |
792 | 811 | | |
793 | 812 | | |
| |||
816 | 835 | | |
817 | 836 | | |
818 | 837 | | |
819 | | - | |
| 838 | + | |
| 839 | + | |
820 | 840 | | |
821 | 841 | | |
822 | 842 | | |
| |||
863 | 883 | | |
864 | 884 | | |
865 | 885 | | |
866 | | - | |
867 | | - | |
| 886 | + | |
868 | 887 | | |
869 | | - | |
870 | | - | |
| 888 | + | |
871 | 889 | | |
872 | 890 | | |
873 | 891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments