Fixed Err by passing "err"
This commit is contained in:
parent
ba40f5c4ef
commit
306f4da69a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue