about summary refs log tree commit diff
path: root/src/librustc_parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-03 07:23:09 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-20 22:41:28 +0100
commit74d9c4b312ee1a3149df2cf0bb8662ddcd5752ba (patch)
tree4af549ccd93862e2b41d67ac71f5eed61fc1e63b /src/librustc_parse/parser
parent2ddea30178bb2b95f9366943702a9f2711f7c547 (diff)
downloadrust-74d9c4b312ee1a3149df2cf0bb8662ddcd5752ba.tar.gz
rust-74d9c4b312ee1a3149df2cf0bb8662ddcd5752ba.zip
parse_stmt_mac: add a comment
Diffstat (limited to 'src/librustc_parse/parser')
-rw-r--r--src/librustc_parse/parser/stmt.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs
index 6f27fdc1a25..3d2773cdc30 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)?;