about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/item.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-08-12 12:20:10 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-08-17 08:10:56 +1000
commiteafd0dfd05cca581d66d83aab9549612ba2ed543 (patch)
treeac234c9169db2ad104c0cc3727d19d017f792411 /compiler/rustc_parse/src/parser/item.rs
parent5746c752f4e3f294cd252f7dd611a1908b12dd8e (diff)
downloadrust-eafd0dfd05cca581d66d83aab9549612ba2ed543.tar.gz
rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.zip
Box the `MacCall` in various types.
Diffstat (limited to 'compiler/rustc_parse/src/parser/item.rs')
-rw-r--r--compiler/rustc_parse/src/parser/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs
index f3f070e6eb0..cd3c982ce81 100644
--- a/compiler/rustc_parse/src/parser/item.rs
+++ b/compiler/rustc_parse/src/parser/item.rs
@@ -287,7 +287,7 @@ impl<'a> Parser<'a> {
             return Ok(None);
         } else if macros_allowed && self.check_path() {
             // MACRO INVOCATION ITEM
-            (Ident::empty(), ItemKind::MacCall(self.parse_item_macro(vis)?))
+            (Ident::empty(), ItemKind::MacCall(P(self.parse_item_macro(vis)?)))
         } else {
             return Ok(None);
         };