about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-01-16 18:51:03 -0800
committerDavid Tolnay <dtolnay@gmail.com>2022-01-17 10:38:30 -0800
commit730249d3d0aa5b8987290eb06aa8c5210e5333cc (patch)
treef6fb958d3b70e94622a6d6be437fcfd5fea77029 /compiler
parent1b5ff95edbf938d96aa687c72f849d1a9ef15ff9 (diff)
downloadrust-730249d3d0aa5b8987290eb06aa8c5210e5333cc.tar.gz
rust-730249d3d0aa5b8987290eb06aa8c5210e5333cc.zip
Fix comment about spans during borrowck per PR 91359 review
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_builtin_macros/src/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs
index 491df287cd6..d1393528d1c 100644
--- a/compiler/rustc_builtin_macros/src/format.rs
+++ b/compiler/rustc_builtin_macros/src/format.rs
@@ -822,7 +822,7 @@ impl<'a, 'b> Context<'a, 'b> {
                 //
                 // This uses the arg span for `&arg` so that borrowck errors
                 // point to the specific expression passed to the macro (the
-                // span is otherwise unavailable in MIR).
+                // span is otherwise unavailable in the MIR used by borrowck).
                 let heads = original_args
                     .into_iter()
                     .map(|e| self.ecx.expr_addr_of(e.span.with_ctxt(self.macsp.ctxt()), e))