@@ -1519,15 +1519,15 @@ impl<'a> Parser<'a> {
1519
1519
Ok ( this. mk_expr ( this. prev_token . span , ExprKind :: Underscore ) )
1520
1520
} else if this. token . uninterpolated_span ( ) . at_least_rust_2018 ( ) {
1521
1521
// `Span::at_least_rust_2018()` is somewhat expensive; don't get it repeatedly.
1522
- if this. token . uninterpolated_span ( ) . at_least_rust_2024 ( )
1523
- // check for `gen {}` and `gen move {}`
1524
- // or `async gen {}` and `async gen move {}`
1525
- && ( this. is_gen_block ( kw:: Gen , 0 )
1526
- || ( this. check_keyword ( kw:: Async ) && this. is_gen_block ( kw:: Gen , 1 ) ) )
1527
- {
1528
- // FIXME: (async) gen closures aren't yet parsed.
1529
- this. parse_gen_block ( )
1530
- } else if this. check_keyword ( kw:: Async ) {
1522
+ // if this.token.uninterpolated_span().at_least_rust_2024()
1523
+ // // check for `gen {}` and `gen move {}`
1524
+ // // or `async gen {}` and `async gen move {}`
1525
+ // && (this.is_gen_block(kw::Gen, 0)
1526
+ // || (this.check_keyword(kw::Async) && this.is_gen_block(kw::Gen, 1)))
1527
+ // {
1528
+ // // FIXME: (async) gen closures aren't yet parsed.
1529
+ // this.parse_gen_block()
1530
+ if this. check_keyword ( kw:: Async ) {
1531
1531
// FIXME(gen_blocks): Parse `gen async` and suggest swap
1532
1532
if this. is_gen_block ( kw:: Async , 0 ) {
1533
1533
// Check for `async {` and `async move {`,
0 commit comments