Fixed Err by passing "err"

This commit is contained in:
colinmarsh19 2017-11-25 08:47:05 -07:00 committed by GitHub
parent ba40f5c4ef
commit 306f4da69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {