-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit f9dfb6e
authored
Rollup merge of #103544 - Nilstrieb:no-recovery-pls, r=compiler-errors
Add flag to forbid recovery in the parser
To start the effort of fixing #103534, this adds a new flag to the parser, which forbids the parser from doing recovery, which it shouldn't do in macros.
This doesn't add any new checks for recoveries yet and is just here to bikeshed the names for the functions here before doing more.
r? `@compiler-errors`File tree
3 files changed
+31
-2
lines changed- compiler
- rustc_expand/src/mbe
- rustc_parse/src/parser
3 files changed
+31
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 | + | ||
253 | 254 |
| |
254 | 255 |
| |
255 | 256 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2112 | 2112 |
| |
2113 | 2113 |
| |
2114 | 2114 |
| |
2115 | + | ||
2116 | + | ||
2115 | 2117 |
| |
2116 | 2118 |
| |
2117 | 2119 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
118 | 124 |
| |
119 | 125 |
| |
120 | 126 |
| |
| |||
152 | 158 |
| |
153 | 159 |
| |
154 | 160 |
| |
161 | + | ||
162 | + | ||
163 | + | ||
155 | 164 |
| |
156 | 165 |
| |
157 | - | ||
166 | + | ||
158 | 167 |
| |
159 | 168 |
| |
160 | - | ||
169 | + | ||
161 | 170 |
| |
162 | 171 |
| |
163 | 172 |
| |
| |||
483 | 492 |
| |
484 | 493 |
| |
485 | 494 |
| |
495 | + | ||
486 | 496 |
| |
487 | 497 |
| |
488 | 498 |
| |
| |||
491 | 501 |
| |
492 | 502 |
| |
493 | 503 |
| |
504 | + | ||
505 | + | ||
506 | + | ||
507 | + | ||
508 | + | ||
509 | + | ||
510 | + | ||
511 | + | ||
512 | + | ||
513 | + | ||
514 | + | ||
515 | + | ||
516 | + | ||
517 | + | ||
518 | + | ||
519 | + | ||
494 | 520 |
| |
495 | 521 |
| |
496 | 522 |
| |
|
0 commit comments