diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-06-19 14:08:20 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-06-19 14:08:20 +0200 |
| commit | 2da3a66c5525a860f3aacd50877db4a0772b9023 (patch) | |
| tree | aa6c0601712ae6b11d6f5dc7e6e222cc30481030 | |
| parent | 2c175e1c6d9fdba51e0bef17f73e4c9e1b36ec4b (diff) | |
| download | rust-2da3a66c5525a860f3aacd50877db4a0772b9023.tar.gz rust-2da3a66c5525a860f3aacd50877db4a0772b9023.zip | |
Use expr_ref.
| -rw-r--r-- | compiler/rustc_ast_lowering/src/format.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/format.rs b/compiler/rustc_ast_lowering/src/format.rs index 7a4e056175c..12f0af75486 100644 --- a/compiler/rustc_ast_lowering/src/format.rs +++ b/compiler/rustc_ast_lowering/src/format.rs @@ -551,8 +551,7 @@ fn expand_format_args<'hir>( // Generate: // &args - let args = - ctx.expr(macsp, hir::ExprKind::AddrOf(hir::BorrowKind::Ref, hir::Mutability::Not, args)); + let args = ctx.expr_ref(macsp, args); let call = if let Some(format_options) = format_options { // Generate: |
