Skip to content

Commit 2da3a66

Browse files
committed
Use expr_ref.
1 parent 2c175e1 commit 2da3a66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_ast_lowering/src/format.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,7 @@ fn expand_format_args<'hir>(
551551

552552
// Generate:
553553
// &args
554-
let args =
555-
ctx.expr(macsp, hir::ExprKind::AddrOf(hir::BorrowKind::Ref, hir::Mutability::Not, args));
554+
let args = ctx.expr_ref(macsp, args);
556555

557556
let call = if let Some(format_options) = format_options {
558557
// Generate:

0 commit comments

Comments
 (0)