Commit 86b900a
authored
Rollup merge of rust-lang#79757 - jryans:long-line-tab-handling-early-expand, r=estebank
Replace tabs earlier in diagnostics
This replaces tabs earlier in the diagnostics emitting process, which allows various margin calculations to ignore the existence of tabs. It does add a string copy for the source lines that are emitted.
Fixes rust-lang#78438
r? `@estebank`File tree
4 files changed
+48
-29
lines changed- compiler/rustc_errors/src
- src/test/ui/terminal-width
4 files changed
+48
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| 647 | + | |
| 648 | + | |
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| |||
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
710 | | - | |
| 712 | + | |
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
| |||
1376 | 1378 | | |
1377 | 1379 | | |
1378 | 1380 | | |
1379 | | - | |
1380 | | - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1381 | 1392 | | |
1382 | 1393 | | |
1383 | 1394 | | |
| |||
1502 | 1513 | | |
1503 | 1514 | | |
1504 | 1515 | | |
1505 | | - | |
| 1516 | + | |
1506 | 1517 | | |
1507 | 1518 | | |
1508 | 1519 | | |
| |||
1598 | 1609 | | |
1599 | 1610 | | |
1600 | 1611 | | |
1601 | | - | |
| 1612 | + | |
1602 | 1613 | | |
1603 | 1614 | | |
1604 | 1615 | | |
| |||
1930 | 1941 | | |
1931 | 1942 | | |
1932 | 1943 | | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1933 | 1948 | | |
1934 | 1949 | | |
1935 | 1950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
36 | 19 | | |
37 | | - | |
38 | 20 | | |
39 | 21 | | |
40 | 22 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 23 | | |
45 | 24 | | |
46 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments