Skip to content

Commit 3e073ab

Browse files
committed
fix compile error
1 parent d2dfc9c commit 3e073ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ impl<'a> Parser<'a> {
13781378
// definition...
13791379

13801380
// We don't allow argument names to be left off in edition 2018.
1381-
if self.span.edition() >= Edition::Edition2018 {
1381+
if p.span.edition() >= Edition::Edition2018 {
13821382
p.parse_arg_general(true)
13831383
} else {
13841384
p.parse_arg_general(false)

0 commit comments

Comments
 (0)