about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-06-25 18:10:50 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-06-26 15:16:03 -0700
commit9a9908405d499e333baa20375bcaadfcca5459de (patch)
tree34fb20a79f98280a96ea273a193db9af816e5503 /src/rustllvm/RustWrapper.cpp
parent4c33a14cc546ddacd5398cebf57aa5ac574cfea7 (diff)
downloadrust-9a9908405d499e333baa20375bcaadfcca5459de.tar.gz
rust-9a9908405d499e333baa20375bcaadfcca5459de.zip
librustc: Ensure that proc upvars have static lifetime.
Since procs do not have lifetime bounds, we must do this to maintain
safety.

This can break code that incorrectly captured references in procedure
types. Change such code to not do this, perhaps with a trait object
instead.

A better solution would be to add higher-rank lifetime support to procs.
However, this would be a lot of work for a feature we want to remove in
favor of unboxed closures. The corresponding "real fix" is #15067.

Closes #14036.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions