From 3e073ab1110db70b8fd0f7c16a8ebe7020eb6bde Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Wed, 22 Aug 2018 13:58:46 -0500 Subject: fix compile error --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a8f65cee513..1695d3a8f96 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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) -- cgit 1.4.1-3-g733a5