about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-07-15 06:52:49 -0400
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2017-07-28 15:46:27 +0200
commit3fdc3fa1ec091d4bec006e0201d29ce54dcbf430 (patch)
treecf460785b62304b47839e132e5614caf3e2bac03 /src/rustllvm/RustWrapper.cpp
parent188cdf499f5fd6fdce0382367944e0f2a56026f8 (diff)
downloadrust-3fdc3fa1ec091d4bec006e0201d29ce54dcbf430.tar.gz
rust-3fdc3fa1ec091d4bec006e0201d29ce54dcbf430.zip
change how we report `err_out_of_scope` borrowck errors
Also, remove the explicit code detecting borrows over a yield.  It
turns out not to be necessary -- any such borrow winds up with a
lifetime that is part of the generator type, and therefore which will
outlive the generator expression itself, which yields an
`err_out_of_scope`. So instead we intercept those errors and display
them in a nicer way.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions