about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/expr.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-01-11 21:41:13 +0100
committerMara Bos <m-ou.se@m-ou.se>2023-01-12 00:25:45 +0100
commita4dbcb525b2f36f66c89df6919a7506cd99041cc (patch)
tree16d2087b2a8daef1d705c168e05db854902149aa /compiler/rustc_ast_lowering/src/expr.rs
parente83945150f65eaf8b644a4042229fcac4c82596b (diff)
downloadrust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.tar.gz
rust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.zip
Expand format_args!() in rust_ast_lowering.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs
index 51f290bc587..5e0f1b9b61f 100644
--- a/compiler/rustc_ast_lowering/src/expr.rs
+++ b/compiler/rustc_ast_lowering/src/expr.rs
@@ -292,6 +292,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
                 ExprKind::InlineAsm(asm) => {
                     hir::ExprKind::InlineAsm(self.lower_inline_asm(e.span, asm))
                 }
+                ExprKind::FormatArgs(fmt) => self.lower_format_args(e.span, fmt),
                 ExprKind::Struct(se) => {
                     let rest = match &se.rest {
                         StructRest::Base(e) => Some(self.lower_expr(e)),