Commit 141c910
authored
Rollup merge of #148007 - Muscraft:annotate-snippets, r=jdonszelmann
chore: Update to the latest annotate-snippets
This PR updates `annotate-snippets` to the latest version and updates the adapter code[^1] so that `AnnotateSnippetEmitter`'s output matches `HumanEmitter`'s output. If anyone would like to see the differences[^2] between `AnnotateSnippetEmitter` and `HumanEmitter`, [I have a branch](https://github.com/Muscraft/rust/tree/annotate-snippets-default-renderer) where `AnnotateSnippetEmitter` is used in place of `HumanEmitter`.
[^1]: A lot of the adapter code changes are based on code for `HumanEmitter`.
[^2]: Some of the test differences will go away when #148001 and #148004 are merged.File tree
7 files changed
+780
-122
lines changed- compiler
- rustc_errors
- src
- rustc_session/src
- tests/ui/annotate-snippet
7 files changed
+780
-122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
139 | | - | |
| 149 | + | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
| |||
677 | 687 | | |
678 | 688 | | |
679 | 689 | | |
680 | | - | |
| 690 | + | |
681 | 691 | | |
682 | 692 | | |
683 | 693 | | |
| |||
808 | 818 | | |
809 | 819 | | |
810 | 820 | | |
811 | | - | |
| 821 | + | |
812 | 822 | | |
813 | 823 | | |
814 | 824 | | |
| |||
1485 | 1495 | | |
1486 | 1496 | | |
1487 | 1497 | | |
1488 | | - | |
| 1498 | + | |
1489 | 1499 | | |
1490 | 1500 | | |
1491 | 1501 | | |
| |||
1887 | 1897 | | |
1888 | 1898 | | |
1889 | 1899 | | |
1890 | | - | |
| 1900 | + | |
1891 | 1901 | | |
1892 | 1902 | | |
1893 | 1903 | | |
| |||
3756 | 3766 | | |
3757 | 3767 | | |
3758 | 3768 | | |
3759 | | - | |
| 3769 | + | |
3760 | 3770 | | |
3761 | 3771 | | |
3762 | 3772 | | |
| |||
4331 | 4341 | | |
4332 | 4342 | | |
4333 | 4343 | | |
4334 | | - | |
| 4344 | + | |
4335 | 4345 | | |
4336 | 4346 | | |
4337 | 4347 | | |
| |||
4590 | 4600 | | |
4591 | 4601 | | |
4592 | 4602 | | |
4593 | | - | |
| 4603 | + | |
4594 | 4604 | | |
4595 | 4605 | | |
4596 | 4606 | | |
| |||
5936 | 5946 | | |
5937 | 5947 | | |
5938 | 5948 | | |
5939 | | - | |
| 5949 | + | |
5940 | 5950 | | |
5941 | | - | |
| 5951 | + | |
5942 | 5952 | | |
5943 | 5953 | | |
5944 | 5954 | | |
| |||
6223 | 6233 | | |
6224 | 6234 | | |
6225 | 6235 | | |
6226 | | - | |
| 6236 | + | |
6227 | 6237 | | |
6228 | 6238 | | |
6229 | 6239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments