diff options
| author | colinmarsh19 <32608057+colinmarsh19@users.noreply.github.com> | 2017-11-25 08:47:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-25 08:47:05 -0700 |
| commit | 306f4da69a89f45b9c06ac742f337e6de0445845 (patch) | |
| tree | 0a1ab518a40c772983b8c72d84721314a8e9a96d /src/libsyntax/parse/parser.rs | |
| parent | ba40f5c4ef4e2292ff92546236ef507438459eee (diff) | |
| download | rust-306f4da69a89f45b9c06ac742f337e6de0445845.tar.gz rust-306f4da69a89f45b9c06ac742f337e6de0445845.zip | |
Fixed Err by passing "err"
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -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 7a3009215f2..1c64b36d960 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5490,7 +5490,7 @@ impl<'a> Parser<'a> { if token_str == ";" { err.note("consider removing the semicolon"); } - return Err(); + return Err(err); } let hi = if self.span == syntax_pos::DUMMY_SP { |
