Fixed Err by passing "err"
This commit is contained in:
parent
ba40f5c4ef
commit
306f4da69a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user