1
Fork 0

parse_stmt_mac: add a comment

This commit is contained in:
Mazdak Farrokhzad 2019-12-03 07:23:09 +01:00
parent 2ddea30178
commit 74d9c4b312

View file

@ -180,6 +180,7 @@ impl<'a> Parser<'a> {
self.warn_missing_semicolon();
StmtKind::Mac(P((mac, style, attrs)))
} else {
// Since none of the above applied, this is an expression statement macro.
let e = self.mk_expr(lo.to(hi), ExprKind::Mac(mac), ThinVec::new());
let e = self.maybe_recover_from_bad_qpath(e, true)?;
let e = self.parse_dot_or_call_expr_with(e, lo, attrs)?;