Skip to content

Commit 730249d

Browse files
committed
Fix comment about spans during borrowck per PR 91359 review
1 parent 1b5ff95 commit 730249d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ impl<'a, 'b> Context<'a, 'b> {
822822
//
823823
// This uses the arg span for `&arg` so that borrowck errors
824824
// point to the specific expression passed to the macro (the
825-
// span is otherwise unavailable in MIR).
825+
// span is otherwise unavailable in the MIR used by borrowck).
826826
let heads = original_args
827827
.into_iter()
828828
.map(|e| self.ecx.expr_addr_of(e.span.with_ctxt(self.macsp.ctxt()), e))

0 commit comments

Comments
 (0)