From 74d9c4b312ee1a3149df2cf0bb8662ddcd5752ba Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 3 Dec 2019 07:23:09 +0100 Subject: [PATCH] parse_stmt_mac: add a comment --- src/librustc_parse/parser/stmt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs index 6f27fdc1a25f..3d2773cdc307 100644 --- a/src/librustc_parse/parser/stmt.rs +++ b/src/librustc_parse/parser/stmt.rs @@ -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)?;