diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2018-08-22 13:58:46 -0500 |
|---|---|---|
| committer | Mark Mansi <markm@cs.wisc.edu> | 2018-08-24 15:48:00 -0500 |
| commit | 3e073ab1110db70b8fd0f7c16a8ebe7020eb6bde (patch) | |
| tree | 4f89e6e8e981c7aef9cc6de552b6c7b082acad05 /src/libsyntax/parse | |
| parent | d2dfc9cea3c221bbbfc4195a50471882f85ca42f (diff) | |
| download | rust-3e073ab1110db70b8fd0f7c16a8ebe7020eb6bde.tar.gz rust-3e073ab1110db70b8fd0f7c16a8ebe7020eb6bde.zip | |
fix compile error
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
