Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Aug 24, 2018
1 parent d2dfc9c commit 3e073ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ impl<'a> Parser<'a> {
// definition...

// We don't allow argument names to be left off in edition 2018.
if self.span.edition() >= Edition::Edition2018 {
if p.span.edition() >= Edition::Edition2018 {
p.parse_arg_general(true)
} else {
p.parse_arg_general(false)
Expand Down

0 comments on commit 3e073ab

Please sign in to comment.