Commit dcaeb6a
committed
auto merge of #20901 : dgrunwald/rust/update-token-can-begin-expr, r=sanxiyn
* add `Token::AndAnd` (double borrow)
* add `Token::DotDot` (range notation)
* remove `Token::Pound` and `Token::At`
This fixes a syntax error when parsing `fn f() -> RangeTo<i32> { return ..1; }`.
Also, remove `fn_expr_lookahead`.
It's from the `fn~` days and seems to no longer be necessary.3 files changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| 2142 | + | |
2142 | 2143 | | |
2143 | 2144 | | |
2144 | 2145 | | |
| |||
2776 | 2777 | | |
2777 | 2778 | | |
2778 | 2779 | | |
| 2780 | + | |
2779 | 2781 | | |
2780 | 2782 | | |
2781 | 2783 | | |
| |||
5536 | 5538 | | |
5537 | 5539 | | |
5538 | 5540 | | |
5539 | | - | |
5540 | | - | |
5541 | | - | |
5542 | | - | |
5543 | | - | |
5544 | | - | |
5545 | | - | |
5546 | 5541 | | |
5547 | 5542 | | |
5548 | 5543 | | |
| |||
5715 | 5710 | | |
5716 | 5711 | | |
5717 | 5712 | | |
5718 | | - | |
5719 | | - | |
| 5713 | + | |
5720 | 5714 | | |
5721 | 5715 | | |
5722 | 5716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
193 | 191 | | |
| 192 | + | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments