Commit d0863ad
committed
Update Token::can_begin_expr() to make it consistent with the grammar:
* add Token::AndAnd (double borrow)
* add Token::DotDot (range notation)
* remove Token::Pound and Token::At
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.1 parent 099b411 commit d0863ad
2 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2167 | 2167 | | |
2168 | 2168 | | |
2169 | 2169 | | |
| 2170 | + | |
2170 | 2171 | | |
2171 | 2172 | | |
2172 | 2173 | | |
| |||
2773 | 2774 | | |
2774 | 2775 | | |
2775 | 2776 | | |
| 2777 | + | |
2776 | 2778 | | |
2777 | 2779 | | |
2778 | 2780 | | |
| |||
5590 | 5592 | | |
5591 | 5593 | | |
5592 | 5594 | | |
5593 | | - | |
5594 | | - | |
5595 | | - | |
5596 | | - | |
5597 | | - | |
5598 | | - | |
5599 | | - | |
5600 | 5595 | | |
5601 | 5596 | | |
5602 | 5597 | | |
| |||
5779 | 5774 | | |
5780 | 5775 | | |
5781 | 5776 | | |
5782 | | - | |
5783 | | - | |
| 5777 | + | |
5784 | 5778 | | |
5785 | 5779 | | |
5786 | 5780 | | |
| |||
| 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 | | |
| |||
0 commit comments