Skip to content

Commit 0bcc75c

Browse files
committed
Lower span.
1 parent efeeca4 commit 0bcc75c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_ast_lowering/src/format.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ fn expand_format_args<'hir>(
376376
fmt: &FormatArgs,
377377
allow_const: bool,
378378
) -> hir::ExprKind<'hir> {
379+
let macsp = ctx.lower_span(macsp);
380+
379381
// Create a list of all _unique_ (argument, format trait) combinations.
380382
// E.g. "{0} {0:x} {0} {1}" -> [(0, Display), (0, LowerHex), (1, Display)]
381383
//

0 commit comments

Comments
 (0)