We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ba288 commit fba1853Copy full SHA for fba1853
compiler/rustc_ast_lowering/src/format.rs
@@ -496,7 +496,7 @@ fn expand_format_args<'hir>(
496
// ```
497
let template_new =
498
ctx.expr_lang_item_type_relative(macsp, hir::LangItem::FormatTemplate, sym::new);
499
- let pieces = ctx.expr_array_ref(fmt.span, ctx.arena.alloc_from_iter(pieces));
+ let pieces = ctx.expr_array_ref(macsp, ctx.arena.alloc_from_iter(pieces));
500
let template = ctx.expr(
501
macsp,
502
hir::ExprKind::Call(ctx.arena.alloc(template_new), ctx.arena.alloc_from_iter([pieces])),
0 commit comments