about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2018-10-14 15:12:02 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2018-10-21 12:35:00 +0100
commit2a3969a3f70779790fd8de1f1602441b5078566b (patch)
tree475915e8d6062700fcced479edfa9aa4b9475d13 /src/rustllvm/RustWrapper.cpp
parent275432c1151d1c77afbaebaefa2379a76d1af051 (diff)
downloadrust-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