about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/assert.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_builtin_macros/src/assert.rs
parent5746c752f4e3f294cd252f7dd611a1908b12dd8e (diff)
downloadrust-eafd0dfd05cca581d66d83aab9549612ba2ed543.tar.gz
rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.zip
Box the `MacCall` in various types.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/assert.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/assert.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/assert.rs b/compiler/rustc_builtin_macros/src/assert.rs
index 925c36edb51..119724b5049 100644
--- a/compiler/rustc_builtin_macros/src/assert.rs
+++ b/compiler/rustc_builtin_macros/src/assert.rs
@@ -52,7 +52,7 @@ pub fn expand_assert<'cx>(
     let expr = if let Some(tokens) = custom_message {
         let then = cx.expr(
             call_site_span,
-            ExprKind::MacCall(MacCall {
+            ExprKind::MacCall(P(MacCall {
                 path: panic_path(),
                 args: P(MacArgs::Delimited(
                     DelimSpan::from_single(call_site_span),
@@ -60,7 +60,7 @@ pub fn expand_assert<'cx>(
                     tokens,
                 )),
                 prior_type_ascription: None,
-            }),
+            })),
         );
         expr_if_not(cx, call_site_span, cond_expr, then, None)
     }