diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-07-15 06:52:49 -0400 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2017-07-28 15:46:27 +0200 |
| commit | 3fdc3fa1ec091d4bec006e0201d29ce54dcbf430 (patch) | |
| tree | cf460785b62304b47839e132e5614caf3e2bac03 /src/rustllvm/RustWrapper.cpp | |
| parent | 188cdf499f5fd6fdce0382367944e0f2a56026f8 (diff) | |
| download | rust-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
