Rewrite and refactor format_args!() builtin macro.
This commit is contained in:
parent
d9297d22ad
commit
9bec0de397
7 changed files with 1245 additions and 1372 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue