Fix comment about spans during borrowck per PR 91359 review

This commit is contained in:
David Tolnay 2022-01-16 18:51:03 -08:00
parent 1b5ff95edb
commit 730249d3d0
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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))