Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorino
Box the `MacCall` in various types. r? `@spastorino`
This commit is contained in:
commit
dd01122b5c
12 changed files with 94 additions and 94 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
})),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ fn expand<'cx>(
|
|||
MacEager::expr(
|
||||
cx.expr(
|
||||
sp,
|
||||
ExprKind::MacCall(MacCall {
|
||||
ExprKind::MacCall(P(MacCall {
|
||||
path: Path {
|
||||
span: sp,
|
||||
segments: cx
|
||||
|
@ -64,7 +64,7 @@ fn expand<'cx>(
|
|||
tts,
|
||||
)),
|
||||
prior_type_ascription: None,
|
||||
}),
|
||||
})),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue