Rewrite and refactor format_args!() builtin macro.

This commit is contained in:
Mara Bos 2022-08-08 16:17:08 +02:00
parent d9297d22ad
commit 9bec0de397
7 changed files with 1245 additions and 1372 deletions

View file

@ -252,6 +252,10 @@ impl<'a> ExtCtxt<'a> {
self.expr_ident(span, Ident::with_dummy_span(kw::SelfLower))
}
pub fn expr_field(&self, span: Span, expr: P<Expr>, field: Ident) -> P<ast::Expr> {
self.expr(span, ast::ExprKind::Field(expr, field))
}
pub fn expr_binary(
&self,
sp: Span,