Skip to content

Commit 306f4da

Browse files
authored
Fixed Err by passing "err"
1 parent ba40f5c commit 306f4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5490,7 +5490,7 @@ impl<'a> Parser<'a> {
54905490
if token_str == ";" {
54915491
err.note("consider removing the semicolon");
54925492
}
5493-
return Err();
5493+
return Err(err);
54945494
}
54955495

54965496
let hi = if self.span == syntax_pos::DUMMY_SP {

0 commit comments

Comments
 (0)