diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2018-10-14 15:12:02 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2018-10-21 12:35:00 +0100 |
| commit | 2a3969a3f70779790fd8de1f1602441b5078566b (patch) | |
| tree | 475915e8d6062700fcced479edfa9aa4b9475d13 /src/rustllvm/RustWrapper.cpp | |
| parent | 275432c1151d1c77afbaebaefa2379a76d1af051 (diff) | |
| download | rust-2a3969a3f70779790fd8de1f1602441b5078566b.tar.gz rust-2a3969a3f70779790fd8de1f1602441b5078566b.zip | |
Use new region infer errors for explaining borrows
This gives at least some explanation for why a borrow is expected to last for a certain free region. Also: * Reports E0373: "closure may outlive the current function" with NLL. * Special cases the case of returning a reference to (or value referencing) a local variable or temporary (E0515). * Special case assigning a reference to a local variable in a closure to a captured variable.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
