Skip to content

Commit 74d9c4b

Browse files
committed
parse_stmt_mac: add a comment
1 parent 2ddea30 commit 74d9c4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_parse/parser/stmt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ impl<'a> Parser<'a> {
180180
self.warn_missing_semicolon();
181181
StmtKind::Mac(P((mac, style, attrs)))
182182
} else {
183+
// Since none of the above applied, this is an expression statement macro.
183184
let e = self.mk_expr(lo.to(hi), ExprKind::Mac(mac), ThinVec::new());
184185
let e = self.maybe_recover_from_bad_qpath(e, true)?;
185186
let e = self.parse_dot_or_call_expr_with(e, lo, attrs)?;

0 commit comments

Comments
 (0)