diff options
| author | David Tolnay <dtolnay@gmail.com> | 2022-01-16 18:51:03 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2022-01-17 10:38:30 -0800 |
| commit | 730249d3d0aa5b8987290eb06aa8c5210e5333cc (patch) | |
| tree | f6fb958d3b70e94622a6d6be437fcfd5fea77029 /compiler/rustc_builtin_macros | |
| parent | 1b5ff95edbf938d96aa687c72f849d1a9ef15ff9 (diff) | |
| download | rust-730249d3d0aa5b8987290eb06aa8c5210e5333cc.tar.gz rust-730249d3d0aa5b8987290eb06aa8c5210e5333cc.zip | |
Fix comment about spans during borrowck per PR 91359 review
Diffstat (limited to 'compiler/rustc_builtin_macros')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format.rs | 2 |
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)) |
