diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-12 12:20:10 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-17 08:10:56 +1000 | 
| commit | eafd0dfd05cca581d66d83aab9549612ba2ed543 (patch) | |
| tree | ac234c9169db2ad104c0cc3727d19d017f792411 /compiler/rustc_builtin_macros/src/assert | |
| parent | 5746c752f4e3f294cd252f7dd611a1908b12dd8e (diff) | |
| download | rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.tar.gz rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.zip | |
Box the `MacCall` in various types.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/assert')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/assert/context.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_builtin_macros/src/assert/context.rs b/compiler/rustc_builtin_macros/src/assert/context.rs index c04d04020cc..d30fd479015 100644 --- a/compiler/rustc_builtin_macros/src/assert/context.rs +++ b/compiler/rustc_builtin_macros/src/assert/context.rs @@ -177,7 +177,7 @@ impl<'cx, 'a> Context<'cx, 'a> { }); self.cx.expr( self.span, - ExprKind::MacCall(MacCall { + ExprKind::MacCall(P(MacCall { path: panic_path, args: P(MacArgs::Delimited( DelimSpan::from_single(self.span), @@ -185,7 +185,7 @@ impl<'cx, 'a> Context<'cx, 'a> { initial.into_iter().chain(captures).collect::<TokenStream>(), )), prior_type_ascription: None, - }), + })), ) } | 
