Skip to content

Commit fba1853

Browse files
committed
Change span in format_args!() to make Clippy happy.
1 parent c9ba288 commit fba1853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ fn expand_format_args<'hir>(
496496
// ```
497497
let template_new =
498498
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));
499+
let pieces = ctx.expr_array_ref(macsp, ctx.arena.alloc_from_iter(pieces));
500500
let template = ctx.expr(
501501
macsp,
502502
hir::ExprKind::Call(ctx.arena.alloc(template_new), ctx.arena.alloc_from_iter([pieces])),

0 commit comments

Comments
 (0)