Commit 4e89811
committed
Auto merge of rust-lang#89860 - camsteffen:macro-semi, r=petrochenkov
Remove trailing semicolon from macro call span
Macro call site spans are now less surprising/more consistent since they no longer contain a semicolon after the macro call.
The downside is that we need to do a little guesswork to get the semicolon in diagnostics. But this should not be noticeable since it is rare for the semicolon to not immediately follow the macro call.File tree
251 files changed
+775
-729
lines changed- compiler
- rustc_expand/src
- rustc_span/src
- rustc_typeck/src/check/fn_ctxt
- src
- test
- mir-opt
- rustdoc-ui/intra-doc
- ui-fulldeps
- internal-lints
- ui
- annotate-snippet
- asm
- aarch64
- x86_64
- associated-consts
- async-await
- attributes
- binop
- block-result
- borrowck
- closures/2229_closure_analysis/migrations
- codemap_tests
- conditional-compilation
- consts
- miri_unleashed
- cross
- cross-crate-macro-backtrace
- cross-file-errors
- deprecation
- did_you_mean
- directory_ownership
- dollar-crate
- editions
- empty
- error-codes
- expr/if
- extenv
- feature-gates
- fmt
- half-open-range-patterns
- hygiene
- imports
- in-band-lifetimes
- inference
- internal
- issues
- lint
- unused
- liveness
- llvm-asm
- macro_backtrace
- macros
- mismatched_types
- modules
- parser
- macro
- privacy
- proc-macro
- group-compat-hack
- reachable
- recursion_limit
- regions
- resolve
- rust-2018/uniform-paths
- rust-2021
- simd
- span
- suggestions
- symbol-names
- try-block
- unsafe
- tools/clippy
- clippy_lints/src
- tests
- ui-toml/nonstandard_macro_braces
- ui
- checked_unwrap
- crashes
- declare_interior_mutable_const
- pattern_type_mismatch
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
251 files changed
+775
-729
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1033 | 1031 | | |
1034 | 1032 | | |
1035 | 1033 | | |
| |||
1087 | 1085 | | |
1088 | 1086 | | |
1089 | 1087 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1098 | 1093 | | |
1099 | 1094 | | |
1100 | 1095 | | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1109 | 1101 | | |
1110 | 1102 | | |
1111 | 1103 | | |
| |||
1222 | 1214 | | |
1223 | 1215 | | |
1224 | 1216 | | |
1225 | | - | |
| 1217 | + | |
1226 | 1218 | | |
1227 | 1219 | | |
1228 | 1220 | | |
| |||
1318 | 1310 | | |
1319 | 1311 | | |
1320 | 1312 | | |
1321 | | - | |
| 1313 | + | |
1322 | 1314 | | |
1323 | 1315 | | |
1324 | 1316 | | |
| |||
1339 | 1331 | | |
1340 | 1332 | | |
1341 | 1333 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
| 1334 | + | |
1345 | 1335 | | |
1346 | 1336 | | |
1347 | 1337 | | |
| |||
1360 | 1350 | | |
1361 | 1351 | | |
1362 | 1352 | | |
1363 | | - | |
1364 | 1353 | | |
1365 | 1354 | | |
1366 | 1355 | | |
1367 | | - | |
1368 | | - | |
| 1356 | + | |
1369 | 1357 | | |
1370 | 1358 | | |
1371 | 1359 | | |
| |||
1433 | 1421 | | |
1434 | 1422 | | |
1435 | 1423 | | |
1436 | | - | |
| 1424 | + | |
1437 | 1425 | | |
1438 | 1426 | | |
1439 | 1427 | | |
| |||
1542 | 1530 | | |
1543 | 1531 | | |
1544 | 1532 | | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1548 | 1536 | | |
1549 | 1537 | | |
1550 | 1538 | | |
| |||
1567 | 1555 | | |
1568 | 1556 | | |
1569 | 1557 | | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
1573 | 1561 | | |
1574 | 1562 | | |
1575 | 1563 | | |
| |||
1586 | 1574 | | |
1587 | 1575 | | |
1588 | 1576 | | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
| 1577 | + | |
1592 | 1578 | | |
1593 | 1579 | | |
1594 | 1580 | | |
| |||
1613 | 1599 | | |
1614 | 1600 | | |
1615 | 1601 | | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1619 | 1605 | | |
1620 | 1606 | | |
1621 | 1607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
656 | 668 | | |
657 | 669 | | |
658 | 670 | | |
| |||
1013 | 1025 | | |
1014 | 1026 | | |
1015 | 1027 | | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1016 | 1054 | | |
1017 | 1055 | | |
1018 | 1056 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | | - | |
1175 | | - | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1176 | 1181 | | |
1177 | 1182 | | |
1178 | 1183 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments