about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorIsaac van Bakel <ivb@vanbakel.io>2017-07-25 01:13:18 +0100
committerIsaac van Bakel <ivb@vanbakel.io>2017-07-25 18:58:38 +0100
commitc802fc7103c35905e06e59e781a083f8ea36c0a2 (patch)
treecf114954e0a31c2b438f1a2db780f1832a16636a /src/rustllvm/PassWrapper.cpp
parent5c126bdee6af3feef2d51956debab72f933078c6 (diff)
downloadrust-c802fc7103c35905e06e59e781a083f8ea36c0a2.tar.gz
rust-c802fc7103c35905e06e59e781a083f8ea36c0a2.zip
Modified error for loop mut borrow conflicts
Error message now makes clear that mutable borrow conflicts on a single
value in a loop body is caused by the borrow outlasting a single pass of
the loop.
Loop conflicts are detected by seeing when two borrow locations are the
same - which indicates the same code being run more than once.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions