File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2267,7 +2267,7 @@ impl<'a> Parser<'a> {
2267
2267
hi = path. span ;
2268
2268
return Ok ( self . mk_expr ( lo. to ( hi) , ExprKind :: Path ( Some ( qself) , path) , attrs) ) ;
2269
2269
}
2270
- if syntax_pos :: hygiene :: default_edition ( ) >= Edition :: Edition2018 &&
2270
+ if self . span . edition ( ) >= Edition :: Edition2018 &&
2271
2271
self . check_keyword ( keywords:: Async )
2272
2272
{
2273
2273
if self . is_async_block ( ) { // check for `async {` and `async move {`
@@ -3270,7 +3270,7 @@ impl<'a> Parser<'a> {
3270
3270
} else {
3271
3271
Movability :: Movable
3272
3272
} ;
3273
- let asyncness = if syntax_pos :: hygiene :: default_edition ( ) >= Edition :: Edition2018
3273
+ let asyncness = if self . span . edition ( ) >= Edition :: Edition2018
3274
3274
&& self . eat_keyword ( keywords:: Async )
3275
3275
{
3276
3276
IsAsync :: Async ( ast:: DUMMY_NODE_ID )
You can’t perform that action at this time.
0 commit comments