about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-28 13:12:16 +0000
committerbors <bors@rust-lang.org>2018-08-28 13:12:16 +0000
commitec4a752202e56a9b2d978305cb2603208d4a3ab4 (patch)
treeeac6806c2bda8972bc3628c5b9f0aa99fcd00542 /src/rustllvm/PassWrapper.cpp
parent83ddc33347cade429fdb47509818e775a67c1af6 (diff)
parent7f7fadaee6358191fce04debb63bf0bfe0cb2a9e (diff)
downloadrust-ec4a752202e56a9b2d978305cb2603208d4a3ab4.tar.gz
rust-ec4a752202e56a9b2d978305cb2603208d4a3ab4.zip
Auto merge of #53493 - matthewjasper:hair-spans, r=nikomatsakis
Use smaller span for adjustments on block expressions

When returning a mutable reference don't use the entire body of the function as the span for the adjustments at the end.

The error [in this case](https://github.com/rust-lang/rust/compare/master...matthewjasper:hair-spans?expand=1#diff-ecef8b1f15622fb48a803c9b61605c78) is worse, but neither error message is really what we want. I have some ideas on how to get a better error message that will have to wait for a future PR.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions