about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-09-20 16:06:32 -0700
committerJosh Stone <jistone@redhat.com>2019-09-20 16:06:32 -0700
commitc3f72d1c098a61f26271021460b5ae420ff28ae8 (patch)
tree4dac1b2b81d05bdd68647b84c591db2aeee05112 /src/test/ui/thinlto
parent9ad1e7c46cf690b7ec6953b142430d21ca2d8799 (diff)
downloadrust-c3f72d1c098a61f26271021460b5ae420ff28ae8.tar.gz
rust-c3f72d1c098a61f26271021460b5ae420ff28ae8.zip
Fix the span used to suggest avoiding for-loop moves
It was using the snippet from the "use" span, which often renders the
same, but with closures that snippet is on the start of the closure
where the value is captured. We should be using the snippet from the
span where it was moved into the `for` loop, which is `move_span`.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions